:root {
  --ink: #171717;
  --ink-soft: rgba(23, 23, 23, 0.68);
  --paper: #f5f0e8;
  --paper-strong: rgba(245, 240, 232, 0.92);
  --paper-soft: rgba(245, 240, 232, 0.72);
  --line: rgba(23, 23, 23, 0.12);
  --line-strong: rgba(23, 23, 23, 0.18);
  --shadow: 0 24px 60px rgba(18, 18, 18, 0.08);
  --display-font: "Sora", Verdana, sans-serif;
  --body-font: "Inter", Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body-font);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 100;
  content: "";
  pointer-events: none;
  opacity: 0.08;
  background-image:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.58), transparent 0.8px),
    radial-gradient(circle at 72% 64%, rgba(23, 23, 23, 0.05), transparent 1px);
  background-size: 15px 15px, 22px 22px;
}

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

.nav {
  position: fixed;
  z-index: 90;
  top: 28px;
  right: 28px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-18px);
  will-change: transform, opacity;
}

.nav-toggle {
  display: none !important;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  color: var(--ink);
  cursor: pointer;
  pointer-events: none;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav.is-open .nav-toggle span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.nav.is-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav.is-open .nav-toggle span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.nav-links-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(248, 244, 237, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.nav-links-cluster a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(23, 23, 23, 0.72);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-links-cluster a:hover,
.nav-links-cluster a:focus-visible {
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
  transform: translateY(-1px);
}

.round {
  position: relative;
  height: 1180vh;
}

.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(180deg, rgba(247, 243, 237, 0.04), rgba(247, 243, 237, 0.08));
}

.stage-photo-shell {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.12) 34%, rgba(245, 240, 232, 0.54) 68%, rgba(245, 240, 232, 0.96) 100%),
    url("../img/beach1.png") center center / cover no-repeat;
  transform: scale(1.02);
  filter: saturate(0.88) contrast(0.92) brightness(1.04);
  will-change: transform, filter;
}

.stage-photo-shell::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 48% 16%, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(90deg, rgba(23, 23, 23, 0.03), transparent 18%, transparent 82%, rgba(23, 23, 23, 0.03));
}

.stage::after {
  position: absolute;
  left: -6vw;
  right: -6vw;
  bottom: -2vh;
  z-index: -2;
  height: 34vh;
  content: "";
  background:
    radial-gradient(110% 88% at 50% 100%, rgba(255, 255, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(245, 240, 232, 0) 0%, rgba(245, 240, 232, 0.28) 30%, rgba(245, 240, 232, 0.88) 100%);
}

.hero-logo-stage {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  pointer-events: none;
  will-change: transform, opacity, filter;
}

.hero-title-reveal {
  display: grid;
  justify-items: center;
  gap: 0;
  font-family: var(--display-font);
  font-size: clamp(4.4rem, 12vw, 10.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.88;
  text-transform: uppercase;
}

.hero-title-line {
  display: block;
  background-image:
    linear-gradient(90deg, rgba(12, 23, 33, 0.24) 0%, rgba(58, 96, 124, 0.12) 32%, rgba(216, 186, 137, 0.16) 54%, rgba(71, 107, 133, 0.12) 76%, rgba(12, 23, 33, 0.24) 100%),
    url("../img/beach1.png");
  background-size: 220% 100%, cover;
  background-position: 0% 50%, center center;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  filter: saturate(0.92) contrast(1.04) brightness(1.02);
  text-shadow: 0 10px 34px rgba(16, 22, 31, 0.12);
}

.hero-scroll-cue {
  display: inline-block;
  color: rgba(23, 23, 23, 0.54);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: hero-scroll-bounce 1.7s ease-in-out infinite;
}

.copy-field {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 120px clamp(28px, 5vw, 84px) 110px;
}

.story-copy {
  position: absolute;
  width: min(1180px, calc(100vw - 96px));
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  opacity: 0;
  transform: translateY(38px) scale(0.985);
  pointer-events: none;
}

.story-copy.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.section-index {
  display: block;
  align-self: start;
  color: rgba(23, 23, 23, 0.28);
  font-family: var(--display-font);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  padding-top: 24px;
}

.story-panel {
  width: min(100%, 980px);
  padding: clamp(34px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(248, 244, 237, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.story-panel-intro {
  max-width: 900px;
}

.story-panel-wide {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 42px);
  align-items: start;
}

.story-kicker {
  margin: 0 0 18px;
  color: rgba(23, 23, 23, 0.5);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.copy-welcome h1 {
  max-width: 7ch;
}

.copy-sample-packs h2 {
  max-width: 6.4ch;
}

.story-copy h2 {
  max-width: 7ch;
}

.line {
  display: block;
  overflow: hidden;
  padding: 0.05em 0;
}

.line span {
  display: inline-block;
  transform: translateY(112%) rotate(2deg);
}

.copy-welcome .line span {
  transform: none;
}

.story-copy p {
  max-width: 32rem;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(0.98rem, 1.2vw, 1.06rem);
  font-weight: 500;
  line-height: 1.72;
}

.panel-copy {
  display: block;
}

.sample-library {
  display: grid;
  gap: 22px;
  align-content: start;
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pack-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 252, 247, 0.82);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.pack-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: rgba(255, 252, 247, 0.96);
}

.pack-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  object-fit: cover;
  filter: saturate(0.86) contrast(0.96);
}

.pack-meta {
  display: grid;
  gap: 4px;
}

.pack-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pack-card .pack-artist,
.pack-card p {
  margin: 0;
  color: rgba(23, 23, 23, 0.58);
  font-size: 0.78rem;
  font-weight: 600;
}

.pack-card .pack-artist {
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 0 0 10px;
  border-bottom: 1px solid rgba(23, 23, 23, 0.16);
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: border-color 180ms ease, transform 180ms ease;
}

.section-action:hover {
  border-color: rgba(23, 23, 23, 0.42);
  transform: translateY(-1px);
}

.action-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.after-story {
  min-height: 86vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
  padding: 120px clamp(30px, 6vw, 84px);
  background: linear-gradient(180deg, #f5f0e8, #e8ddcc);
}

.after-story .kicker {
  margin: 0;
  color: rgba(23, 23, 23, 0.5);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.after-story h2 {
  max-width: 880px;
}

.after-story p:last-child {
  max-width: 540px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.68;
}

@media (max-width: 900px) {
  .nav {
    top: 18px;
    right: 18px;
  }

  .story-copy {
    width: min(92vw, 720px);
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section-index {
    padding-top: 0;
    font-size: 1rem;
    letter-spacing: 0.22em;
    color: rgba(23, 23, 23, 0.42);
  }

  .story-panel,
  .story-panel-wide {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .copy-welcome h1,
  .story-copy h2,
  .copy-sample-packs h2 {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .nav {
    top: 12px;
    right: 12px;
  }

  .nav-toggle {
    display: inline-flex !important;
    pointer-events: auto;
  }

  .nav-links-cluster {
    position: absolute;
    top: 56px;
    right: 0;
    width: min(84vw, 320px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    padding: 0;
    transition: max-height 220ms ease, opacity 180ms ease, padding 180ms ease;
  }

  .nav.is-open .nav-links-cluster {
    max-height: 320px;
    opacity: 1;
    pointer-events: auto;
    padding: 10px;
  }

  .nav-links-cluster a {
    justify-content: center;
    padding: 9px 10px;
    background: rgba(255, 252, 247, 0.88);
    border-radius: 999px;
    font-size: 0.58rem;
    letter-spacing: 0.13em;
  }

  .hero-title-reveal {
    font-size: clamp(3.2rem, 15vw, 5.8rem);
  }

  .copy-field {
    padding: 106px 18px 72px;
  }

  .story-copy {
    width: min(92vw, 540px);
  }

  .story-panel {
    padding: 28px 22px;
    border-radius: 22px;
  }

  h1,
  h2 {
    font-size: clamp(2.65rem, 12vw, 4.4rem);
    line-height: 0.94;
  }

  .story-copy p {
    max-width: 100%;
    font-size: 0.96rem;
  }

  .pack-grid {
    grid-template-columns: 1fr;
  }

  .after-story {
    padding: 100px 22px;
  }
}

@media (min-width: 761px) {
  .nav-toggle {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

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

@keyframes hero-scroll-bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.62;
  }

  50% {
    transform: translateY(8px);
    opacity: 1;
  }
}
