:root {
  --ivory: #f7f3ea;
  --cream: #efe7d8;
  --ink: #15120f;
  --charcoal: #1c1915;
  --muted: #6d6458;
  --forest: #2f3d32;
  --forest-deep: #243028;
  --gold: #c4a35a;
  --gold-soft: #d8bf86;
  --line: rgba(21, 18, 15, 0.12);
  --glass: rgba(28, 25, 21, 0.72);
  --radius: 2px;
  --header-h: 4.5rem;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Jost", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
}

h2 {
  font-size: clamp(2.1rem, 4.5vw, 3.6rem);
}

h3 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

p {
  margin: 0;
}

em {
  font-style: italic;
  color: var(--gold);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--ivory);
  padding: 0.6rem 1rem;
  z-index: 10000;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.section-pad {
  padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.25rem, 4vw, 3rem);
}

.wrap {
  width: min(100%, var(--max));
  margin-inline: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform 180ms var(--ease), background 180ms var(--ease),
    color 180ms var(--ease), border-color 180ms var(--ease);
}

.button:hover {
  transform: translateY(-1px);
}

.button-gold {
  background: var(--gold);
  color: var(--ink);
}

.button-gold:hover {
  background: var(--gold-soft);
}

.button-ghost {
  border-color: rgba(247, 243, 234, 0.45);
  color: var(--ivory);
  background: transparent;
}

.button-dark {
  background: var(--forest);
  color: var(--ivory);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 3vw, 2rem);
  color: var(--ivory);
  background: transparent;
  transition: background 280ms var(--ease), backdrop-filter 280ms var(--ease),
    color 280ms var(--ease), box-shadow 280ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(28, 25, 21, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.site-brand img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  object-fit: cover;
}

.site-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-brand small {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.72;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 1px;
  margin: 0.35rem auto;
  background: currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1.5vw, 1.35rem);
}

.site-nav a {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.88;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  opacity: 1;
  color: var(--gold-soft);
}

.header-cta {
  flex-shrink: 0;
}

.has-dropdown {
  position: relative;
}

.has-dropdown > button {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0.88;
  padding: 0;
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 0;
  min-width: 12rem;
  padding: 0.7rem;
  background: rgba(28, 25, 21, 0.96);
  border: 1px solid rgba(247, 243, 234, 0.08);
}

.has-dropdown:focus-within .dropdown,
.has-dropdown:hover .dropdown {
  display: grid;
  gap: 0.45rem;
}

.dropdown a {
  padding: 0.35rem 0.4rem;
}

.site-footer {
  background: var(--charcoal);
  color: rgba(247, 243, 234, 0.82);
  padding: 3.5rem clamp(1.25rem, 4vw, 3rem) 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
}

.site-footer h4 {
  margin-bottom: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.site-footer a {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: var(--ivory);
}

.footer-brand p {
  margin-top: 0.85rem;
  max-width: 22rem;
  color: rgba(247, 243, 234, 0.65);
  font-size: 0.95rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(247, 243, 234, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(247, 243, 234, 0.55);
}

/* Visible by default so content never blanks if JS fails.
   Animation only engages after html.js-reveal is set by site.js. */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease);
  will-change: opacity, transform;
}

html.js-reveal .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(36px);
}

html.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}
.reveal-delay-2 {
  transition-delay: 0.24s;
}
.reveal-delay-3 {
  transition-delay: 0.36s;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  html.js-reveal .reveal,
  html.js-reveal .reveal:not(.is-visible) {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto;
  }
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-block;
    order: 2;
  }

  .header-cta {
    order: 1;
  }

  .site-nav {
    display: none;
    position: absolute;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(28, 25, 21, 0.97);
  }

  .site-nav.is-open {
    display: flex;
  }

  .has-dropdown .dropdown {
    position: static;
    display: grid;
    margin-top: 0.5rem;
    background: transparent;
    border: 0;
    padding: 0 0 0 0.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-brand small {
    display: none;
  }
}

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