:root {
  --ruby: #9f183f;
  --ruby-dark: #5d0b26;
  --plum: #281022;
  --navy: #061a33;
  --ink: #09080b;
  --ivory: #f7efe6;
  --pearl: #fffaf2;
  --gold: #d9b66d;
  --rose: #e8a1ad;
  --line: rgba(255, 250, 242, 0.18);
  --shadow: 0 24px 80px rgba(5, 3, 7, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--pearl);
  font-family: Inter, Arial, sans-serif;
  letter-spacing: 0;
}

body.cart-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(8, 6, 10, 0.78);
  border-color: rgba(217, 182, 109, 0.22);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(217, 182, 109, 0.7);
  border-radius: 50%;
  color: var(--gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 16px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: rgba(255, 250, 242, 0.76);
  font-size: 14px;
  font-weight: 600;
}

.nav a:hover {
  color: var(--gold);
}

.header-cta {
  min-width: max-content;
  border: 1px solid rgba(217, 182, 109, 0.5);
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 120px clamp(18px, 5vw, 70px) 72px;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: 54% center;
  filter: saturate(1.04) contrast(1.04);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(6, 10, 18, 0.92), rgba(40, 16, 34, 0.56) 48%, rgba(0, 0, 0, 0.18)),
    linear-gradient(0deg, rgba(9, 8, 11, 0.94), rgba(9, 8, 11, 0.05) 40%);
}

.hero-content {
  position: relative;
  width: min(680px, 100%);
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(62px, 11vw, 148px);
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-copy {
  width: min(560px, 100%);
  color: rgba(255, 250, 242, 0.82);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(217, 182, 109, 0.5);
  border-radius: 999px;
  padding: 0 20px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold), #fff0be);
  color: #1b0d10;
}

.button.secondary {
  background: rgba(255, 250, 242, 0.08);
  color: var(--pearl);
}

.button.full {
  width: 100%;
}

.signature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(217, 182, 109, 0.22);
  border-block: 1px solid rgba(217, 182, 109, 0.22);
}

.signature-strip div {
  min-height: 116px;
  padding: 28px clamp(18px, 4vw, 56px);
  background: linear-gradient(135deg, #120b14, #0b1627);
}

.signature-strip span,
.footer span {
  display: block;
  color: rgba(255, 250, 242, 0.58);
  font-size: 13px;
}

.signature-strip strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(16px, 2vw, 22px);
}

.section {
  padding: clamp(70px, 10vw, 130px) clamp(18px, 5vw, 70px);
}

.section-heading {
  width: min(860px, 100%);
  margin-bottom: 42px;
}

.section-heading p,
.ritual-content > p,
.founder p {
  color: rgba(255, 250, 242, 0.7);
  font-size: 17px;
  line-height: 1.72;
}

.collection {
  background:
    radial-gradient(circle at 92% 8%, rgba(159, 24, 63, 0.28), transparent 30%),
    linear-gradient(180deg, #09080b, #140912 58%, #080b12);
}

.collection-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.25fr);
  align-items: start;
  gap: clamp(24px, 4vw, 54px);
}

.product-art {
  position: sticky;
  top: 96px;
  overflow: hidden;
  border: 1px solid rgba(217, 182, 109, 0.24);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.product-card {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(217, 182, 109, 0.22);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 250, 242, 0.045);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
}

.product-card.featured {
  background: linear-gradient(145deg, rgba(159, 24, 63, 0.24), rgba(255, 250, 242, 0.05));
}

.product-card p {
  color: rgba(255, 250, 242, 0.67);
  line-height: 1.6;
}

.notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.notes span {
  border: 1px solid rgba(232, 161, 173, 0.24);
  border-radius: 999px;
  padding: 7px 10px;
  color: #ffd8dd;
  font-size: 12px;
  font-weight: 700;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.price-row strong {
  color: var(--gold);
  font-size: 24px;
}

.price-row span {
  color: rgba(255, 250, 242, 0.5);
  font-size: 13px;
}

.add-button {
  border: 0;
  background: var(--pearl);
  color: #1b0d10;
}

.buy-button {
  color: var(--gold);
  background: transparent;
}

.ritual {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  padding: clamp(70px, 10vw, 130px) clamp(18px, 5vw, 70px);
  background: #09080b;
}

.ritual-image {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.ritual-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.ritual-steps article {
  min-height: 178px;
  border: 1px solid rgba(217, 182, 109, 0.2);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 250, 242, 0.04);
}

.ritual-steps span {
  color: var(--gold);
  font-weight: 900;
}

.ritual-steps p {
  color: rgba(255, 250, 242, 0.62);
  line-height: 1.55;
}

.gallery {
  background:
    radial-gradient(circle at 12% 12%, rgba(159, 24, 63, 0.3), transparent 28%),
    linear-gradient(180deg, #09080b, #150912 54%, #071321);
}

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  grid-template-areas:
    "portrait atelier"
    "portrait vanity";
  gap: 16px;
}

.gallery-card {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(217, 182, 109, 0.22);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.04);
  box-shadow: var(--shadow);
}

.gallery-card.tall {
  grid-area: portrait;
  min-height: 740px;
}

.gallery-card.wide {
  grid-area: atelier;
}

.gallery-card:not(.tall):not(.wide) {
  grid-area: vanity;
}

.gallery-card img {
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.gallery-card figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  border: 1px solid rgba(217, 182, 109, 0.32);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(8, 6, 10, 0.72);
  color: var(--pearl);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.founder {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(300px, 1.15fr);
  gap: clamp(22px, 5vw, 70px);
  align-items: start;
  background: linear-gradient(135deg, #15101a, #071b33);
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  display: flex;
  width: min(430px, 100%);
  height: 100vh;
  flex-direction: column;
  gap: 22px;
  padding: 28px;
  background: #100910;
  border-left: 1px solid rgba(217, 182, 109, 0.28);
  box-shadow: -20px 0 70px rgba(0, 0, 0, 0.4);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

.cart-panel.is-open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.cart-header h2 {
  margin: 0;
  font-size: 34px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(217, 182, 109, 0.24);
  border-radius: 50%;
  background: transparent;
  color: var(--pearl);
  cursor: pointer;
  font-size: 20px;
}

.cart-items {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow: auto;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 250, 242, 0.12);
  padding-bottom: 12px;
}

.cart-item h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.cart-item p {
  margin: 0;
  color: rgba(255, 250, 242, 0.6);
  font-size: 13px;
}

.cart-item button {
  border: 0;
  background: transparent;
  color: var(--rose);
  cursor: pointer;
  font-weight: 800;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid rgba(217, 182, 109, 0.26);
  padding-top: 18px;
  font-size: 18px;
}

.floating-cart {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 25;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(217, 182, 109, 0.45);
  border-radius: 999px;
  padding: 0 10px 0 18px;
  background: rgba(12, 9, 14, 0.82);
  color: var(--pearl);
  cursor: pointer;
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.32);
}

.floating-cart strong {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #160a0d;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 30px clamp(18px, 5vw, 70px);
  background: #050507;
  border-top: 1px solid rgba(217, 182, 109, 0.2);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding-top: 100px;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(6, 10, 18, 0.88), rgba(40, 16, 34, 0.48)),
      linear-gradient(0deg, rgba(9, 8, 11, 0.95), rgba(9, 8, 11, 0.06) 48%);
  }

  .signature-strip,
  .collection-layout,
  .ritual,
  .gallery-grid,
  .founder {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-areas:
      "portrait"
      "atelier"
      "vanity";
  }

  .gallery-card,
  .gallery-card.tall {
    min-height: 520px;
  }

  .gallery-card.wide {
    min-height: 300px;
  }

  .product-art {
    position: relative;
    top: auto;
  }

  .ritual-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand span:last-child {
    font-size: 14px;
  }

  .hero {
    min-height: min(86vh, 760px);
    padding-bottom: 38px;
  }

  h1 {
    font-size: clamp(44px, 15vw, 64px);
  }

  h2 {
    font-size: 34px;
  }

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

  .product-card {
    min-height: 0;
    padding: 22px;
  }

  .gallery {
    padding-top: 72px;
  }

  .gallery-card,
  .gallery-card.tall {
    min-height: 460px;
  }

  .gallery-card.wide {
    min-height: 260px;
  }

  .card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .card-actions .button {
    width: 100%;
  }

  .cart-panel {
    padding: 22px;
  }

  .floating-cart {
    right: 14px;
    bottom: 14px;
  }
}
