:root {
  --ink: #151411;
  --charcoal: #1b1a17;
  --charcoal-soft: #24211c;
  --gold: #c49a47;
  --gold-light: #e2c98d;
  --ivory: #f3efe5;
  --cream: #fbf8f1;
  --line: rgba(21, 20, 17, .16);
  --white-line: rgba(255,255,255,.18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  height: 96px;
  display: grid;
  grid-template-columns: minmax(270px, 1fr) auto minmax(270px, 1fr);
  align-items: center;
  padding: 0 4vw;
  color: #fff;
  border-bottom: 1px solid var(--white-line);
}
.brand { display: inline-flex; align-items: center; gap: 14px; width: fit-content; }
.brand-logo { width: 78px; height: 70px; object-fit: contain; }
.brand-seal {
  width: 48px; height: 48px; border: 1px solid var(--gold); border-radius: 50%;
  display: grid; place-items: center; color: var(--gold-light);
  font: 600 15px/1 var(--serif); letter-spacing: .08em;
}
.brand-name { font: 600 20px/1.05 var(--serif); letter-spacing: .02em; }
.brand-name small { display: block; margin-top: 6px; font: 500 9px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.64); }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a { position: relative; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 1px; background: var(--gold); transition: right .25s ease; }
.site-nav a:hover::after { right: 0; }
.header-action { justify-self: end; display: flex; align-items: center; gap: 10px; color: var(--gold-light); font-size: 13px; font-weight: 700; }
.header-action svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.menu-button { display: none; }

.hero { position: relative; min-height: 790px; color: white; background: var(--charcoal); overflow: hidden; }
.hero-image { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,15,12,.92) 0%, rgba(16,15,12,.74) 35%, rgba(16,15,12,.06) 74%, rgba(16,15,12,.16) 100%); }
.hero-content { position: relative; z-index: 2; width: min(660px, 48vw); padding: 185px 0 105px 8vw; }
.eyebrow { margin: 0 0 22px; color: var(--gold-light); font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow-dark { color: #8b6928; }
.hero h1, .section h2, .wholesale h2 { margin: 0; font: 600 clamp(54px, 6vw, 90px)/.9 var(--serif); letter-spacing: -.035em; }
.hero h1 em { color: var(--gold-light); font-weight: 500; }
.hero-copy { max-width: 520px; margin: 32px 0 0; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 34px; margin-top: 38px; }
.button { min-height: 54px; padding: 0 25px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-gold { color: var(--ink); background: var(--gold-light); }
.text-link { display: inline-flex; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.45); color: white; font-size: 13px; font-weight: 600; }
.hero-index { position: absolute; z-index: 2; right: 4vw; bottom: 45px; display: flex; align-items: center; gap: 13px; color: rgba(255,255,255,.62); font-size: 10px; letter-spacing: .1em; }
.hero-index i { width: 70px; height: 1px; background: rgba(255,255,255,.4); }

.promise-bar { display: grid; grid-template-columns: repeat(3, 1fr); padding: 25px 5vw; color: var(--gold-light); background: #11100e; border-top: 1px solid rgba(226,201,141,.15); }
.promise-bar p { margin: 0; padding: 0 28px; font: 500 14px/1.4 var(--serif); letter-spacing: .025em; border-right: 1px solid var(--white-line); text-align: center; }
.promise-bar p:last-child { border: 0; }
.promise-bar span { margin-right: 12px; color: rgba(255,255,255,.4); font: 600 9px/1 var(--sans); }

.section { padding: 120px 7vw; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); align-items: end; gap: 7vw; }
.section-heading h2, .story h2 { font-size: clamp(48px, 5.5vw, 78px); }
.section-heading > p { margin: 0 0 6px; max-width: 530px; color: #706b61; font-size: 16px; line-height: 1.8; }
.filter-row { display: flex; gap: 26px; margin: 65px 0 28px; border-bottom: 1px solid var(--line); }
.filter { padding: 0 0 13px; color: #777167; background: transparent; border: 0; border-bottom: 2px solid transparent; cursor: pointer; font-size: 13px; }
.filter.active { color: var(--ink); border-color: var(--gold); font-weight: 700; }
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.product-card { min-height: 490px; display: flex; flex-direction: column; justify-content: space-between; background: #f9f6ef; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: opacity .25s, transform .25s, background .25s; }
.product-card:hover { background: #fff; transform: translateY(-4px); }
.product-card.featured { min-height: 490px; background: #f9f6ef; color: var(--ink); }
.product-card.is-hidden { display: none; }
.product-image { position: relative; height: 245px; flex: 0 0 245px; overflow: hidden; }
.product-card.featured .product-image { height: 245px; flex-basis: 245px; }
.product-image img { height: 100%; object-fit: cover; object-position: center; }
.product-visual {
  display: flex;
  align-items: flex-end;
  padding: 34px 28px;
  background:
    radial-gradient(circle at 76% 28%, rgba(226,201,141,.23), transparent 28%),
    linear-gradient(145deg, #2e2920, #12110f 72%);
}
.product-visual::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: 7%;
  top: 17%;
  border: 1px solid rgba(226,201,141,.28);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(226,201,141,.035), 0 0 0 62px rgba(226,201,141,.02);
}
.product-visual strong { color: rgba(255,255,255,.95); font: 500 clamp(56px,6vw,92px)/.8 var(--serif); letter-spacing: -.04em; }
.product-visual small { margin-left: auto; color: var(--gold); font: 600 11px/1 var(--sans); letter-spacing: .15em; }
.product-image span { position: absolute; left: 18px; top: 18px; padding: 8px 11px; color: var(--ink); background: rgba(251,248,241,.92); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.product-card-body { padding: 28px; }
.product-meta { margin: 0 0 14px; color: #867c69; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.product-card h3 { margin: 0 0 26px; font: 600 28px/1.08 var(--serif); }
.product-grade { display: block; color: #9b6e3c; font-style: normal; font-size: 32px; line-height: 1; }
.product-name { display: block; margin-top: 10px; color: var(--ink); font: 600 20px/1.15 var(--serif); }
.product-number { padding: 28px; color: #b7ad9b; font: 600 13px/1 var(--sans); }
.product-link { padding: 0 0 5px; display: inline-flex; gap: 10px; color: inherit; background: transparent; border: 0; border-bottom: 1px solid currentColor; cursor: pointer; font-size: 12px; font-weight: 700; }
.accent-card { color: var(--ink); background: #f9f6ef; }
.accent-card:hover { background: #fff; }

.grades { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; padding: 0; background: var(--charcoal); color: white; }
.grades-photo { min-height: 780px; overflow: hidden; }
.grades-photo img { height: 100%; object-fit: cover; }
.grades-content { padding: 110px 8vw 90px 6vw; display: flex; flex-direction: column; justify-content: center; }
.grades-content h2 { font-size: clamp(50px, 5.5vw, 78px); }
.lead { margin: 28px 0 36px; color: rgba(255,255,255,.66); font-size: 16px; line-height: 1.8; }
.grade-row { display: grid; grid-template-columns: 72px 1fr; gap: 25px; padding: 26px 0; border-top: 1px solid var(--white-line); }
.grade-row:last-of-type { border-bottom: 1px solid var(--white-line); }
.grade-letter { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-light); font: 600 23px/1 var(--serif); }
.grade-row h3 { margin: 0; font: 600 27px/1 var(--serif); }
.grade-row p { margin: 7px 0 0; color: rgba(255,255,255,.58); font-size: 13px; line-height: 1.6; }
.gold-link { width: fit-content; margin-top: 34px; color: var(--gold-light); border-color: rgba(226,201,141,.5); }

.story { display: grid; grid-template-columns: .85fr 1.15fr; gap: 8vw; align-items: center; background: var(--ivory); }
.story-copy p:not(.eyebrow) { max-width: 550px; margin: 30px 0; color: #6d675b; font-size: 16px; line-height: 1.9; }
.dark-link { width: fit-content; color: var(--ink); border-color: rgba(21,20,17,.4); }
.story-image { margin: 0; position: relative; }
.story-image img { aspect-ratio: 1.24; object-fit: cover; }
.story-image figcaption { position: absolute; left: -42px; bottom: -42px; width: 250px; padding: 26px; color: white; background: var(--charcoal); }
.story-image figcaption span { display: block; font: 600 23px/1.1 var(--serif); }
.story-image figcaption small { display: block; margin-top: 10px; color: rgba(255,255,255,.55); font-size: 10px; line-height: 1.5; }

.wholesale { padding: 130px 6vw; text-align: center; color: white; background: linear-gradient(rgba(20,18,14,.92),rgba(20,18,14,.94)), url("./assets/celestial-hero.png") center/cover; }
.wholesale h2 { font-size: clamp(48px, 5vw, 74px); }
.wholesale-actions { display: flex; justify-content: center; gap: 14px; margin-top: 38px; }
.button-outline { color: white; border-color: rgba(255,255,255,.55); }
.button-dark { color: white; background: var(--ink); }

.site-footer { display: grid; grid-template-columns: 1.5fr .55fr .55fr; gap: 6vw; padding: 70px 7vw 35px; color: white; background: #0e0d0b; }
.footer-brand { display: flex; gap: 18px; align-items: flex-start; }
.footer-logo { width: 76px; height: 70px; object-fit: contain; }
.footer-brand strong { font: 600 25px/1 var(--serif); }
.footer-brand p { margin: 10px 0 0; color: rgba(255,255,255,.5); font-size: 12px; }
.footer-column { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.footer-column span { margin-bottom: 8px; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.footer-column p { margin: 0; color: rgba(255,255,255,.62); line-height: 1.7; }
.footer-column a { color: rgba(255,255,255,.72); }
.copyright { grid-column: 1 / -1; margin: 45px 0 0; padding-top: 20px; border-top: 1px solid var(--white-line); color: rgba(255,255,255,.35); font-size: 10px; line-height: 1.5; }

.product-dialog { max-width: 600px; padding: 50px; border: 0; border-radius: 0; color: var(--ink); background: var(--cream); box-shadow: 0 30px 100px rgba(0,0,0,.45); }
.product-dialog::backdrop { background: rgba(10,9,7,.8); backdrop-filter: blur(5px); }
.product-dialog h2 { margin: 0 0 20px; font: 600 46px/.95 var(--serif); }
.product-dialog p:not(.eyebrow) { color: #706b61; line-height: 1.8; }
.dialog-close { position: absolute; right: 18px; top: 13px; border: 0; background: transparent; cursor: pointer; font: 300 28px/1 var(--sans); }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; height: 82px; }
  .site-nav { position: absolute; left: 0; right: 0; top: 82px; display: none; flex-direction: column; align-items: flex-start; padding: 25px 6vw 30px; color: white; background: rgba(15,14,12,.98); }
  .site-nav.open { display: flex; }
  .header-action { display: none; }
  .menu-button { justify-self: end; display: grid; gap: 7px; width: 44px; height: 44px; place-content: center; color: white; background: transparent; border: 1px solid rgba(255,255,255,.3); }
  .menu-button span:not(.sr-only) { display: block; width: 20px; height: 1px; background: currentColor; }
  .hero-content { width: 65vw; padding-left: 6vw; }
  .section { padding: 90px 6vw; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-image, .product-card.featured .product-image { height: 360px; flex-basis: 360px; }
  .grades { grid-template-columns: 1fr; }
  .grades-photo { min-height: 560px; }
  .story { grid-template-columns: 1fr; }
  .story-image { width: 90%; margin-left: auto; }
}

@media (max-width: 680px) {
  .site-header { padding: 0 20px; }
  .brand-name { font-size: 17px; }
  .brand-logo { width: 66px; height: 58px; }
  .brand-seal { width: 40px; height: 40px; font-size: 12px; }
  .hero { min-height: 760px; }
  .hero-image { object-position: 66% center; }
  .hero-overlay { background: linear-gradient(180deg, rgba(16,15,12,.52), rgba(16,15,12,.93) 63%, rgba(16,15,12,.98)); }
  .hero-content { width: auto; padding: 180px 22px 90px; }
  .hero h1 { font-size: 53px; }
  .hero-copy { font-size: 15px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-index { display: none; }
  .promise-bar { grid-template-columns: 1fr; gap: 0; padding: 8px 22px; }
  .promise-bar p { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--white-line); text-align: left; }
  .promise-bar p:last-child { border: 0; }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .section-heading h2, .story h2 { font-size: 50px; }
  .filter-row { gap: 18px; overflow-x: auto; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card.featured { min-height: 490px; }
  .product-image, .product-card.featured .product-image { height: 300px; flex-basis: 300px; }
  .grades-photo { min-height: 420px; }
  .grades-content { padding: 80px 24px; }
  .grades-content h2 { font-size: 50px; }
  .story { padding-bottom: 120px; }
  .story-image { width: 100%; margin-top: 25px; }
  .story-image figcaption { left: 16px; right: 16px; bottom: -72px; width: auto; }
  .wholesale { padding: 95px 22px; }
  .wholesale h2 { font-size: 45px; }
  .wholesale-actions { flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; gap: 34px; padding: 55px 24px 30px; }
  .copyright { margin-top: 12px; }
  .product-dialog { margin: 16px; padding: 45px 28px 32px; }
  .product-dialog h2 { font-size: 39px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
