/* Harmora coming soon. The palette and type are the product's own (src/app/globals.css): an ebony
   ground, ivory text, one maple amber accent, a serif display. System fonts only, so the page needs
   nothing from another origin and the Content-Security-Policy can stay at 'self'. */

:root {
  --ebony-950: #121011;
  --ebony-900: #191416;
  --ebony-500: #55443e;
  --maple-500: #f2a63b;
  --maple-600: #cd8526;
  --ivory-100: #f7f5f0;
  --ivory-300: #c4bab0;
  --ivory-500: #bcb0a3;
  --display: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", "Noto Serif CJK SC", "Songti SC", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
  --gutter: clamp(20px, 5vw, 72px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--ebony-950);
  color: var(--ivory-100);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The product's own hero art, anchored to the right, with the dark half of the photograph left free
   for the words. */
.hero,
.hero img {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img {
  object-fit: cover;
  object-position: 72% 50%;
}

/* One gradient and nothing else: it keeps the text legible where the art reaches under it. */
.veil {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 16, 17, 0.94) 0%, rgba(18, 16, 17, 0.82) 38%, rgba(18, 16, 17, 0.2) 70%, rgba(18, 16, 17, 0) 100%),
    linear-gradient(0deg, rgba(18, 16, 17, 0.85) 0%, rgba(18, 16, 17, 0) 28%);
}

.page {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 28px;
}

.wordmark {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--maple-500);
}

.chain {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid var(--ebony-500);
  border-radius: 999px;
  background: rgba(25, 20, 22, 0.72);
  color: var(--ivory-300);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

.lead {
  align-self: center;
  max-width: 620px;
  padding-block: 40px 56px;
}

h1 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(52px, 9vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ivory-100);
}

.accent {
  color: var(--maple-500);
  font-style: italic;
}

.line {
  margin: 0;
  max-width: 44ch;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ivory-100);
}

.line-zh {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ivory-300);
}

/* The equalizer from the product's feed, as the one moving thing on the page. */
.eq {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 44px;
  margin: 40px 0 36px;
}

.eq span {
  flex: 0 0 6px;
  height: 100%;
  border-radius: 999px 999px 2px 2px;
  background: linear-gradient(180deg, var(--maple-500), var(--maple-600));
  transform-origin: bottom;
  transform: scaleY(0.35);
  animation: eq 1.8s var(--ease) infinite alternate;
}

.eq span:nth-child(3n) { animation-duration: 1.3s; }
.eq span:nth-child(4n) { animation-duration: 2.2s; }
.eq span:nth-child(5n) { animation-duration: 1.6s; }
.eq span:nth-child(7n) { animation-duration: 2.6s; }
.eq span:nth-child(2n) { animation-delay: -0.4s; }
.eq span:nth-child(3n + 1) { animation-delay: -0.9s; }
.eq span:nth-child(5n + 2) { animation-delay: -1.3s; }

@keyframes eq {
  0% { transform: scaleY(0.18); }
  45% { transform: scaleY(0.72); }
  100% { transform: scaleY(0.4); }
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 24px 28px;
  font-size: 13px;
  color: var(--ivory-500);
}

@media (max-width: 760px) {
  .hero img {
    object-position: 70% 30%;
  }

  .veil {
    background:
      linear-gradient(180deg, rgba(18, 16, 17, 0.55) 0%, rgba(18, 16, 17, 0.35) 30%, rgba(18, 16, 17, 0.88) 62%, rgba(18, 16, 17, 0.97) 100%);
  }

  .lead {
    align-self: end;
    padding-block: 24px 32px;
  }

  .eq {
    height: 36px;
    gap: 4px;
    margin: 32px 0 28px;
  }

  .eq span {
    flex-basis: 5px;
  }

  .eq span:nth-child(n + 27) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eq span {
    animation: none;
  }

  .eq span:nth-child(odd) { transform: scaleY(0.55); }
  .eq span:nth-child(3n) { transform: scaleY(0.3); }
  .eq span:nth-child(4n) { transform: scaleY(0.8); }
}
