:root {
  --bg: #020202;
  --panel: #171717;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.64);
  --dim: rgba(255, 255, 255, 0.36);
  --pink: #ff5bb8;
  --pink-deep: #6d1745;
  --line: rgba(255, 91, 184, 0.42);
  --grid: rgba(255, 91, 184, 0.08);
  --font-display: "Montserrat", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.2;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E");
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px clamp(24px, 5vw, 72px);
  transition: background 240ms ease, padding 240ms ease, border-color 240ms ease;
}

.site-header.is-scrolled {
  padding-top: 18px;
  padding-bottom: 18px;
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.brand span,
.palette-section h2 span,
.section-kicker,
.product-copy h1 span {
  color: var(--pink);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  font-size: 14px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.desktop-nav a:not(.buy-link):hover,
.mobile-nav a:not(.buy-link):hover {
  color: var(--pink);
}

.buy-link,
.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--pink);
  background: var(--pink);
  color: #090909;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.08em;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.desktop-nav .buy-link {
  min-width: 134px;
  padding: 0 22px;
}

.buy-link:hover,
.primary-cta:hover {
  transform: translateY(-2px);
  background: #fff;
  border-color: #fff;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 9px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: currentColor;
  transform-origin: center;
  transition: transform 220ms ease, opacity 220ms ease;
}

.menu-button.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.menu-button.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-content: center;
  gap: 28px;
  background: rgba(0, 0, 0, 0.94);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 900;
  text-align: center;
}

.mobile-nav.is-open {
  display: grid;
}

.mobile-nav .buy-link {
  min-width: 180px;
  margin: 12px auto 0;
  font-size: 16px;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #030303;
  perspective: 1100px;
}

.hero::after {
  content: "DARE TO WEAR";
  position: absolute;
  left: 50%;
  bottom: -0.2em;
  transform: translateX(-50%);
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(70px, 13vw, 190px);
  font-weight: 900;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.018);
}

.corner-line {
  position: absolute;
  z-index: 4;
  width: 88px;
  height: 112px;
  border-color: var(--line);
}

.corner-line-top {
  top: 120px;
  left: clamp(22px, 4vw, 52px);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.hero-grid {
  position: absolute;
  inset: -6vh -2vw 0;
  transform-style: preserve-3d;
}

.tile {
  position: absolute;
  width: 12.5vw;
  height: 16.66vh;
  min-width: 96px;
  min-height: 82px;
  background-image: url("./assets/images/hero-collage.jpg");
  background-size: 800% 600%;
  transform-style: preserve-3d;
  opacity: var(--opacity, 0.88);
  filter: grayscale(1) contrast(1.08) brightness(0.72);
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1), filter 220ms ease, opacity 220ms ease;
  will-change: transform;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 91, 184, 0.42), transparent 54%);
  mix-blend-mode: color;
  opacity: var(--tint, 0.52);
}

.tile.is-pink {
  background-image: linear-gradient(135deg, var(--pink), #a32c72);
  filter: none;
}

.tile.is-pink::after {
  display: none;
}

.tile:hover {
  opacity: 1;
  filter: grayscale(0.75) contrast(1.16) brightness(0.88);
}

.hero-copy {
  position: absolute;
  left: 50%;
  bottom: 58px;
  z-index: 7;
  display: grid;
  justify-items: center;
  gap: 14px;
  transform: translateX(-50%);
  text-align: center;
}

.hero-copy p {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.32em;
  color: rgba(255, 255, 255, 0.68);
}

.hero-copy a {
  min-width: 164px;
  padding: 14px 24px;
  border: 1px solid var(--pink);
  color: var(--pink);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.12em;
  background: rgba(255, 91, 184, 0.08);
}

.hero-copy a::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 16px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
}

.section-grid,
.palette-section,
.story-section,
.site-footer {
  border-top: 1px solid rgba(255, 91, 184, 0.1);
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    #020202;
  background-size: 25vw 25vw;
}

.product-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: clamp(32px, 7vw, 110px);
  min-height: 880px;
  padding: clamp(80px, 12vw, 170px) clamp(22px, 5vw, 76px);
  overflow: hidden;
}

.product-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28%;
  width: 44vw;
  height: 44vw;
  background: radial-gradient(circle, rgba(255, 91, 184, 0.2), transparent 66%);
  opacity: 0.55;
}

.section-copy,
.product-stage,
.palette-section,
.story-copy {
  position: relative;
  z-index: 2;
}

.section-kicker {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.section-kicker::before,
.section-kicker::after {
  content: "";
  display: inline-block;
  width: 34px;
  height: 1px;
  margin: 0 12px 4px 0;
  background: var(--line);
}

.section-kicker::after {
  margin: 0 0 4px 12px;
}

.product-copy {
  align-self: start;
}

.product-copy h1,
.palette-section h2,
.story-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(44px, 6.8vw, 92px);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0;
}

.product-label {
  margin: 26px 0 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.32em;
  color: var(--pink);
}

.product-text {
  max-width: 550px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
}

.product-stats {
  display: flex;
  gap: 34px;
  margin: 34px 0;
}

.product-stats span {
  display: grid;
  gap: 7px;
  color: var(--dim);
  font-size: 13px;
}

.product-stats strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
}

.primary-cta {
  min-width: 170px;
  padding: 0 24px;
  font-size: 14px;
}

.product-stage {
  display: grid;
  place-items: center;
  min-height: 560px;
}

.product-stage::before {
  content: "";
  position: absolute;
  inset: 11% 8% 9% 8%;
  border: 1px solid rgba(255, 91, 184, 0.18);
  transform: skewY(-4deg);
}

.product-stage img {
  position: relative;
  z-index: 2;
  width: min(44vw, 520px);
  min-width: 280px;
  filter: drop-shadow(0 44px 70px rgba(255, 91, 184, 0.28));
  animation: floatProduct 5s ease-in-out infinite;
}

.product-stage .price {
  position: absolute;
  top: 18%;
  left: 8%;
  z-index: 3;
  padding: 14px 26px;
  background: var(--pink);
  color: #080808;
  font-family: var(--font-display);
  font-weight: 900;
}

.product-stage strong {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(70px, 12vw, 184px);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.026);
}

.palette-section {
  min-height: 940px;
  padding: clamp(82px, 12vw, 164px) clamp(20px, 5vw, 74px);
  text-align: center;
}

.palette-section h2 {
  max-width: 900px;
  margin: 0 auto 62px;
}

.palette-section h2 span {
  display: inline-block;
  margin-left: 0.18em;
}

.shade-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.06);
}

.shade-card {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 260px;
  border: 0;
  padding: 28px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  font: inherit;
  text-align: left;
  background: var(--shade);
  cursor: pointer;
}

.shade-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 54%),
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.42), transparent 18%);
  opacity: 0.8;
}

.shade-card:hover,
.shade-card.is-active {
  transform: translateY(-10px);
  z-index: 2;
}

.shade-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.shade-card p {
  margin: 11px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.6;
}

.hint {
  margin: 42px 0 0;
  color: var(--dim);
  font-size: 13px;
  letter-spacing: 0.22em;
}

.story-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: clamp(38px, 8vw, 118px);
  min-height: 1000px;
  padding: clamp(74px, 10vw, 148px) clamp(22px, 5vw, 76px);
  overflow: hidden;
}

.slash-line {
  position: absolute;
  left: 39%;
  top: 11%;
  width: 1px;
  height: 76%;
  background: linear-gradient(transparent, var(--pink), transparent);
  transform: rotate(14deg);
  transform-origin: center;
}

.portrait-frame {
  position: relative;
  z-index: 2;
  justify-self: end;
  width: min(47vw, 620px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--panel);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(0.68);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 91, 184, 0.34);
  mix-blend-mode: color;
}

.story-copy {
  max-width: 520px;
}

.story-copy p:not(.section-kicker) {
  color: var(--muted);
  font-size: 17px;
  line-height: 2;
}

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0;
}

.values span {
  border: 1px solid rgba(255, 91, 184, 0.34);
  padding: 11px 15px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.ghost-word {
  position: absolute;
  left: 4vw;
  bottom: 12%;
  font-family: var(--font-display);
  font-size: clamp(82px, 17vw, 260px);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.026);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.4fr;
  gap: clamp(36px, 8vw, 120px);
  padding: 80px clamp(22px, 5vw, 76px) 32px;
}

.site-footer p {
  max-width: 430px;
  color: var(--muted);
  line-height: 1.9;
}

.socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.66);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.footer-links div {
  display: grid;
  gap: 13px;
}

.footer-links strong {
  margin-bottom: 7px;
  font-size: 13px;
}

.footer-links a,
.copyright {
  color: rgba(255, 255, 255, 0.44);
  font-size: 12px;
}

.copyright {
  grid-column: 1 / -1;
  max-width: none;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes floatProduct {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }
  50% {
    transform: translateY(-18px) rotate(3deg);
  }
}

@media (max-width: 860px) {
  .site-header {
    padding: 34px 22px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .brand {
    font-size: 21px;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-grid {
    inset: -4vh -8vw 0;
  }

  .tile {
    width: 24vw;
    height: 13.5vh;
    min-width: 74px;
    min-height: 72px;
  }

  .corner-line-top {
    top: 116px;
    left: 24px;
    width: 64px;
    height: 96px;
  }

  .hero-copy {
    bottom: 48px;
  }

  .hero-copy p {
    font-size: 13px;
  }

  .product-section,
  .story-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .product-section {
    min-height: auto;
    padding-top: 84px;
  }

  .product-stage {
    min-height: 460px;
  }

  .product-stage img {
    width: min(86vw, 420px);
  }

  .product-stats {
    gap: 22px;
  }

  .palette-section {
    min-height: auto;
  }

  .shade-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shade-card {
    min-height: 190px;
    padding: 20px;
  }

  .story-section {
    min-height: auto;
  }

  .portrait-frame {
    justify-self: stretch;
    width: 100%;
    max-height: 620px;
  }

  .slash-line {
    left: 14%;
    top: 20%;
    height: 48%;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .product-copy h1,
  .palette-section h2,
  .story-copy h2 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .shade-board {
    grid-template-columns: 1fr;
  }

  .shade-card {
    min-height: 160px;
  }

  .product-stats {
    flex-direction: column;
  }
}
