@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Jost:wght@300;400;500;600&display=swap');

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

:root {
  --navy-deep: #0b1424;
  --navy: #12203a;
  --navy-mid: #1a2c4a;
  --navy-light: #24395c;
  --gold-deep: #8a6d38;
  --gold: #c9a769;
  --gold-light: #e8d6ab;
  --ivory: #f8f4ec;
  --ivory-dim: #c7c3ba;
  --mid-gray: #9aa3b5;
  --line: rgba(201, 167, 105, 0.22);
  --line-soft: rgba(248, 244, 236, 0.1);
}

html { scroll-behavior: smooth; }

/* Home page only: scroll snaps cleanly from one section to the next.
   html must actually be the scrolling box (defined height + overflow-y)
   for scroll-snap-type to take effect on the whole document. */
html.snap-page {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}

html.snap-page body {
  height: 100%;
}

html.snap-page .snap-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

body {
  font-family: 'Jost', sans-serif;
  background: var(--navy);
  color: var(--ivory-dim);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; }

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

/* subtle background texture across the whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201,167,105,0.09) 0%, transparent 60%),
    repeating-linear-gradient(45deg, rgba(201,167,105,0.025) 0px, rgba(201,167,105,0.025) 1px, transparent 1px, transparent 64px),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 40%);
}

/* ============ NAV ============ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 64px;
  background: rgba(11, 20, 36, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-tagline {
  font-family: 'Jost', sans-serif;
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 6px;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  letter-spacing: 0.14em;
  color: var(--ivory);
  text-decoration: none;
  text-transform: uppercase;
}

.nav-logo em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  padding-bottom: 6px;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); }

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 210;
}

.nav-toggle span {
  width: 24px;
  height: 1px;
  background: var(--gold-light);
  transition: all 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 40px 100px;
  position: relative;
}

.hero-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 640px;
  height: 640px;
  transform: translate(-50%, -55%);
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: 0.5;
}

.hero-ring::before {
  content: '';
  position: absolute;
  inset: 60px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.hero-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 26px;
  position: relative;
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6.5vw, 5.6rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--ivory);
  margin-bottom: 26px;
  position: relative;
  max-width: 900px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--mid-gray);
  margin-bottom: 46px;
  max-width: 520px;
  position: relative;
}

.btn {
  display: inline-block;
  padding: 16px 46px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  color: var(--navy-deep);
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.35s ease;
  position: relative;
}

.btn:hover {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-light);
}

.btn-outline:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-deep));
  color: var(--navy-deep);
  border-color: transparent;
}

/* ============ SECTIONS ============ */
.section {
  padding: 110px 64px;
  max-width: 1240px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 300;
  color: var(--ivory);
  line-height: 1.18;
  margin-bottom: 22px;
}

.section-body {
  font-size: 0.9rem;
  line-height: 2;
  color: var(--ivory-dim);
  max-width: 540px;
}

.divider {
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 8px 0 30px;
}

.centered { text-align: center; }
.centered .divider { margin-left: auto; margin-right: auto; background: var(--gold); }
.centered .section-body { margin-left: auto; margin-right: auto; }

/* ============ FEATURED GRID ============ */
.grid-heading {
  text-align: center;
  padding: 0 40px 56px;
}

.gem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 64px 110px;
}

.gem-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.gem-card {
  background: linear-gradient(160deg, var(--navy-mid), var(--navy-deep));
  border: 1px solid var(--line);
  padding: 2px;
  text-decoration: none;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  display: block;
}

.gem-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 24px 48px rgba(0,0,0,0.35), 0 0 0 1px rgba(201,167,105,0.15);
}

.gem-plaque {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(201,167,105,0.14) 0%, transparent 60%),
    var(--navy);
  position: relative;
  overflow: hidden;
}

.gem-plaque::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(201,167,105,0.18);
}

.gem-svg {
  width: 58%;
  height: 58%;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.4));
  transition: transform 0.5s ease;
}

.gem-card:hover .gem-svg { transform: scale(1.06) translateY(-2px); }

.gem-plaque img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  position: relative;
  z-index: 1;
  transition: transform 0.5s ease;
}

.gem-plaque:has(img.fit-contain) {
  background: #000;
}

.gem-plaque img.fit-contain {
  object-fit: contain;
  object-position: center;
  padding: 10%;
}

.gem-plaque img.zoom-in { transform: scale(1.18); }
.gem-card:hover .gem-plaque img.zoom-in { transform: scale(1.24) translateY(-2px); }

.gem-card:hover .gem-plaque img { transform: scale(1.06); }

.gem-info {
  padding: 22px 22px 26px;
}

.gem-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  color: var(--ivory);
  margin-bottom: 6px;
}

.gem-detail {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--mid-gray);
}

.gem-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--line);
  color: var(--gold-light);
  background: rgba(11,20,36,0.6);
  z-index: 2;
}

/* ============ ABOUT SPLIT ============ */
.about-strip {
  background: linear-gradient(180deg, var(--navy-mid), var(--navy));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-strip-inner {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 90px;
  align-items: center;
  padding: 110px 64px;
  max-width: 1240px;
  margin: 0 auto;
}

.about-frame {
  border: 1px solid var(--gold);
  padding: 18px;
  position: relative;
}

.about-frame::before {
  content: '';
  position: absolute;
  inset: -10px;
  border: 1px solid var(--line);
  pointer-events: none;
}

.about-visual {
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(201,167,105,0.16) 0%, transparent 60%),
    var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-visual svg { width: 46%; height: 46%; filter: drop-shadow(0 10px 22px rgba(0,0,0,0.45)); }

.about-visual video,
.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.featured-title { white-space: nowrap; }

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

/* ============ PILLARS (legacy support) ============ */
.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 48px;
}

.pillar-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--ivory);
  margin-bottom: 8px;
}

.pillar-body {
  font-size: 0.78rem;
  line-height: 1.9;
  color: var(--mid-gray);
}

/* ============ PAGE HERO (category pages) ============ */
.page-hero {
  padding: 170px 40px 70px;
  text-align: center;
}

.page-hero .section-body { margin: 0 auto; }
.page-hero .section-body + .section-body { margin-top: 16px; }

/* ============ PROCESS TIMELINE ============ */
.process-timeline {
  position: relative;
  display: flex;
  justify-content: space-between;
  max-width: 520px;
  margin: 44px auto 0;
  padding: 0 6px;
}

.process-track {
  position: absolute;
  top: 13px;
  left: 6px;
  right: 6px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-deep) 0%, var(--gold) 45%, var(--gold-light) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s cubic-bezier(0.16, 0.84, 0.44, 1);
}

.page-hero.in-view .process-track { transform: scaleX(1); }

.process-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(0.16, 0.84, 0.44, 1), transform 0.6s cubic-bezier(0.16, 0.84, 0.44, 1);
}

.page-hero.in-view .process-step { opacity: 1; transform: translateY(0); }

.process-step:nth-child(2) { transition-delay: 150ms; }
.process-step:nth-child(3) { transition-delay: 350ms; }
.process-step:nth-child(4) { transition-delay: 550ms; }
.process-step:nth-child(5) { transition-delay: 750ms; }

.process-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  color: var(--gold-light);
}

.process-label {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

@media (max-width: 500px) {
  .process-timeline { max-width: 300px; }
  .process-label { font-size: 0.52rem; letter-spacing: 0.1em; }
}

/* ============ CONTACT ============ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  padding: 20px 64px 120px;
  max-width: 1240px;
  margin: 0 auto;
}

.contact-info-item { margin-bottom: 24px; }

.contact-info-label {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.contact-info-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: var(--ivory);
  line-height: 1.5;
}

.contact-info-value a { text-decoration: none; transition: color 0.25s; }
.contact-info-value a:hover { color: var(--gold-light); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.form-group { display: flex; flex-direction: column; gap: 10px; }

.form-group label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-family: 'Jost', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ivory);
  outline: none;
  transition: border-color 0.25s;
  -webkit-appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(199,195,186,0.4); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-bottom-color: var(--gold); }

.form-group textarea { resize: vertical; min-height: 110px; }

.form-group select option { background: var(--navy); color: var(--ivory); }

.form-group input.invalid { border-bottom-color: #c9776b; }

.form-error {
  font-size: 0.65rem;
  letter-spacing: 0.02em;
  color: #c9776b;
  min-height: 14px;
}

/* ============ FOOTER ============ */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 64px;
  border-top: 1px solid var(--line);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--mid-gray);
}

footer a {
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.65rem;
  transition: color 0.25s;
}

footer a:hover { color: var(--gold-light); }

/* ============ PASSWORD GATE ============ */
.password-gate {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(201,167,105,0.09) 0%, transparent 60%),
    var(--navy-deep);
  padding: 40px;
}

.password-gate-box { text-align: center; max-width: 380px; width: 100%; }

.password-gate-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 30px;
}

.password-gate-form input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--ivory);
  outline: none;
  text-align: center;
  transition: border-color 0.25s;
}

.password-gate-form input:focus { border-bottom-color: var(--gold); }

.password-gate-form input::placeholder { color: rgba(199,195,186,0.4); }

.password-gate-error {
  font-size: 0.7rem;
  color: #c9776b;
  min-height: 16px;
}

/* ============ PAGE LOADER ============ */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-deep);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader svg {
  width: 68px;
  height: 68px;
  color: var(--gold-light);
  filter: drop-shadow(0 0 14px rgba(201, 167, 105, 0.35));
  animation: loaderSpin 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes loaderSpin {
  0%, 100% { transform: rotate(-10deg) scale(0.94); }
  50% { transform: rotate(10deg) scale(1.06); }
}

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s cubic-bezier(0.16, 0.84, 0.44, 1), transform 0.9s cubic-bezier(0.16, 0.84, 0.44, 1);
}

.reveal.in-view { opacity: 1; transform: translateY(0); }

/* grids animate their own children in a staggered cascade instead of moving as one block */
.gem-grid.reveal,
.pillars.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.gem-grid.reveal .gem-card,
.pillars.reveal > div {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  transition: opacity 0.7s cubic-bezier(0.16, 0.84, 0.44, 1), transform 0.7s cubic-bezier(0.16, 0.84, 0.44, 1);
}

.gem-grid.reveal.in-view .gem-card,
.pillars.reveal.in-view > div {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.gem-grid .gem-card:nth-child(1), .pillars > div:nth-child(1) { transition-delay: 0ms; }
.gem-grid .gem-card:nth-child(2), .pillars > div:nth-child(2) { transition-delay: 70ms; }
.gem-grid .gem-card:nth-child(3), .pillars > div:nth-child(3) { transition-delay: 140ms; }
.gem-grid .gem-card:nth-child(4), .pillars > div:nth-child(4) { transition-delay: 210ms; }
.gem-grid .gem-card:nth-child(5) { transition-delay: 280ms; }
.gem-grid .gem-card:nth-child(6) { transition-delay: 350ms; }
.gem-grid .gem-card:nth-child(7) { transition-delay: 420ms; }
.gem-grid .gem-card:nth-child(8) { transition-delay: 490ms; }
.gem-grid .gem-card:nth-child(9) { transition-delay: 560ms; }

/* subtle hero parallax drift, driven by --scroll set in script.js */
.hero-ring {
  transform: translate(-50%, -55%) translateY(calc(var(--scroll, 0) * -0.15px));
  transition: transform 0.1s linear;
}

.hero-eyebrow,
.hero h1,
.hero-sub {
  transform: translateY(calc(var(--scroll, 0) * -0.08px));
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .gem-grid { grid-template-columns: repeat(2, 1fr); }
  .about-strip-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-layout { grid-template-columns: 1fr; gap: 60px; }
  .pillars { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  nav { padding: 22px 26px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(72vw, 320px);
    background: rgba(11, 20, 36, 0.98);
    border-left: 1px solid var(--line);
    flex-direction: column;
    justify-content: center;
    gap: 34px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .section { padding: 80px 26px; }

  /* product grids become a swipeable, one-at-a-time carousel on mobile */
  .gem-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 26px 60px;
    gap: 16px;
  }

  .gem-grid::-webkit-scrollbar { display: none; }

  .gem-grid .gem-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
  }

  .about-strip-inner { padding: 80px 26px; }
  .contact-layout { padding: 20px 26px 90px; }
  .contact-info-item { margin-bottom: 20px; }
  footer { flex-direction: column; gap: 16px; padding: 36px 26px; text-align: center; }
}

@media (max-width: 500px) {
  .stat-row { grid-template-columns: 1fr; gap: 20px; }
  .featured-title { white-space: normal; }
}
