@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-300.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/cormorant-garamond-italic-400.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Shippori Mincho";
  src: url("assets/fonts/shippori-mincho-rain.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+96E8;
}

:root {
  --night: #040a13;
  --ink: #f0f5fa;
  --mist: rgba(222, 235, 245, 0.72);
  --faint: rgba(218, 234, 245, 0.52);
  --hairline: rgba(199, 222, 238, 0.32);
  --amber: #e5c198;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --japanese: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --ui: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--night);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-underline-offset: 0.18em;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 52% 38% at 66% 18%, rgba(48, 83, 112, 0.5), transparent 70%),
    radial-gradient(ellipse 44% 38% at 8% 55%, rgba(72, 47, 31, 0.36), transparent 72%),
    linear-gradient(155deg, #081422 0%, #040a13 55%, #07121d 100%);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: rgba(168, 208, 232, 0.24);
  color: #ffffff;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #07111c;
  pointer-events: none;
}

.scene__picture {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  animation: scene-in 2.4s var(--ease) 0.15s forwards;
}

.scene__picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.025);
  transform-origin: 52% 48%;
  filter: saturate(0.97) contrast(1.02);
  animation: scene-settle 32s var(--ease) 0.15s forwards;
  user-select: none;
}

.scene__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 7, 14, 0.38) 0%, rgba(2, 7, 14, 0.08) 22%, rgba(2, 7, 14, 0) 45%, rgba(2, 7, 14, 0.2) 72%, rgba(2, 7, 14, 0.76) 100%),
    linear-gradient(90deg, rgba(2, 7, 14, 0.26) 0%, transparent 24%, transparent 74%, rgba(2, 7, 14, 0.22) 100%);
}

.scene__aura {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 38% 31% at 66% 19%, rgba(160, 208, 231, 0.14), transparent 71%),
    radial-gradient(ellipse 31% 27% at 7% 57%, rgba(255, 177, 107, 0.1), transparent 72%);
  mix-blend-mode: screen;
  opacity: 0.64;
  animation: aura-breathe 78s ease-in-out infinite alternate;
}

.scene__rain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.78;
  mix-blend-mode: screen;
}

.scene__grain {
  position: absolute;
  inset: 0;
  background-image: url("assets/img/grain.png");
  background-size: 128px 128px;
  opacity: 0.045;
  mix-blend-mode: soft-light;
}

.scene__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 66% 62% at 50% 48%, transparent 42%, rgba(1, 4, 10, 0.6) 100%);
}

.stage {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: clamp(64px, 11vh, 140px) clamp(24px, 6vw, 80px) clamp(40px, 8vh, 96px);
  padding-left: max(clamp(24px, 6vw, 80px), env(safe-area-inset-left));
  padding-right: max(clamp(24px, 6vw, 80px), env(safe-area-inset-right));
}

.stage::before {
  content: "";
  position: absolute;
  inset: 6% 4%;
  z-index: -1;
  background: radial-gradient(ellipse 42% 40% at 50% 50%, rgba(2, 7, 14, 0.3), rgba(2, 7, 14, 0.09) 55%, transparent 76%);
  pointer-events: none;
}

.lockup {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 960px);
  text-align: center;
  transform: translateY(0.4vh);
}

.lockup__seal {
  width: clamp(48px, 4.8vw, 72px);
  height: auto;
  margin: 0 0 clamp(16px, 2.6vh, 28px);
  opacity: 0;
  animation: seal-in 1.7s var(--ease) 0.35s forwards;
}

.lockup__seal img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.74) brightness(0.92) contrast(1.03) drop-shadow(0 0 18px rgba(126, 190, 219, 0.24));
  user-select: none;
}

.lockup__kana {
  display: flex;
  align-items: center;
  gap: 0.95em;
  margin: 0 0 clamp(8px, 1.4vh, 15px);
  color: rgba(214, 232, 244, 0.58);
  font-family: var(--japanese);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 1px 10px rgba(1, 4, 9, 0.8);
  opacity: 0;
  animation: rise-in 1.5s var(--ease) 0.85s forwards;
}

.lockup__kana::before,
.lockup__kana::after {
  content: "";
  width: clamp(18px, 2.6vw, 34px);
  height: 1px;
}

.lockup__kana::before {
  background: linear-gradient(90deg, transparent, var(--hairline));
}

.lockup__kana::after {
  background: linear-gradient(90deg, var(--hairline), transparent);
}

.lockup__title {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(5rem, min(14vw, 16vh), 10.6rem);
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: 0.012em;
  text-wrap: nowrap;
  text-shadow:
    0 2px 26px rgba(1, 4, 9, 0.62),
    0 0 84px rgba(150, 198, 224, 0.12);
  opacity: 0;
  animation: title-in 2.2s var(--ease) 0.55s forwards;
}

.lockup__dot {
  color: var(--amber);
  text-shadow: 0 0 26px rgba(229, 193, 152, 0.22);
}

.lockup__lede {
  margin: clamp(18px, 2.8vh, 30px) 0 0;
  color: rgba(231, 241, 248, 0.82);
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.25vw, 1.22rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-wrap: balance;
  text-shadow: 0 1px 16px rgba(1, 4, 9, 0.95);
  opacity: 0;
  animation: rise-in 1.9s var(--ease) 1.35s forwards;
}

.meta {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding:
    0 max(clamp(20px, 4vw, 44px), env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom))
    max(clamp(20px, 4vw, 44px), env(safe-area-inset-left));
  color: rgba(220, 235, 246, 0.6);
  font-family: var(--ui);
  font-size: 0.625rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0;
  animation: fade-in 1.8s ease 1.75s forwards;
}

.meta__domain {
  text-shadow: 0 1px 10px rgba(1, 4, 9, 0.8);
}

.privacy {
  position: relative;
}

.privacy summary {
  margin: -14px 0 -14px -16px;
  padding: 14px 0 14px 16px;
  list-style: none;
  cursor: pointer;
  color: inherit;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  transition: color 300ms ease;
}

.privacy summary::-webkit-details-marker {
  display: none;
}

.privacy summary::marker {
  content: "";
}

.privacy summary:hover {
  color: rgba(238, 246, 251, 0.8);
}

.privacy summary:focus-visible {
  outline: 1px solid rgba(222, 240, 250, 0.66);
  outline-offset: 3px;
  border-radius: 1px;
}

.privacy__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 18px);
  width: min(342px, calc(100vw - max(40px, env(safe-area-inset-left) + env(safe-area-inset-right))));
  max-height: 46vh;
  overflow: auto;
  padding: 17px 19px;
  border: 1px solid rgba(191, 216, 233, 0.14);
  border-radius: 2px;
  background: rgba(5, 12, 21, 0.93);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  color: rgba(218, 232, 242, 0.74);
  font-family: var(--ui);
  font-size: 0.6875rem;
  line-height: 1.75;
  letter-spacing: 0.015em;
  text-align: left;
  text-transform: none;
}

.privacy__panel p {
  margin: 0;
}

.privacy[open] .privacy__panel {
  animation: panel-in 0.45s var(--ease) both;
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .privacy__panel {
    background: rgba(5, 12, 21, 0.7);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    backdrop-filter: blur(18px) saturate(1.15);
  }
}

@keyframes scene-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scene-settle {
  from {
    transform: scale(1.025);
  }
  to {
    transform: scale(1);
  }
}

@keyframes aura-breathe {
  from {
    opacity: 0.55;
    transform: scale(1);
  }
  to {
    opacity: 0.76;
    transform: scale(1.025);
  }
}

@keyframes seal-in {
  from {
    opacity: 0;
    transform: translateY(9px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(11px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes title-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 800px) {
  .lockup {
    transform: translateY(-3.2vh);
  }
}

@media (min-width: 1100px) {
  .stage {
    padding-top: clamp(80px, 13vh, 156px);
    padding-bottom: clamp(48px, 9vh, 112px);
  }
}

@media (max-width: 799px) {
  .stage::before {
    inset: 12% 0;
    background: radial-gradient(ellipse 58% 40% at 50% 50%, rgba(2, 7, 14, 0.3), transparent 76%);
  }

  .lockup {
    transform: translateY(0.4vh);
  }

  .lockup__title {
    font-size: clamp(5rem, 24vw, 7.2rem);
  }

  .lockup__lede {
    letter-spacing: 0.045em;
  }

  .meta {
    min-height: 62px;
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  .stage {
    padding-top: 26px;
    padding-bottom: 14px;
  }

  .stage::before {
    inset: 0 8%;
  }

  .lockup {
    transform: none;
  }

  .lockup__seal {
    width: 42px;
    margin-bottom: 10px;
  }

  .lockup__kana {
    margin-bottom: 6px;
    font-size: 0.7rem;
  }

  .lockup__title {
    font-size: clamp(3.6rem, 13vh, 6rem);
  }

  .lockup__lede {
    margin-top: 10px;
    font-size: 0.9rem;
  }

  .meta {
    min-height: 42px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    font-size: 0.5625rem;
  }
}

@media (max-width: 359px) {
  .stage {
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }

  .meta {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    font-size: 0.5625rem;
    letter-spacing: 0.24em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene__picture,
  .scene__picture img,
  .scene__aura,
  .scene__rain,
  .lockup__seal,
  .lockup__kana,
  .lockup__title,
  .lockup__lede,
  .meta,
  .privacy[open] .privacy__panel {
    animation: none;
  }

  .scene__picture,
  .lockup__seal,
  .lockup__kana,
  .lockup__title,
  .lockup__lede,
  .meta {
    opacity: 1;
  }

  .scene__picture img {
    transform: none;
  }

  .scene__rain {
    display: none;
  }
}

@media (prefers-contrast: more) {
  .stage::before {
    background: radial-gradient(ellipse 48% 44% at 50% 50%, rgba(2, 7, 14, 0.62), rgba(2, 7, 14, 0.2) 60%, transparent 80%);
  }

  .lockup__lede {
    color: rgba(235, 244, 250, 0.9);
  }

  .lockup__kana,
  .meta {
    color: rgba(232, 241, 248, 0.76);
  }

  .lockup__title {
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.8);
  }
}

@media (prefers-reduced-motion: reduce) and (prefers-contrast: more) {
  .scene__rain {
    display: none;
  }
}
