@font-face {
  font-family: "Inter";
  src: url("assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color: #1d1a16;
  background: #e9e5dc;
  --brand: #ffffa9;
  --brand-ink: #000000;
  --radius-control: 8px;
  --site-logo-height: 34px;
  --font-sans: "Inter", "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, system-ui, sans-serif;
  font-family: var(--font-sans);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100dvh;
}

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

.home-page {
  background: #f4f4f4;
  transition: background-color 900ms ease;
}

.home-page.is-intro {
  background: #000000;
}

.home-page.is-launching {
  background: #f4f4f4;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  padding: 32px;
  color: #181511;
  --spotlight-bottom-offset: calc(clamp(48px, 4.6875vw, 90px) - 24px);
  --spotlight-ground-extension: clamp(54px, 8vw, 96px);
}

.home-page.is-intro .hero-stars,
.home-page.is-intro .hero-shadows {
  opacity: 0;
}

.home-page.is-intro .hero-product {
  opacity: 0;
  pointer-events: none;
}

.home-page.is-intro .hero-products {
  z-index: 6;
  pointer-events: none;
}

.home-page.is-launching:not(.is-revealed) .hero-stars,
.home-page.is-launching:not(.is-revealed) .hero-shadows {
  opacity: 0;
}

.home-page.is-launching:not(.is-revealed) .hero-products {
  z-index: 6;
  pointer-events: none;
}

.home-page.is-revealed .hero-stars,
.home-page.is-revealed .hero-shadows,
.home-page.is-revealed .hero-products {
  opacity: 1;
}

.hero-stars,
.hero-shadows,
.hero-products {
  transition: opacity 650ms ease;
}

.hero-stars {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

.hero-star {
  position: absolute;
  display: block;
  background: url("assets/star.webp") center / contain no-repeat;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity var(--star-fade-duration, 600ms) ease-in-out;
  will-change: opacity;
}

.hero-shadows {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.hero-shadow {
  position: absolute;
  width: var(--shadow-width, 104px);
  height: var(--shadow-height, 28px);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(24 21 17 / 28%), rgb(24 21 17 / 0%) 72%);
  filter: blur(5px);
  opacity: var(--shadow-opacity, 0.2);
  transform: translate(-50%, -50%) scale(var(--shadow-scale, 1));
  transform-origin: center;
  will-change: transform, opacity;
}

.hero-products {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  transform: perspective(1100px) rotateX(var(--scene-x, 0deg)) rotateY(var(--scene-y, 0deg));
  transform-origin: center;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-product {
  position: absolute;
  left: var(--product-x, 50%);
  top: var(--product-y, 50%);
  z-index: 1;
  --product-size: clamp(64px, 9vw, 132px);
  pointer-events: auto;
  cursor: pointer;
  transform:
    translate(-50%, -50%)
    translate3d(var(--product-mx, 0px), var(--product-my, 0px), 0)
    translate3d(var(--wander-x, 0px), var(--wander-y, 0px), 0)
    translate3d(var(--avoid-x, 0px), var(--avoid-y, 0px), 0)
    translateY(var(--product-float-y, 0px))
    rotate(var(--product-tilt, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.product-visual {
  position: relative;
  display: block;
  transform:
    rotateX(var(--product-hover-rotate-x, 0deg))
    rotateY(var(--product-hover-rotate-y, 0deg))
    scale(var(--product-hover-scale, 1));
  transform-style: preserve-3d;
  pointer-events: none;
  will-change: transform;
}

.product-visual img {
  display: block;
  width: auto;
  height: auto;
  max-width: var(--product-size);
  max-height: var(--product-size);
  object-fit: contain;
  pointer-events: none;
}

.hero-product.is-bouncing .product-visual {
  animation: product-bounce 560ms cubic-bezier(0.28, 0.84, 0.42, 1);
}

@keyframes product-bounce {
  0% {
    transform: scale(1);
  }

  35% {
    transform: scale(1.12);
  }

  65% {
    transform: scale(0.94);
  }

  100% {
    transform: scale(1);
  }
}

.hero-particles {
  position: absolute;
  z-index: 3;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-spotlight {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 4;
  width: min(720px, 96vw);
  height: calc(50% + var(--spotlight-bottom-offset) + var(--spotlight-ground-extension));
  transform: translateX(-50%);
  pointer-events: none;
  mix-blend-mode: screen;
  background: linear-gradient(
    to bottom,
    rgb(255 255 255 / 96%),
    rgb(255 255 255 / 82%) 34%,
    rgb(255 255 255 / 48%) 68%,
    rgb(255 255 255 / 18%) 88%,
    rgb(255 255 255 / 8%) 100%
  );
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 28%, black 72%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 28%, black 72%, transparent 100%);
  filter: blur(14px);
  transition:
    height 1000ms cubic-bezier(0.22, 0.8, 0.3, 1),
    filter 1000ms ease,
    opacity 900ms ease;
}

.home-page.is-launching .hero-spotlight {
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to bottom, rgb(0 0 0 / 58%), rgb(0 0 0 / 12%) 72%, rgb(0 0 0 / 0%));
  mask-image: linear-gradient(to bottom, rgb(0 0 0 / 58%), rgb(0 0 0 / 12%) 72%, rgb(0 0 0 / 0%));
  opacity: 0.2;
  filter: blur(18px);
}

.home-page.is-revealed .hero-spotlight {
  opacity: 0;
}

.gift-box {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 5;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #181511;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: opacity 500ms ease;
  -webkit-tap-highlight-color: transparent;
}

.home-page.is-revealed .gift-box {
  opacity: 0;
  pointer-events: none;
}

.gift-box-visual {
  position: relative;
  display: block;
  width: clamp(96px, 9.375vw, 180px);
  aspect-ratio: 1;
  transform-origin: 50% 80%;
}

.gift-box-visual::after {
  position: absolute;
  left: 50%;
  bottom: -7px;
  z-index: -1;
  width: 86%;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(0 0 0 / 58%), rgb(0 0 0 / 0%) 72%);
  filter: blur(5px);
  content: "";
  transform: translateX(-50%);
  pointer-events: none;
}

.gift-box-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.gift-box-image-open {
  opacity: 0;
}

.gift-box.is-open .gift-box-image-closed {
  opacity: 0;
}

.gift-box.is-open .gift-box-image-open {
  opacity: 1;
}

.gift-box-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgb(24 21 17 / 58%);
  border-radius: 999px;
  background: rgb(244 244 244 / 88%);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  pointer-events: none;
}

.gift-box.is-logo-launched {
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.gift-box.is-wiggling .gift-box-visual {
  animation: gift-wiggle 560ms ease-in-out;
}

.gift-box.is-shaking .gift-box-visual {
  animation: gift-shake 520ms cubic-bezier(0.36, 0.12, 0.2, 1);
}

.gift-box.is-open.is-spitting .gift-box-visual {
  animation: gift-spit 720ms ease-in-out infinite;
}

@keyframes gift-wiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-3deg) translateY(-1px);
  }

  75% {
    transform: rotate(3deg) translateY(-1px);
  }
}

@keyframes gift-shake {
  0%,
  100% {
    transform: rotate(0deg);
  }

  15% {
    transform: rotate(-7deg);
  }

  30% {
    transform: rotate(6deg);
  }

  45% {
    transform: rotate(-5deg);
  }

  60% {
    transform: rotate(4deg);
  }

  75% {
    transform: rotate(-2deg);
  }
}

@keyframes gift-spit {
  0%,
  100% {
    transform: scale(1, 1) translateY(0);
  }

  32% {
    transform: translateY(10px) scale(0.86, 1.22);
  }

  68% {
    transform: translateY(-12px) scale(1.12, 0.8);
  }
}

.hero-particle {
  position: absolute;
  display: block;
  background: url("assets/star.webp") center / contain no-repeat;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero-confetti {
  position: absolute;
  display: block;
  pointer-events: none;
  will-change: transform, opacity;
}

.hero-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.home-page.is-revealed .hero-content {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-brand {
  margin: 0;
}

.hero-logo {
  display: block;
  width: min(360px, 70vw);
  height: auto;
  object-fit: contain;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.replay-button {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 4vw, 42px);
  z-index: 7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0;
  padding: 0;
  border: 1px solid rgb(24 21 17 / 28%);
  border-radius: 50%;
  background: rgb(255 255 255 / 78%);
  color: #181511;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition:
    opacity 240ms ease,
    background-color 180ms ease,
    color 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.replay-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.replay-button:hover {
  background: rgb(255 255 255 / 96%);
}

.home-page.is-revealed .replay-button {
  opacity: 1;
  pointer-events: auto;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 158px;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid #181511;
  background: #181511;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.primary-button:hover {
  background: transparent;
  color: #181511;
  transform: translateY(-2px);
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 158px;
  min-height: 54px;
  padding: 0 28px;
  border: 1px solid rgb(24 21 17 / 72%);
  color: #181511;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition:
    border-color 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.secondary-button:hover {
  border-color: #181511;
  background: rgb(24 21 17 / 8%);
  transform: translateY(-2px);
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.site-brand:focus-visible,
.site-nav a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.lookbook-page {
  background: #f4f4f4;
}

.contact-page {
  background: #ffffff;
}

.lookbook-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100dvh;
  overflow: hidden;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 64px;
  padding: 0 24px;
  border-bottom: 1px solid rgb(29 26 22 / 12%);
  background: rgb(244 244 244 / 88%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.site-brand-logo {
  display: block;
  width: auto;
  max-width: 180px;
  height: calc(var(--site-logo-height) * 2 / 3);
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: var(--radius-control);
  color: #6c665b;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.site-nav a:hover {
  background: rgb(29 26 22 / 7%);
  color: #1d1a16;
}

.site-nav a[aria-current="page"] {
  background: var(--brand);
  color: var(--brand-ink);
}

.lookbook-main {
  min-height: 0;
}

.lookbook-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f4f4f4;
}

.contact-page .site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  background: rgb(255 255 255 / 88%);
}

.contact-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100dvh;
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 64px;
}

.contact-content .hero-eyebrow {
  color: #8b8273;
}

.contact-content h1 {
  margin: 0;
  font-size: clamp(3.2rem, 9vw, 7rem);
  font-weight: 500;
  line-height: 0.96;
}

.contact-intro {
  margin: 26px 0 0;
  color: #5d584f;
  font-size: 1rem;
  line-height: 1.7;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin: 54px 0 0;
}

.contact-list div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid rgb(29 26 22 / 14%);
}

.contact-list dt {
  color: #8b8273;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 0;
  color: #1d1a16;
  font-size: 1rem;
  line-height: 1.6;
}

.contact-list a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .hero {
    padding: 24px;
    --spotlight-bottom-offset: calc(clamp(48px, 4.6875vw, 90px) - 20.5px);
    --spotlight-ground-extension: clamp(36px, 12vw, 54px);
  }

  .gift-box {
    gap: 11px;
  }

  .gift-box-label {
    min-height: 30px;
    padding: 0 11px;
    font-size: 0.7rem;
  }

  .gift-box-visual::after {
    bottom: -5px;
    height: 14px;
  }

  .hero-logo {
    width: min(260px, 68vw);
  }

  .hero-actions {
    margin-top: 32px;
  }

  .hero-product,
  .hero-shadows {
    --product-size: clamp(48px, 13vw, 78px);
  }

  .site-header {
    min-height: 58px;
    padding: 0 16px;
  }

  .site-brand {
    min-width: 0;
  }

  .site-brand-logo {
    max-width: 150px;
    --site-logo-height: 28px;
  }

  .site-nav {
    gap: 2px;
  }

  .site-nav a {
    padding: 0 9px;
    font-size: 0.72rem;
  }

  .contact-list div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gift-box {
    display: none;
  }

  .hero-content {
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .home-page.is-intro .hero-stars,
  .home-page.is-intro .hero-shadows,
  .home-page.is-intro .hero-products,
  .home-page.is-intro .hero-content {
    opacity: 1;
    pointer-events: auto;
  }

  .primary-button,
  .secondary-button {
    transition: none;
  }

  .hero-product {
    transform: translate(-50%, -50%);
  }

  .hero-products {
    transform: none;
  }

  .product-visual {
    transform: none;
  }

  .hero-star {
    opacity: 0.75;
    transition: none;
  }

  .hero-product.is-bouncing .product-visual {
    animation: none;
  }

  .primary-button:hover,
  .secondary-button:hover {
    transform: none;
  }
}

.home-page.magic-glow .hero-spotlight {
  display: none;
}

.home-page.magic-glow {
  background: #050505;
}

.home-page.magic-glow.is-launching,
.home-page.magic-glow.is-revealed {
  background: #f4f4f4;
}

.home-page.magic-glow .hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(
    circle at 50% 50%,
    rgb(255 249 196 / 13%),
    rgb(255 249 196 / 0%) 58%
  );
  content: "";
  pointer-events: none;
  animation: magic-ambient 3.8s ease-in-out infinite;
}

.home-page.magic-glow .gift-box::before {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: -1;
  width: min(520px, 88vw);
  height: min(520px, 88vw);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgb(255 249 196 / 28%),
    rgb(255 218 119 / 10%) 42%,
    rgb(255 218 119 / 0%) 70%
  );
  filter: blur(18px);
  content: "";
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: magic-glow 2.8s ease-in-out infinite;
  transition:
    opacity 500ms ease,
    transform 750ms ease;
}

.home-page.magic-glow.is-launching .gift-box::before,
.home-page.magic-glow.is-revealed .gift-box::before {
  opacity: 0;
  transform: translate(-50%, -50%) scale(2.6);
}

.home-page.magic-glow .gift-box-label {
  border-color: rgb(255 249 196 / 72%);
  background: rgb(255 249 196 / 8%);
  color: #fff4c4;
  box-shadow: 0 0 18px rgb(255 235 152 / 26%);
  animation: magic-label 2.2s ease-in-out infinite;
}

.home-page.magic-glow.is-launching .gift-box-label {
  opacity: 0;
}

.home-page.magic-glow .gift-box-visual::after {
  bottom: -32px;
  width: 118%;
  height: 34px;
  background: radial-gradient(
    ellipse at 50% 50%,
    rgb(255 235 152 / 30%),
    rgb(255 235 152 / 0%) 68%
  );
  filter: blur(8px);
  transform: translateX(-50%);
}

.home-page.magic-glow.is-revealed .hero::before {
  animation: none;
  opacity: 0;
}

@keyframes magic-ambient {
  0%,
  100% {
    opacity: 0.72;
  }

  50% {
    opacity: 1;
  }
}

@keyframes magic-glow {
  0%,
  100% {
    opacity: 0.78;
    transform: translate(-50%, -50%) scale(0.96);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.04);
  }
}

@keyframes magic-label {
  0%,
  100% {
    box-shadow: 0 0 12px rgb(255 235 152 / 18%);
  }

  50% {
    box-shadow: 0 0 24px rgb(255 235 152 / 34%);
  }
}
