/* ============================================================
   AURÉA — Hospitality Group
   Aesthetic: dark, cinematic luxury · warm noir · molten gold
   ============================================================ */

:root {
  --noir:        #0C0A07;
  --noir-2:      #110D08;
  --noir-3:      #16110A;
  --bone:        #ECE3D2;
  --bone-dim:    #C9BFAC;
  --muted:       #8A7E6B;
  --brass:       #C9A86A;
  --brass-deep:  #A8824C;
  --brass-light: #E7CE97;
  --line:        rgba(236, 227, 210, 0.13);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Jost", system-ui, sans-serif;

  --pad: clamp(1.25rem, 5vw, 6rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--noir);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  cursor: none;
}
@media (hover: none), (pointer: coarse) { body { cursor: auto; } }

::selection { background: var(--brass); color: var(--noir); }
a { color: inherit; text-decoration: none; }
sup { font-size: 0.5em; vertical-align: super; }

/* ---------- WebGL canvas ---------- */
#gl {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
  pointer-events: none;
}
#gl.is-ready { opacity: 1; }

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  z-index: 60; pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(2) infinite;
  mix-blend-mode: screen;
}
@keyframes grain { 0%,100% { transform: translate(0,0);} 50% { transform: translate(-3%,2%);} }

/* ---------- Custom cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 80; pointer-events: none; mix-blend-mode: difference; }
.cursor__dot, .cursor__ring { position: absolute; top: 0; left: 0; border-radius: 50%; transform: translate(-50%,-50%); }
.cursor__dot { width: 6px; height: 6px; background: #fff; }
.cursor__ring {
  width: 38px; height: 38px; border: 1px solid rgba(255,255,255,0.7);
  transition: width .4s var(--ease), height .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; background: rgba(255,255,255,0.14); border-color: transparent; }
.cursor.is-hover .cursor__dot { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- Preloader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--noir); display: grid; place-items: center; }
.loader__inner { text-align: center; width: min(60vw, 360px); }
.loader__mark {
  font-family: var(--serif); font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: 0.1em; font-weight: 400; color: var(--bone);
}
.loader__mark span { color: var(--brass); font-style: italic; }
.loader__bar { height: 1px; width: 100%; background: var(--line); margin: 1.5rem 0 0.75rem; overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 0%; background: var(--brass); }
.loader__count { font-size: 0.8rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); }
.loader__count em { font-style: normal; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(1rem, 2vw, 1.75rem) var(--pad);
  color: var(--bone);
}
.nav__brand { font-family: var(--serif); font-size: 1.6rem; letter-spacing: 0.04em; }
.nav__links { display: flex; gap: clamp(1rem, 2.5vw, 2.75rem); }
.nav__links a { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; position: relative; padding-bottom: 2px; color: var(--bone-dim); }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--brass); transition: width .5s var(--ease); }
.nav__links a:hover { color: var(--bone); }
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  border: 1px solid rgba(236,227,210,0.4); border-radius: 100px; padding: 0.6rem 1.2rem;
  overflow: hidden; position: relative;
}
.nav__cta span { position: relative; z-index: 1; transition: color .5s var(--ease); }
.nav__cta::before { content: ""; position: absolute; inset: 0; background: var(--brass); transform: translateY(101%); transition: transform .5s var(--ease); }
.nav__cta:hover::before { transform: translateY(0); }
.nav__cta:hover span { color: var(--noir); }
@media (max-width: 820px) { .nav__links { display: none; } }

/* ---------- Section shared ---------- */
section { position: relative; z-index: 2; }
.section-index { font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--muted); margin-bottom: clamp(2rem, 5vw, 4rem); }
.section-index span { color: var(--brass); margin-right: 0.5rem; }
.reveal-fade { opacity: 0; transform: translateY(24px); }

/* ---------- HERO (transparent — shows WebGL sculpture) ---------- */
.hero {
  min-height: 100svh;
  padding: clamp(5rem, 10vw, 7rem) var(--pad) clamp(2rem, 5vw, 4rem);
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  background: transparent;
}
.hero__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(12,10,7,0.35) 0%, rgba(12,10,7,0) 30%, rgba(12,10,7,0.45) 58%, rgba(12,10,7,0.96) 88%);
}
.hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.hero__eyebrow {
  display: flex; align-items: center; gap: 0.7rem;
  font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--bone-dim);
}
.hero__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 14px 2px var(--brass); }
.hero__corner { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); text-align: right; line-height: 1.7; }
@media (max-width: 640px) { .hero__corner { display: none; } }

.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.2rem, 12.5vw, 12.5rem); line-height: 0.9; letter-spacing: -0.01em;
  text-shadow: 0 4px 60px rgba(12, 10, 7, 0.7);
}
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }
.hero__title .line--accent > span { font-style: italic; color: var(--brass); }

.hero__meta { margin-top: clamp(1.5rem, 4vw, 2.5rem); display: flex; flex-wrap: wrap; gap: 2rem; align-items: flex-end; justify-content: space-between; }
.hero__lede { max-width: 44ch; font-size: clamp(0.98rem, 1.4vw, 1.18rem); color: var(--bone-dim); line-height: 1.65; }
.hero__scroll { display: flex; flex-direction: column; gap: 0.8rem; align-items: flex-start; font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.hero__scrollline { width: 1px; height: 56px; background: var(--line); position: relative; overflow: hidden; }
.hero__scrollline::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%; background: var(--brass); animation: scrolldn 2.2s var(--ease) infinite; }
@keyframes scrolldn { 0% { transform: translateY(-100%);} 100% { transform: translateY(250%);} }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: clamp(1rem, 2vw, 1.6rem) 0; background: var(--noir);
}
.marquee__track { display: flex; align-items: center; gap: 2.5rem; white-space: nowrap; width: max-content; }
.marquee__track span { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 3rem); font-style: italic; color: var(--bone); }
.marquee__track i { color: var(--brass); font-style: normal; font-size: 1.2rem; }

/* ---------- ETHOS ---------- */
.ethos { padding: clamp(6rem, 16vw, 14rem) var(--pad); background: var(--noir); }
.ethos__statement { font-family: var(--serif); font-weight: 300; font-size: clamp(2rem, 6.2vw, 6rem); line-height: 1.06; letter-spacing: -0.01em; max-width: 22ch; }
.ethos__statement .w { display: inline-block; opacity: 0.18; transition: opacity .5s var(--ease); }
.ethos__statement .w--accent { font-style: italic; color: var(--brass); }
.ethos__foot { margin-top: clamp(3rem, 7vw, 6rem); margin-left: auto; max-width: 48ch; }
.ethos__foot p { font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--bone-dim); line-height: 1.7; }

/* ---------- PILLARS (pinned horizontal) ---------- */
.pillars { background: var(--noir-2); position: relative; z-index: 3; }
.pillars__sticky { height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.pillars__head { padding: clamp(2rem,5vw,4rem) var(--pad) 0; }
.pillars__head .section-index { margin-bottom: 0; }
.pillars__track { display: flex; align-items: center; height: 100%; width: max-content; padding: 0 var(--pad); gap: clamp(3rem, 8vw, 9rem); }
.pillar { width: clamp(280px, 60vw, 540px); flex-shrink: 0; position: relative; }
.pillar__no { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--brass-light); margin-bottom: 2rem; }
.pillar__title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.8rem, 7vw, 6rem); line-height: 0.95; letter-spacing: -0.01em; margin-bottom: 2rem; }
.pillar__body { font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.7; color: var(--bone-dim); max-width: 40ch; }
.pillar__line { margin-top: 2.5rem; height: 1px; width: 100%; background: rgba(236,227,210,0.18); transform-origin: left; }

/* ---------- PHILOSOPHY ---------- */
.philosophy { padding: clamp(7rem, 18vw, 16rem) var(--pad); text-align: center; background: var(--noir); }
.philosophy .section-index { text-align: center; }
.philosophy__quote { font-family: var(--serif); font-weight: 300; font-size: clamp(2.8rem, 11vw, 11rem); line-height: 0.96; letter-spacing: -0.015em; }
.philosophy__quote .line { display: block; overflow: hidden; }
.philosophy__quote .line > span { display: block; }
.philosophy__quote em { font-style: italic; color: var(--brass); }
.philosophy__cols { margin: clamp(3rem,7vw,6rem) auto 0; max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); text-align: left; }
.philosophy__cols p { font-size: clamp(1rem,1.3vw,1.15rem); color: var(--bone-dim); line-height: 1.7; }
@media (max-width: 680px) { .philosophy__cols { grid-template-columns: 1fr; } }

/* ---------- STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--noir); }
.stat { padding: clamp(3rem, 7vw, 6rem) var(--pad); border-right: 1px solid var(--line); transition: background .5s var(--ease); }
.stat:last-child { border-right: none; }
.stat:hover { background: var(--noir-3); }
.stat__num { font-family: var(--serif); font-size: clamp(4rem, 10vw, 9rem); font-weight: 400; line-height: 1; color: var(--brass); }
.stat__label { margin-top: 1rem; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); line-height: 1.7; }
@media (max-width: 680px) { .stats { grid-template-columns: 1fr; } .stat { border-right: none; border-bottom: 1px solid var(--line); } .stat:last-child { border-bottom: none; } }

/* ---------- PARTNERS ---------- */
.partners { padding: clamp(6rem, 16vw, 14rem) var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; background: var(--noir); }
.partners__title { font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 6vw, 5.5rem); line-height: 0.98; letter-spacing: -0.01em; }
.partners__intro { margin-top: 2rem; max-width: 42ch; font-size: clamp(1rem,1.3vw,1.15rem); color: var(--bone-dim); line-height: 1.7; }
.partners__list { list-style: none; }
.partners__list li { display: flex; gap: clamp(1rem, 3vw, 2.5rem); padding: clamp(1.5rem, 3vw, 2.4rem) 0; border-top: 1px solid var(--line); transition: padding-left .5s var(--ease); }
.partners__list li:last-child { border-bottom: 1px solid var(--line); }
.partners__list li:hover { padding-left: clamp(0.5rem,2vw,1.5rem); }
.partners__k { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--brass); flex-shrink: 0; }
.partners__t { font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 300; line-height: 1.25; color: var(--bone); }
@media (max-width: 860px) { .partners { grid-template-columns: 1fr; } }

/* ---------- CONTACT ---------- */
.contact { min-height: 90svh; padding: clamp(6rem, 14vw, 12rem) var(--pad); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; background: var(--noir); }
.contact .section-index { text-align: center; }
.contact__title { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 12vw, 12rem); line-height: 0.92; letter-spacing: -0.015em; }
.contact__title .line { display: block; overflow: hidden; }
.contact__title .line > span { display: block; }
.contact__title .line--accent > span { font-style: italic; color: var(--brass); }
.contact__mail { display: inline-block; margin-top: clamp(2.5rem, 6vw, 4rem); font-size: clamp(1.1rem, 2.5vw, 2rem); font-weight: 300; letter-spacing: 0.02em; border-bottom: 1px solid var(--brass); padding-bottom: 0.4rem; }
.contact__note { margin-top: 1.5rem; font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.magnetic { will-change: transform; }
.magnetic__inner { display: inline-block; will-change: transform; }

/* ---------- FOOTER ---------- */
.footer { background: var(--noir-2); padding: clamp(3rem, 8vw, 6rem) var(--pad) clamp(2rem,4vw,3rem); position: relative; z-index: 3; }
.footer__brand { font-family: var(--serif); font-size: clamp(2rem, 8vw, 6rem); font-weight: 300; letter-spacing: 0.02em; border-bottom: 1px solid rgba(236,227,210,0.16); padding-bottom: clamp(1.5rem,4vw,3rem); }
.footer__say { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 3vw, 2rem); color: var(--brass-light); margin: clamp(2rem,5vw,3.5rem) 0; }
.footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

/* ---------- Mobile / tablet refinements ---------- */
@media (max-width: 760px) {
  :root { --pad: 1.4rem; }

  .ethos,
  .philosophy,
  .partners,
  .contact { padding-top: clamp(3.5rem, 14vw, 5rem); padding-bottom: clamp(3.5rem, 14vw, 5rem); }

  .section-index { margin-bottom: 2rem; }

  .hero__lede { font-size: 1rem; }

  .hero__veil {
    background: linear-gradient(to bottom,
      rgba(12,10,7,0.62) 0%, rgba(12,10,7,0.1) 22%,
      rgba(12,10,7,0.5) 50%, rgba(12,10,7,0.97) 78%);
  }

  /* Pillars: stack vertically instead of pinned horizontal scroll */
  .pillars__sticky { height: auto; overflow: visible; display: block; }
  .pillars__head { padding: clamp(3.5rem, 14vw, 5rem) var(--pad) 0; }
  .pillars__track {
    flex-direction: column;
    width: auto; height: auto;
    align-items: stretch;
    gap: clamp(2.5rem, 8vw, 3.5rem);
    padding: clamp(2rem, 8vw, 3rem) var(--pad) clamp(3.5rem, 14vw, 5rem);
  }
  .pillar { width: 100%; }
  .pillar__no { margin-bottom: 1rem; }
  .pillar__title { margin-bottom: 1.25rem; }
  .pillar__line { margin-top: 1.75rem; }

  .ethos__foot { margin-top: 2.5rem; }
  .philosophy__cols { margin-top: 2.5rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal-fade { opacity: 1 !important; transform: none !important; }
  .ethos__statement .w { opacity: 1 !important; }
  body { cursor: auto; }
  .cursor { display: none; }
}
