/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { font-family: var(--font); background: var(--paper); color: var(--ink); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; user-select: none; -webkit-user-drag: none; }
:root {
  --accent: #c8a875;
  --accent-soft: #e9d9b8;
  --bg-warm: #b08a52;
  --ink: #1a1612;
  --paper: #f7f2ea;
  --font: serif;
  --pad-x: clamp(40px, 5vw, 96px);
}

.app { position: fixed; inset: 0; overflow: hidden; }

.stack { position: absolute; top: 0; left: 0; right: 0; will-change: transform; }
.panel { position: relative; height: 100vh; width: 100%; overflow: hidden; }
.panel--footer { height: 100vh; min-height: 720px; background: #9b7648 !important; color: var(--paper); }

/* ===== Reveal Animations ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms cubic-bezier(.2,.7,.2,1), transform 1100ms cubic-bezier(.2,.7,.2,1); }
.panel.is-in .reveal { opacity: 1; transform: none; }
.panel.is-in .r1 { transition-delay: 240ms; }
.panel.is-in .r2 { transition-delay: 380ms; }
.panel.is-in .r3 { transition-delay: 520ms; }
.panel.is-in .r4 { transition-delay: 660ms; }
.panel.is-in .r5 { transition-delay: 800ms; }
.panel.is-in .r6 { transition-delay: 940ms; }

/* Common */
.kicker { font-family: "Cormorant Garamond", "Noto Serif SC", serif; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .7; display: inline-block; }
.kicker--light { color: var(--accent-soft); opacity: .9; }

/* ===== Nav ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: transform 500ms ease, color 400ms ease; }
.nav--hide { transform: translateY(-110%); }
.nav--show { transform: translateY(0); }
.nav--on-dark   { color: #f4ece0; }
.nav--on-light  { color: var(--ink); }
.nav--on-solid  { color: var(--ink); }
.nav--on-mega   { color: var(--ink); }

/* Base background layer — under the inner row */
.nav__bg { position: absolute; inset: 0; pointer-events: none; transition: background .4s ease, backdrop-filter .4s ease; }
.nav--transparent .nav__bg { background: linear-gradient(to bottom, rgba(0,0,0,.25), rgba(0,0,0,0)); }
.nav--on-light.nav--transparent .nav__bg { background: linear-gradient(to bottom, rgba(255,255,255,.6), rgba(255,255,255,0)); }
.nav--solid .nav__bg { background: var(--paper); border-bottom: 1px solid rgba(0,0,0,.06); }
.nav--minimal .nav__bg { background: transparent; }
/* Mega open — overrides everything */
.nav--mega-open .nav__bg { background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }

.nav__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 22px var(--pad-x); position: relative; z-index: 2; }
.nav__logo { display: inline-flex; align-items: baseline; gap: 10px; justify-self: start; }
.nav__logo-mark { color: var(--accent); font-size: 18px; transform: translateY(2px); }
.nav__logo-text { font-family: "Cormorant Garamond", "Noto Serif SC", serif; font-size: 22px; letter-spacing: .14em; font-weight: 500; }
.nav__logo-sub { font-size: 11px; letter-spacing: .3em; opacity: .55; }

.nav__links { display: flex; gap: 36px; justify-self: center; align-items: center; }
.nav__link { position: relative; width: 96px; text-align: center; }
.nav__link > a { display: inline-block; font-size: 18px; letter-spacing: .14em; position: relative; padding: 6px 0; }
.nav__link > a::after { content:""; position: absolute; left: 50%; right: 50%; bottom: 0; height: 1px; background: currentColor; transition: left .3s, right .3s; opacity: .8; }
.nav__link.is-hover > a::after,
.nav__link > a:hover::after { left: 0; right: 0; }

/* Mega panel - full width strip below the nav row */
.nav__mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: var(--ink);
  border-top: 1px solid rgba(0,0,0,.04);
  max-height: 0; overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1), opacity .25s;
  opacity: 0;
  pointer-events: none;
}
.nav__mega.is-open { max-height: 360px; opacity: 1; pointer-events: auto; }
.nav__mega-inner { padding: 24px var(--pad-x) 36px; }
.nav__mega-cols { display: flex; gap: 36px; justify-content: center; align-items: flex-start; }
.nav__mega-col { display: flex; flex-direction: column; width: 96px; flex: 0 0 96px; }
.nav__mega-col a {
  display: block;
  padding: 7px 0;
  font-family: "Noto Serif SC", serif;
  font-size: 15px;
  letter-spacing: .04em;
  color: rgba(26,22,18,.78);
  text-align: center;
  white-space: nowrap;
  transition: color .2s, transform .2s;
  opacity: 0;
  transform: translateY(6px);
}
.nav__mega.is-open .nav__mega-col a { opacity: 1; transform: none; transition: color .2s, transform .35s cubic-bezier(.2,.7,.2,1), opacity .35s; }
.nav__mega.is-open .nav__mega-col a:nth-child(1) { transition-delay: .04s; }
.nav__mega.is-open .nav__mega-col a:nth-child(2) { transition-delay: .09s; }
.nav__mega.is-open .nav__mega-col a:nth-child(3) { transition-delay: .14s; }
.nav__mega.is-open .nav__mega-col a:nth-child(4) { transition-delay: .19s; }
.nav__mega-col a:hover { color: var(--accent); }

.nav__right { display: inline-flex; gap: 18px; align-items: center; justify-self: end; }
.nav__right button { display: inline-flex; align-items: center; gap: 6px; opacity: .85; transition: opacity .25s; }
.nav__right button:hover { opacity: 1; }
.nav__locale span { font-size: 12px; letter-spacing: .12em; }

/* ===== Indicator ===== */
.ind { position: fixed; z-index: 95; }
.ind--right { right: 32px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; }
.ind__item { display: flex; align-items: center; gap: 10px; padding: 4px 0; color: var(--ink); position: relative; }
.ind__label { font-family: "Cormorant Garamond", "Noto Serif SC", serif; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; opacity: 0; transform: translateX(8px); transition: opacity .25s, transform .25s; color: var(--ink); }
.ind:hover .ind__label, .ind__item.is-active .ind__label { opacity: .8; transform: translateX(0); }
.ind__dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(0,0,0,.25); transition: background .3s, transform .3s; }
.ind__item.is-active .ind__dot { background: var(--accent); transform: scale(1.6); }
.ind__line { width: 24px; height: 1px; background: rgba(0,0,0,.25); transition: width .3s, background .3s; }
.ind__item.is-active .ind__line { background: var(--accent); width: 40px; }

.ind--counter { left: 40px; bottom: 32px; font-family: "Cormorant Garamond", "Noto Serif SC", serif; mix-blend-mode: difference; color: #fff; display: flex; align-items: baseline; gap: 6px; }
.ind__current { font-size: 36px; line-height: 1; }
.ind__sep { font-size: 24px; opacity: .5; }
.ind__total { font-size: 16px; opacity: .7; letter-spacing: .1em; }

/* Right-side dots/lines: soft strategy that works on light + dark panels */
.ind--right .ind__dot { background: rgba(0,0,0,.32); transition: background .3s, transform .3s; }
.ind--right .ind__item.is-active .ind__dot { background: var(--accent); }
.ind--right .ind__line { background: rgba(0,0,0,.32); }
.ind--right .ind__item.is-active .ind__line { background: var(--accent); }
.ind--right .ind__label { color: inherit; }

/* On dark panels (hero, footer) flip dot color and use pure white for active */
.app:has(.panel--hero.is-in) .ind--right .ind__dot,
.app:has(.panel--footer.is-in) .ind--right .ind__dot { background: rgba(255,255,255,.4); }
.app:has(.panel--hero.is-in) .ind--right .ind__item.is-active .ind__dot,
.app:has(.panel--footer.is-in) .ind--right .ind__item.is-active .ind__dot { background: #ffffff; }
.app:has(.panel--hero.is-in) .ind--right .ind__line,
.app:has(.panel--footer.is-in) .ind--right .ind__line { background: rgba(255,255,255,.4); }
.app:has(.panel--hero.is-in) .ind--right .ind__item.is-active .ind__line,
.app:has(.panel--footer.is-in) .ind--right .ind__item.is-active .ind__line { background: #ffffff; }
.app:has(.panel--hero.is-in) .ind--right .ind__label,
.app:has(.panel--footer.is-in) .ind--right .ind__label { color: rgba(255,255,255,.9); }

/* ===== Hero base (carousel styling lives in dreamaviate.css) ===== */
.panel--hero { background: #0a0a0a; color: #f4ece0; overflow: hidden; }
.hero__vignette { position: absolute; inset: 0; }

/* ===== Footer ===== */
.panel--footer { padding: 150px var(--pad-x) 120px; }
.footer__inner { display: flex; flex-direction: column; height: 100%; max-width: 1440px; margin: 0 auto; width: 100%; }

.footer__row--contact { display: grid; grid-template-columns: minmax(340px, 1fr) 2.4fr; gap: 80px; padding: 24px 0 28px; border-top: 1px solid rgba(247,242,234,.32); border-bottom: 1px solid rgba(247,242,234,.32); }
.footer__row-label { font-family: "Noto Serif SC", serif; font-size: 16px; letter-spacing: .08em; opacity: .85; margin-bottom: 18px; }
.footer__contact { display: flex; flex-direction: column; }
.footer__email { display: inline-flex; align-items: center; gap: 14px; font-family: "Cormorant Garamond", "Noto Serif SC", serif; font-size: 16px; letter-spacing: .04em; transition: opacity .3s; align-self: flex-start; }
.footer__email:hover { opacity: .75; }
.footer__mail-icon { width: 24px; height: 24px; object-fit: contain; }

.footer__follow { display: flex; flex-direction: column; }
.footer__social { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer__social a { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; opacity: .9; transition: opacity .3s, transform .3s; }
.footer__social a:hover { opacity: 1; transform: translateY(-2px); }
.footer__social img { max-width: 30px; max-height: 30px; object-fit: contain; }

.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 56px 0 0; }
.footer__end { margin-top: 120px; }
.footer__wordmark { text-align: right; font-family: "Noto Serif SC", serif; font-size: 44px; letter-spacing: .22em; font-weight: 300; margin: 0 0 24px; }

.footer__bottom { display: flex; gap: 24px; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid rgba(247,242,234,.32); font-family: "Cormorant Garamond", "Noto Serif SC", serif; font-size: 16px; letter-spacing: .04em; opacity: .82; }
.footer__col { display: flex; flex-direction: column; gap: 14px; }
.footer__col-title { font-family: "Noto Serif SC", serif; font-size: 22px; margin-bottom: 8px; letter-spacing: .08em; font-weight: 500; }
.footer__col a { font-family: "Noto Serif SC", serif; font-size: 16px; letter-spacing: .04em; opacity: .82; transition: opacity .25s; }
.footer__col a:hover { opacity: 1; }

.footer__bottom span:first-child { text-align: left; }
.footer__bottom span:nth-child(2) { text-align: center; flex: 1; }
.footer__bottom span:last-child { text-align: right; }

/* Smaller viewport guards (still PC) */
@media (max-width: 1100px) {
  .nav__links { gap: 22px; }
}
