/* ===== Design tokens ===== */
:root {
  --color-bg: #f0eae1;
  --color-hero-bg: #e6ddd0;
  --color-dark: #171512;
  --color-dark-alt: #201d19;
  --color-text: #2b2622;
  --color-text-muted: #6b6259;
  --color-text-light: #ece7de;
  --color-text-light-muted: #a8a096;
  --color-accent: #8a3b3b;
  --color-gold: #a97e52;
  --color-border: #d8cfc1;
  --color-border-light: rgba(236, 231, 222, 0.18);

  --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --section-max: 1200px;
  --label-col: 220px;
  --gap-col: 4rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea { font-family: var(--font-serif); font-size: 1rem; }

.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;
}

h2 {
  font-weight: 400;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1.25;
  margin-bottom: 1.6rem;
  letter-spacing: 0.01em;
}

h3 {
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0.6rem 0 0.8rem;
}

.title-large {
  font-size: clamp(2.6rem, 5vw, 4rem);
  letter-spacing: 0.04em;
}

p { margin-bottom: 1.1rem; max-width: 46ch; }

.label-small {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: inline-block;
}

.label-small.light { color: var(--color-gold); }

.accent-quote {
  font-style: italic;
  color: var(--color-gold);
  font-size: 1.15rem;
  margin: 1.6rem 0;
}

.accent-quote.center { text-align: center; max-width: none; }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-visible {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .hero-video {
    display: none;
  }
  .section-hero {
    background-image: url('../assets/hero-bg-poster.jpg');
    background-size: cover;
    background-position: center;
  }
}

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 2rem;
  mix-blend-mode: difference;
}

.logo-mark {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  color: var(--color-text-light);
}
.logo-mark span { color: var(--color-text-light); }

.burger {
  width: 28px;
  height: 20px;
  position: relative;
  z-index: 200;
}
.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-text-light);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), top 0.35s var(--ease);
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 9px; }
.burger span:nth-child(3) { top: 18px; }

.burger.is-open span:nth-child(1) { top: 9px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { top: 9px; transform: rotate(-45deg); }

/* ===== Nav overlay ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-dark);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.nav-overlay ul {
  text-align: center;
}
.nav-overlay li { margin: 1.1rem 0; }
.nav-overlay a {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-light-muted);
  transition: color 0.3s var(--ease);
}
.nav-overlay a:hover { color: var(--color-text-light); }

/* ===== Section base layout ===== */
.section { position: relative; }

.section-grid {
  max-width: var(--section-max);
  margin: 0 auto;
  padding: 7rem 2rem;
  display: grid;
  grid-template-columns: var(--label-col) 1fr;
  gap: var(--gap-col);
  border-bottom: 1px solid var(--color-border);
}

.section-label hr {
  border: none;
  border-top: 1px solid var(--color-border);
  width: 40px;
  margin-top: 0.9rem;
}

/* ===== Hero ===== */
.section-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-hero-bg);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: 1.4rem;
  color: var(--color-text-muted);
  animation: bob 2.4s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ===== Pillars (Joaillerie section) ===== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin: 2rem 0 2.5rem;
}
.pillar-num {
  font-family: var(--font-sans);
  color: var(--color-gold);
  font-size: 1rem;
}
.pillar p { max-width: none; }

/* ===== Button ===== */
.btn-outline {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.9rem 1.8rem;
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.35s var(--ease), color 0.35s var(--ease);
}
.btn-outline:hover { background: var(--color-accent); color: var(--color-text-light); }

/* ===== Contact section ===== */
.section-contact {
  background: var(--color-dark);
  color: var(--color-text-light);
}

.contact-inner {
  max-width: var(--section-max);
  margin: 0 auto;
  padding: 7rem 2rem 4rem;
  display: flex;
  align-items: flex-start;
  gap: 3.5rem;
}

.contact-main {
  flex: 1 1 420px;
}

.contact-main hr {
  border: none;
  border-top: 1px solid var(--color-border-light);
  width: 40px;
  margin: 0.9rem 0 1.8rem;
}

.section-contact h2 {
  font-weight: 400;
}

.contact-intro {
  color: var(--color-text-light-muted);
}

.contact-divider {
  align-self: stretch;
  width: 1px;
  background: var(--color-border-light);
  flex: 0 0 1px;
}

.contact-meta {
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.contact-meta p { color: var(--color-text-light-muted); margin-top: 0.6rem; }
.contact-meta a { color: var(--color-text-light); border-bottom: 1px solid var(--color-border-light); }

.site-footer {
  max-width: var(--section-max);
  margin: 0 auto;
  padding: 2.5rem 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--color-text-light-muted);
  border-top: 1px solid var(--color-border-light);
}
.footer-mark {
  height: 3rem;
  width: auto;
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  :root { --label-col: 1fr; --gap-col: 1.2rem; }

  .site-header {
    padding: 1.1rem 1.5rem;
  }

  .section-grid {
    grid-template-columns: 1fr;
    padding: 4.5rem 1.5rem;
  }

  .contact-inner {
    flex-direction: column;
    gap: 2.2rem;
    padding: 4.5rem 1.5rem;
  }

  .contact-main {
    flex-basis: auto;
  }

  .contact-divider {
    display: none;
  }

  .site-footer {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
    padding: 2rem 1.5rem 2.5rem;
  }

  .pillars { grid-template-columns: 1fr; gap: 1.8rem; }

  .contact-meta {
    gap: 1.6rem;
  }

  .btn-outline {
    display: block;
    text-align: center;
  }

  p { max-width: none; }
}
