/* Reset & base typography */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-body);
  font-size: 15px; line-height: 1.55; font-weight: 400;
  min-height: 100vh; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
}

/* Layer 1 — warm paper texture (static, very subtle) */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Layer 2 — slow drifting gold-tinted ambient mesh (whole page feels alive) */
.bg-mesh {
  position: fixed; inset: -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(138,94,31,0.10) 0%, transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(184,138,63,0.08) 0%, transparent 30%),
    radial-gradient(circle at 50% 75%, rgba(99,68,19,0.07) 0%, transparent 32%),
    radial-gradient(circle at 12% 88%, rgba(138,94,31,0.06) 0%, transparent 28%);
  animation: meshDrift 38s ease-in-out infinite alternate;
}
@keyframes meshDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(24px, -16px) scale(1.04); }
  100% { transform: translate(-18px, 12px) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-mesh { animation: none; }
}

/* Hairline gold rule across the top */
body::after {
  content: ''; position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 1000;
  background: linear-gradient(90deg, transparent 5%, var(--gold) 50%, transparent 95%);
  opacity: 0.55;
}

/* ─── Fashion Silhouette Layer ───────────────────────────────── */
/* Two-tone approach: dark charcoal silhouettes contrast against the ivory
   background; rich gold silhouettes complement the brand palette.
   Both groups use much higher opacity so they actually read. */
.fashion-silhouettes {
  position: fixed; inset: 0;
  z-index: 0; pointer-events: none; overflow: hidden;
}

.fs { position: absolute; opacity: 0; }

/* ── Color groups ────────────────────────────────────────────── */
/* Dark charcoal — strong contrast on warm-ivory bg */
.fs--1, .fs--3, .fs--4, .fs--6, .fs--9, .fs--11 {
  color: #1c1916;   /* matches --text */
}
/* Rich gold — warm brand accent, still clearly distinct from bg */
.fs--2, .fs--5, .fs--7, .fs--8, .fs--10, .fs--12 {
  color: #8a5e1f;   /* matches --gold */
}

/* ── Fade-in: final opacity via custom prop ──────────────────── */
@keyframes fsFadeIn { to { opacity: var(--fs-op, 0.18); } }

/* ── Three drift paths — each silhouette gets a different one ── */
@keyframes fsDrift1 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33%      { transform: translate(-14px, -22px) rotate(2deg); }
  67%      { transform: translate(10px, -14px) rotate(-1.5deg); }
}
@keyframes fsDrift2 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25%      { transform: translate(12px, -18px) rotate(-2deg); }
  75%      { transform: translate(-8px, -28px) rotate(1.5deg); }
}
@keyframes fsDrift3 {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  40%      { transform: translate(-10px, -16px) rotate(1deg); }
  80%      { transform: translate(8px, -24px) rotate(-2deg); }
}

/* ── Individual positions, sizes, timings ────────────────────── */

/* 1 — large A-line dress · DARK · top-left, partially clipped */
.fs--1 {
  top: 3vh; left: -2vw; width: 148px; height: auto;
  --fs-op: 0.17;
  animation: fsFadeIn 2.5s 0.4s ease-out forwards, fsDrift1 34s -4s ease-in-out infinite;
}
/* 2 — wide-brim hat · GOLD · top-right */
.fs--2 {
  top: 4vh; right: 0vw; width: 185px; height: auto;
  --fs-op: 0.24;
  animation: fsFadeIn 2.5s 0.7s ease-out forwards, fsDrift2 28s -9s ease-in-out infinite;
}
/* 3 — stiletto heel · DARK · right side mid-page */
.fs--3 {
  top: 38vh; right: -1vw; width: 155px; height: auto;
  --fs-op: 0.18;
  animation: fsFadeIn 2.5s 1.1s ease-out forwards, fsDrift3 36s -15s ease-in-out infinite;
}
/* 4 — blazer · DARK · left side mid-page */
.fs--4 {
  top: 28vh; left: -1vw; width: 105px; height: auto;
  --fs-op: 0.17;
  animation: fsFadeIn 2.5s 0.6s ease-out forwards, fsDrift2 42s -6s ease-in-out infinite;
}
/* 5 — tote bag · GOLD · bottom-left */
.fs--5 {
  bottom: 14vh; left: 1vw; width: 118px; height: auto;
  --fs-op: 0.26;
  animation: fsFadeIn 2.5s 1.3s ease-out forwards, fsDrift1 38s -20s ease-in-out infinite;
}
/* 6 — palazzo trousers · DARK · center-left behind content, more visible now */
.fs--6 {
  top: 50vh; left: 4vw; width: 100px; height: auto;
  --fs-op: 0.14;
  animation: fsFadeIn 2.5s 1.6s ease-out forwards, fsDrift3 46s -11s ease-in-out infinite;
}
/* 7 — smaller A-line dress · GOLD · bottom-right */
.fs--7 {
  bottom: 5vh; right: 0vw; width: 112px; height: auto;
  --fs-op: 0.22;
  animation: fsFadeIn 2.5s 1.9s ease-out forwards, fsDrift2 30s -24s ease-in-out infinite;
}
/* 8 — envelope clutch · GOLD · upper background, faint (behind content) */
.fs--8 {
  top: 18vh; left: 50%; margin-left: -360px; width: 100px; height: auto;
  --fs-op: 0.16;
  animation: fsFadeIn 2.5s 1.4s ease-out forwards, fsDrift1 26s -3s ease-in-out infinite;
}
/* 9 — long trench coat · DARK · left side lower */
.fs--9 {
  bottom: 20vh; left: -2vw; width: 115px; height: auto;
  --fs-op: 0.16;
  animation: fsFadeIn 2.5s 2.1s ease-out forwards, fsDrift2 44s -16s ease-in-out infinite;
}
/* 10 — sunglasses · GOLD · right side upper, small accent */
.fs--10 {
  top: 16vh; right: 2vw; width: 130px; height: auto;
  --fs-op: 0.26;
  animation: fsFadeIn 2.5s 0.9s ease-out forwards, fsDrift3 22s -7s ease-in-out infinite;
}
/* 11 — maxi skirt · DARK · far right lower */
.fs--11 {
  bottom: 18vh; right: -1vw; width: 108px; height: auto;
  --fs-op: 0.16;
  animation: fsFadeIn 2.5s 2.3s ease-out forwards, fsDrift1 40s -28s ease-in-out infinite;
}
/* 12 — mini crossbody · GOLD · center-right behind content, faint */
.fs--12 {
  top: 60vh; right: 4vw; width: 90px; height: auto;
  --fs-op: 0.18;
  animation: fsFadeIn 2.5s 1.7s ease-out forwards, fsDrift2 32s -13s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .fs { animation: none !important; opacity: 0.12 !important; }
}
/* Hide some side silhouettes on narrow screens to avoid clutter */
@media (max-width: 640px) {
  .fs--3, .fs--4, .fs--6, .fs--8, .fs--9, .fs--12 { display: none; }
  .fs--1 { width: 100px; }
  .fs--2 { width: 130px; }
  .fs--10 { width: 95px; }
}

/* Text selection */
::selection { background: var(--gold-bg-strong); color: var(--text-strong); }

/* Default link */
a { color: var(--gold); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--gold-dark); }

/* Focus visibility (keyboard nav) */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Strong default headings */
h1, h2, h3, h4 { color: var(--text-strong); font-weight: 500; letter-spacing: -0.01em; }

.hidden { display: none !important; }
