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

:root {
  --cream: #f5f0e8;
  --warm-white: #faf8f4;
  --charcoal: #1a1714;
  --muted: #8a8279;
  --gold: #c9a96e;
  --gold-light: #e8d5a8;
  --blush: #d4b8a8;
}

html, body {
  min-height: 100%;
  background: var(--charcoal);
}

body {
  font-family: 'Jost', sans-serif;
  color: var(--cream);
}

/* Background layers */
.bg {
  position: fixed; inset: 0;
  background: var(--charcoal);
  z-index: 0;
}
.bg-grain {
  position: fixed; inset: 0;
  z-index: 1;
  opacity: 0.045;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 1;
}
.glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,169,110,0.07) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation: driftA 18s ease-in-out infinite alternate;
}
.glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212,184,168,0.06) 0%, transparent 70%);
  bottom: -80px; left: -80px;
  animation: driftB 22s ease-in-out infinite alternate;
}
@keyframes driftA { from { transform: translate(0,0); } to { transform: translate(-40px, 40px); } }
@keyframes driftB { from { transform: translate(0,0); } to { transform: translate(40px, -30px); } }

/* Page shell */
.page {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 1fr;
  padding: 52px 64px 44px;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) 0.2s forwards;
  position: relative;
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
}
.logo span { color: var(--gold); }
.header-tag {
  font-size: 0.65rem;
  font-weight: 200;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* Top-right dropdown nav + login button */
.top-nav {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-toggle {
  background: transparent;
  border: 1px solid rgba(201,169,110,0.18);
  color: var(--gold-light);
  padding: 8px 12px;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.nav-caret { font-size: 0.72rem; opacity: 0.9; }
.nav-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: rgba(10,9,8,0.98);
  border: 1px solid rgba(201,169,110,0.12);
  min-width: 180px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 500;
  box-shadow: 0 8px 20px rgba(0,0,0,0.6);
}
.nav-dropdown[hidden] {
  display: none !important;
}
.nav-dropdown a {
  color: var(--cream);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 2px;
  font-size: 0.88rem;
}
.nav-dropdown a:hover { background: rgba(255,255,255,0.03); color: var(--gold-light); }
.nav-divider { height: 1px; background: rgba(201,169,110,0.06); margin: 6px 0; }
.login-btn {
  background: var(--gold);
  color: var(--charcoal) !important;
  border: none !important;
  padding: 8px 10px;
  text-align: center;
  font-weight: 600;
}

@media (max-width: 700px) {
  .top-nav { position: static; width: 100%; justify-content: flex-end; margin-top: 8px; }
  .nav-dropdown {
    position: static;
    width: auto;
    box-shadow: none;
    border: 1px solid rgba(201,169,110,0.08);
    margin-top: 8px;
  }
  header { align-items: center; flex-wrap: wrap; }
}

/* Eyebrow nav (used in header and hero) */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow a {
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.35em;
  font-size: 0.58rem;
  font-weight: 300;
  text-transform: uppercase;
  transition: color 0.3s ease;
  position: relative;
}
.eyebrow a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.35s cubic-bezier(0.16,1,0.3,1);
}
.eyebrow a:hover { color: var(--gold-light); }
.eyebrow a:hover::after { width: 100%; }
.eyebrow a.active { color: var(--gold-light); }
.eyebrow a.active::after { width: 100%; }
.eyebrow .sep {
  color: rgba(201,169,110,0.3);
  font-size: 0.5rem;
  user-select: none;
}

/* Decorative divider */
.deco-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 36px 0;
}
.deco-line::before, .deco-line::after {
  content: '';
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.deco-line::after { background: linear-gradient(90deg, var(--gold), transparent); }
.deco-diamond {
  width: 5px; height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* Footer */
footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) 1.4s forwards;
}
.footer-copy {
  font-size: 0.58rem;
  font-weight: 200;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.footer-nav {
  display: flex;
  gap: 22px;
}
.footer-nav a {
  font-size: 0.58rem;
  font-weight: 200;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--gold-light); }

/* Side label */
.side-text {
  position: fixed;
  left: 28px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-size: 0.52rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0;
  animation: fadeIn 1.5s ease 1.8s forwards;
  z-index: 5;
}

/* Aperture decoration */
.aperture {
  position: fixed;
  right: 7vw;
  top: 50%;
  transform: translateY(-50%);
  width: 180px;
  height: 180px;
  opacity: 0;
  animation: fadeIn 2s ease 1.6s forwards;
  z-index: 5;
  pointer-events: none;
}
@keyframes slowSpin {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}
.aperture svg {
  width: 100%; height: 100%;
  animation: slowSpin 40s linear infinite;
  opacity: 0.15;
}

/* Shared keyframes */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Generic page heading block, reused on inner pages */
.page-eyebrow {
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) 0.4s forwards;
}
.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.98;
  color: var(--cream);
  opacity: 0;
  animation: fadeUp 1.2s cubic-bezier(0.16,1,0.3,1) 0.55s forwards;
}
.page-title em {
  font-style: italic;
  color: var(--gold-light);
}
.page-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 300;
  color: var(--blush);
  letter-spacing: 0.03em;
  max-width: 560px;
  line-height: 1.65;
  margin-top: 26px;
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) 0.8s forwards;
}

@media (max-width: 700px) {
  .page { padding: 36px 24px 32px; }
  .aperture { display: none; }
  .side-text { display: none; }
  header { flex-direction: column; gap: 14px; }
  .eyebrow { flex-wrap: wrap; gap: 8px 10px; }
}
