/* Diamond Nails & Beauty — Onyx & Gold */
:root {
  --onyx: #090807;
  --onyx-2: #100e0c;
  --onyx-3: #171411;
  --onyx-4: #221d18;
  --gold: #d1ad66;
  --gold-light: #ead09a;
  --gold-deep: #a9843f;
  --ivory: #f4eee4;
  --ivory-dim: #cfc6b8;
  --muted: #9b9184;
  --line: rgba(209, 173, 102, 0.22);
  --line-strong: rgba(209, 173, 102, 0.45);
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Jost', 'Segoe UI', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--onyx);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--onyx); }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--onyx); padding: 10px 16px; text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 12px; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
  margin: 0 0 18px;
}
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 0;
}
.display em { font-style: italic; color: var(--gold-light); }

/* ---------- Buttons ---------- */
.btn {
  --bg: linear-gradient(135deg, #f0d79f 0%, #d1ad66 45%, #b38d45 100%);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px;
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; color: #120e09; background: var(--bg);
  border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 10px 30px -12px rgba(209, 173, 102, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), filter 0.35s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(209, 173, 102, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.4); filter: brightness(1.04); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost {
  background: transparent; color: var(--ivory); box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--gold); background: rgba(209, 173, 102, 0.06); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 12px; letter-spacing: 0.2em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 0 var(--gutter);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), height 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(9, 8, 7, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand-name { font-family: var(--serif); font-size: 21px; letter-spacing: 0.04em; line-height: 1; }
.brand-name small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.header-actions { display: flex; align-items: center; gap: 14px; }

/* ---------- Cinematic ---------- */
.cinematic { position: relative; height: 640vh; background: var(--onyx); }
.cinematic__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.cinematic__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cinematic__fallback {
  position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 0.6s;
}
.cinematic.no-webgl .cinematic__fallback { opacity: 0.55; }
.cinematic__vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 60% 50%, transparent 55%, rgba(5, 4, 3, 0.6) 100%),
    linear-gradient(90deg, rgba(9, 8, 7, 0.7) 0%, rgba(9, 8, 7, 0.2) 36%, transparent 52%),
    linear-gradient(0deg, rgba(9, 8, 7, 0.85) 0%, rgba(9, 8, 7, 0.35) 26%, transparent 46%);
}
.cinematic__flash {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background:
    radial-gradient(70% 60% at 50% 45%, rgba(255, 244, 214, 0.85) 0%, rgba(255, 244, 214, 0) 60%),
    linear-gradient(135deg, #f3dca6 0%, #d8b46c 38%, #c39a4f 62%, #a37b37 100%);
}
.cinematic.is-loading .cinematic__canvas { opacity: 0; }
.cinematic__canvas { transition: opacity 0.8s; }
.cinematic.is-loading .cinematic__fallback { opacity: 0.4; filter: brightness(0.6); }

.chapter {
  position: absolute; left: var(--gutter); top: 50%;
  width: min(460px, 40vw);
  transform: translateY(-50%);
  opacity: 0; visibility: hidden;
  pointer-events: none;
}
.chapter.is-active { pointer-events: auto; }
.chapter--hero { opacity: 1; visibility: visible; pointer-events: auto; }
.chapter__num {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.chapter__num::after { content: ''; height: 1px; width: 56px; background: var(--line-strong); }
.chapter h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.6vw, 68px); line-height: 1; margin: 0 0 18px; }
.chapter h2 em { font-style: italic; color: var(--gold-light); }
.chapter p { margin: 0; color: var(--ivory-dim); font-size: 17px; max-width: 30em; }
.chapter__price {
  margin-top: 22px; display: inline-flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 13px; letter-spacing: 0.08em; color: var(--gold-light);
  padding-top: 16px; border-top: 1px solid var(--line);
}

.chapter--hero { left: var(--gutter); right: calc(var(--gutter) + 150px); width: auto; top: auto; bottom: clamp(28px, 6vh, 64px); transform: none; }
.hero-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 32px; }
.hero-row p { flex: 0 1 30em; margin: 0; }
.hero-row .hero-actions, .hero-row .hero-rating { margin: 0; }
.chapter__quote { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.2vw, 32px) !important; line-height: 1.25; color: var(--ivory) !important; }
.chapter--hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(46px, 5.2vw, 84px); line-height: 1; margin: 0 0 20px; letter-spacing: -0.015em; }
.chapter--hero h1 em { font-style: italic; color: var(--gold-light); }
.chapter--hero p { font-size: 16.5px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-rating { display: flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 14px; color: var(--ivory-dim); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; }

.chapter--cta { text-align: left; }
.chapter--cta .hero-actions { margin-top: 26px; }

/* Self-playing tour control */
.autoplay {
  position: absolute; right: var(--gutter); bottom: 30px; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.autoplay__btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 18px 0 14px; border-radius: 999px; cursor: pointer;
  font: 500 11px/1 var(--sans); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ivory);
  background: rgba(9, 8, 7, 0.45); border: 1px solid var(--line-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s, background 0.3s;
}
.autoplay__btn:hover { border-color: var(--gold); background: rgba(209, 173, 102, 0.1); }
.autoplay__icon { position: relative; width: 10px; height: 12px; }
/* play triangle */
.autoplay__icon::before {
  content: ''; position: absolute; inset: 0; background: var(--gold-light);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
/* pause bars */
.autoplay__btn.is-playing .autoplay__icon::before { clip-path: none; width: 3px; left: 1px; }
.autoplay__btn.is-playing .autoplay__icon::after {
  content: ''; position: absolute; top: 0; bottom: 0; right: 1px; width: 3px; background: var(--gold-light);
}
.autoplay__hint { font-size: 10.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); }

.stage-rail {
  position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 18px; list-style: none; margin: 0; padding: 0;
  transition: opacity 0.4s;
}
.stage-rail li {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted);
  transition: color 0.4s;
}
.stage-rail li::after { content: ''; width: 18px; height: 1px; background: currentColor; transition: width 0.4s var(--ease); }
.stage-rail li.is-on { color: var(--gold-light); }
.stage-rail li.is-on::after { width: 42px; }

.progress-line { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: rgba(255, 255, 255, 0.04); }
.progress-line i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--gold-deep), var(--gold-light)); }

/* ---------- Mobile cinematic ---------- */
@media (max-width: 820px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .brand img { width: 46px; height: 46px; }
  .brand-name { font-size: 18px; }
  .brand-name small { font-size: 9px; letter-spacing: 0.28em; }
  .cinematic { height: 560vh; }
  .cinematic__vignette {
    background:
      radial-gradient(130% 80% at 50% 38%, transparent 50%, rgba(5, 4, 3, 0.6) 100%),
      linear-gradient(0deg, rgba(9, 8, 7, 0.96) 0%, rgba(9, 8, 7, 0.82) 30%, rgba(9, 8, 7, 0) 56%);
  }
  .chapter, .chapter--hero {
    top: auto; bottom: calc(24px + env(safe-area-inset-bottom)); transform: none;
    left: var(--gutter); right: var(--gutter); width: auto;
  }
  .chapter h2 { font-size: clamp(34px, 9.5vw, 46px); margin-bottom: 12px; }
  .chapter p { font-size: 15.5px; }
  .chapter__price { margin-top: 14px; padding-top: 12px; font-size: 12px; }
  .chapter--hero h1 { font-size: clamp(44px, 13vw, 64px); margin-bottom: 16px; }
  .chapter--hero h1 em { display: block; }
  .hero-row { display: block; }
  .hero-row .hero-actions { margin-top: 20px; }
  .hero-row .hero-rating { margin-top: 16px; }
  .eyebrow, .chapter--hero .eyebrow { font-size: 11px; letter-spacing: 0.2em; margin-bottom: 12px; }
  .chapter--hero p { font-size: 15.5px; }
  .hero-actions { margin-top: 20px; gap: 10px; }
  .hero-actions .btn { flex: 1 1 auto; padding: 0 20px; }
  .hero-rating { margin-top: 16px; font-size: 13px; }
  .stage-rail { display: none; }
  .autoplay { top: calc(var(--header-h) + 8px); bottom: auto; }
  .autoplay__btn { height: 34px; padding: 0 14px 0 12px; font-size: 10px; }
  .autoplay__hint { display: none; }
  .header-actions .btn { min-height: 40px; padding: 0 16px; font-size: 11px; }
}
@media (max-width: 380px) {
  .brand-name { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* The tagline shown while the screen is washed in gold */
.chapter--gold {
  left: 50%; top: 50%; width: min(900px, 90vw); transform: translate(-50%, -50%); text-align: center;
}
.chapter--gold .eyebrow { color: rgba(18, 14, 9, 0.7); margin-bottom: 14px; }
.chapter--gold h2 { color: #120e09; font-size: clamp(44px, 7vw, 104px); line-height: 1; margin: 0; }
.chapter--gold h2 em { color: #3a2a12; }
@media (max-width: 820px) {
  .chapter--gold { top: 50%; bottom: auto; left: 50%; right: auto; transform: translate(-50%, -50%); width: 90vw; }
}
