/* ==========================================================
   MAISON EXOTIC — global
   Warm charcoal world. One accent. Serif speaks, sans works.
   ========================================================== */

:root {
  /* palette — deep warm black, bronze-gold held in reserve */
  --bg: #0c0a08;
  --bg-lift: #14100c;
  --bg-deep: #070604;
  --ink: #eae2d4;
  --ink-dim: #9c8f7d;
  --ink-faint: #6b5f4f;
  --accent: #b08a3e;
  --accent-bright: #d1b06a;
  --line: rgba(234, 226, 212, 0.08);
  --line-strong: rgba(234, 226, 212, 0.2);

  /* type */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Archivo", -apple-system, "Helvetica Neue", sans-serif;

  /* rhythm */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 2rem;
  --space-4: 4rem;
  --space-5: 8rem;
  --space-6: 12rem;
  --gutter: clamp(1.25rem, 4vw, 4rem);

  /* z scale */
  --z-base: 0;
  --z-raise: 10;
  --z-nav: 100;
  --z-overlay: 200;

  /* the two easing curves of the house — nothing else */
  --ease-out-c: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout-c: cubic-bezier(0.76, 0, 0.24, 1);
}

/* quiet gold focus — every interactive element, keyboard only */
:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.display,
h1, h2, h3 {
  text-wrap: balance;
}

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

html {
  scroll-behavior: auto; /* Lenis owns scrolling */
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

img,
video,
canvas {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* thin warm scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #3a3227;
  border-radius: 5px;
}

/* film grain over everything, beneath nothing interactive */
.grain {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 9s steps(6) infinite;
}

@keyframes grain-shift {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- typography ---------- */

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
}

.label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
}

.label .diamond {
  color: var(--accent);
  font-size: 0.62em;
  transform: translateY(-0.08em);
}

.body-copy {
  color: var(--ink-dim);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.8;
  max-width: 58ch;
}

.body-copy strong,
.body-copy em {
  color: var(--ink);
  font-style: normal;
  font-weight: 400;
}

/* ---------- navigation ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  padding: 1.4rem var(--gutter);
  transition: background-color 0.5s ease, backdrop-filter 0.5s ease, padding 0.5s ease;
}

.nav.is-scrolled {
  background: rgba(7, 6, 4, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.nav__mark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
  min-height: 44px;
}

.nav__mark .m {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.34em;
}

.nav__mark .e {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.18rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.nav__links {
  display: flex;
  gap: 2.75rem;
  list-style: none;
  margin-left: auto; /* mark left, everything else rides right */
}

.nav__links a {
  position: relative;
  display: inline-block;
  padding: 0.7rem 0; /* 44px total target */
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.25s ease;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.45rem;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s var(--ease-out-c);
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--ink);
}

.nav__links a:hover::after,
.nav__links a.is-active::after {
  transform: scaleX(1);
}

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  align-items: flex-end;
  z-index: calc(var(--z-overlay) + 1);
}

.nav__burger span {
  display: block;
  height: 1px;
  background: var(--ink);
  transition: transform 0.4s var(--ease-out-c), opacity 0.3s, width 0.4s;
}

.nav__burger span:nth-child(1) { width: 28px; }
.nav__burger span:nth-child(2) { width: 20px; }

.nav__burger.is-open span:nth-child(1) {
  transform: translateY(4px) rotate(-45deg);
  width: 26px;
}
.nav__burger.is-open span:nth-child(2) {
  transform: translateY(-4px) rotate(45deg);
  width: 26px;
}

/* full-screen menu (mobile) */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--bg-deep);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.menu-overlay a {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 9vw, 4.5rem);
  line-height: 1.35;
  padding: 0.35rem 0;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 1.25rem;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.7s var(--ease-out-c), opacity 0.7s ease, color 0.3s;
}

.menu-overlay.is-open a {
  transform: translateY(0);
  opacity: 1;
}

.menu-overlay a:nth-child(2) { transition-delay: 0.06s; }
.menu-overlay a:nth-child(3) { transition-delay: 0.12s; }
.menu-overlay a:nth-child(4) { transition-delay: 0.18s; }
.menu-overlay a:nth-child(5) { transition-delay: 0.24s; }

.menu-overlay a:hover { color: var(--accent); }

.menu-overlay a .idx {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--accent);
}

/* ---------- shared section chrome ---------- */

.section {
  position: relative;
  padding: var(--space-6) var(--gutter);
}

.section__inner {
  max-width: 1520px;
  margin: 0 auto;
  position: relative;
  z-index: var(--z-raise);
}

.video-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: var(--z-base);
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, transparent 22%, transparent 72%, var(--bg) 100%),
    radial-gradient(ellipse at center, transparent 30%, rgba(13, 11, 8, 0.55) 100%);
}

/* ---------- links & buttons ---------- */

.cta-line {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 44px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  position: relative;
}

.cta-line .arrow {
  transition: transform 0.35s var(--ease-out-c);
}

.cta-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 6px;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s var(--ease-out-c);
}

.cta-line:hover { color: var(--accent-bright); }
.cta-line:hover .arrow { transform: translateX(8px); }
.cta-line:hover::after { transform: scaleX(1); background: var(--accent-bright); }

.btn-solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 3.25rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease;
  cursor: pointer;
}

.btn-solid::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom center;
  transition: transform 0.45s var(--ease-out-c);
  z-index: -1;
}

.btn-solid:hover {
  color: var(--bg-deep);
}

.btn-solid:hover::before {
  transform: scaleY(1);
}

/* ---------- reveal primitives (GSAP sets/animates these) ---------- */

.split-line-mask {
  display: block;
  overflow: hidden;
}

.split-line-mask > span {
  display: block;
  will-change: transform;
}

.w {
  display: inline-block;
  will-change: transform, opacity;
}

.ch {
  display: inline-block;
  will-change: transform, opacity;
}

/* ---------- forms ---------- */

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  max-width: 860px;
}

.form .field--full {
  grid-column: 1 / -1;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.field label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.field label .req {
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  padding: 0.65rem 0;
  min-height: 44px;
  border-radius: 0;
  transition: border-color 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
}

.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9953b' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
}

.field select option {
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 6px;
}

.field .error-msg {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #d97b5f;
  min-height: 1.1em;
  opacity: 0;
  transition: opacity 0.3s;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-bottom-color: #d97b5f;
}

.field.has-error .error-msg {
  opacity: 1;
}

.form__done {
  grid-column: 1 / -1;
  display: none;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--accent);
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: var(--space-4) var(--gutter) var(--space-3);
  background: var(--bg-deep);
  position: relative;
  z-index: var(--z-raise);
}

.footer__inner {
  max-width: 1520px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2.5rem;
}

.footer__mark .m {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.34em;
  display: block;
}

.footer__mark .e {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1.1;
}

.footer__nav {
  display: flex;
  gap: 2.25rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer__nav a {
  display: inline-block;
  padding: 0.65rem 0;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.25s;
}

.footer__nav a:hover { color: var(--accent); }

.footer__legal {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2rem;
  padding-top: var(--space-3);
  margin-top: var(--space-2);
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

.footer__legal a {
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.footer__legal a:hover { color: var(--accent); }

/* ---------- page hero (sub-pages) ---------- */

.page-hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  padding: var(--space-5) var(--gutter) var(--space-4);
  overflow: hidden;
}

.page-hero .video-bg::after {
  background:
    linear-gradient(180deg, rgba(7, 6, 4, 0.55) 0%, rgba(7, 6, 4, 0.12) 38%, var(--bg) 100%);
}

/* text over film reads at AA — labels lift a step */
.page-hero .label {
  color: var(--ink-dim);
}

.page-hero__inner {
  position: relative;
  z-index: var(--z-raise);
  max-width: 1520px;
  margin: 0 auto;
  width: 100%;
}

.page-hero h1 {
  font-size: clamp(3.2rem, 8.5vw, 8rem);
  margin-top: var(--space-2);
}

/* ---------- utilities ---------- */

.u-dim { color: var(--ink-dim); }
.u-serif-i {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 1000;
  background: var(--accent);
  color: var(--bg-deep);
  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: top 0.3s;
}

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

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .section { padding: var(--space-5) var(--gutter); }

  .form { grid-template-columns: 1fr; gap: 2rem; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }

  .grain { animation: none; }
}


/* ---------- house mark ---------- */

.mark {
  display: inline-block;
  flex: 0 0 auto;
}

.nav__mark .mark {
  width: 21px;
  height: 21px;
  color: var(--accent);
  margin-right: 0.35rem;
}

.footer__mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.footer__mark .mark {
  width: 34px;
  height: 34px;
  color: var(--accent);
}
