/* ==========================================================================
   Dunaj Clean — luxury dark stylesheet (written from scratch)
   Palette: near-black #0c0c0e / #16161a, champagne #efe6d5, gold #c8a55a
   Type: Cormorant (variable display serif) + Manrope (variable body sans)
   ========================================================================== */

/* ---------- self-hosted variable fonts ---------- */
@font-face {
  font-family: 'Cormorant';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/cormorant-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/cormorant-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/manrope-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */
:root {
  --nocturne: #0c0c0e;        /* page ground */
  --nocturne-soft: #16161a;   /* gradient partner */
  --panel: #131316;           /* raised surfaces */
  --well: #141416;            /* form inputs */
  --champagne: #efe6d5;       /* primary text — 13.7:1 on nocturne */
  --champagne-dim: #bfb49c;   /* secondary text — 8.1:1 on nocturne */
  --gold: #c8a55a;            /* accent — 8.0:1 on nocturne */
  --gold-bright: #e2c98d;
  --gold-line: rgba(200, 165, 90, 0.28);
  --gold-line-soft: rgba(200, 165, 90, 0.14);
  --serif: 'Cormorant', 'Times New Roman', Georgia, serif;
  --sans: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.25, 0.6, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--champagne);
  background:
    radial-gradient(1100px 640px at 82% -6%, rgba(200, 165, 90, 0.07), transparent 62%),
    radial-gradient(900px 700px at -12% 38%, #16161a, transparent 58%),
    linear-gradient(180deg, #0e0e11 0%, var(--nocturne) 32%);
  background-color: var(--nocturne);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 340;
  line-height: 1.14;
  letter-spacing: 0.008em;
  margin: 0 0 1rem;
}

p { margin: 0 0 1rem; }
ul { margin: 0; }
img, svg { max-width: 100%; }

a { color: var(--champagne); text-decoration-color: var(--gold-line); }

::selection { background: rgba(200, 165, 90, 0.35); color: #fff8ea; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell {
  width: min(1160px, 92vw);
  margin-inline: auto;
}

/* thread links — gold underline grows from left */
.thread {
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  padding-bottom: 3px;
  transition: background-size 0.45s var(--ease), color 0.3s;
}
.thread:hover, .thread:focus-visible { background-size: 100% 1px; color: var(--gold-bright); }

/* small-caps letter-spaced eyebrow */
.whisper {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.4rem;
}

/* thin gold rule */
.filament {
  border: 0;
  height: 1px;
  width: 72px;
  margin: 0 0 2rem;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ---------- buttons: outlined gold, fill on hover ---------- */
.cta {
  display: inline-block;
  padding: 0.95rem 2.4rem;
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 100% / 100% 0%;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-size 0.4s var(--ease), color 0.3s, border-color 0.3s;
}
.cta:hover, .cta:focus-visible {
  background-size: 100% 100%;
  color: #0c0c0e;
  border-color: var(--gold-bright);
}
.cta-slim { padding: 0.62rem 1.5rem; font-size: 0.72rem; }
.cta[disabled] { opacity: 0.55; cursor: wait; }

/* ==========================================================================
   header — .maison
   ========================================================================== */
.maison {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 12, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gold-line-soft);
}
.maison-inner {
  display: flex;
  align-items: center;
  gap: 2.4rem;
  padding: 1.05rem 0;
}

.crest {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--champagne);
  margin-right: auto;
}
.crest-mark { width: 38px; height: 38px; flex: none; }
.crest-name {
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 430;
  letter-spacing: 0.06em;
}

.menu ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--champagne-dim);
}
.menu a:hover, .menu a:focus-visible { color: var(--gold-bright); }

.tongues {
  display: flex;
  gap: 0.15rem;
  border: 1px solid var(--gold-line-soft);
  padding: 0.2rem;
}
.tongues a {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-decoration: none;
  color: var(--champagne-dim);
  padding: 0.32rem 0.55rem;
  transition: color 0.25s, background 0.25s;
}
.tongues a:hover, .tongues a:focus-visible { color: var(--gold-bright); }
.tongues a[aria-current] { color: #0c0c0e; background: var(--gold); }

/* ==========================================================================
   hero — .overture (split screen)
   ========================================================================== */
.overture {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 4rem;
  min-height: min(88vh, 860px);
  padding: 6.5rem 0 5.5rem;
}

.overture h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  font-weight: 310;
  margin: 0 0 1.6rem;
  color: var(--champagne);
}
.overture h1 em {
  font-style: italic;
  font-weight: 380;
  color: var(--gold-bright);
}

.overture-sub {
  max-width: 34rem;
  font-size: 1.08rem;
  color: var(--champagne-dim);
  margin-bottom: 2.6rem;
}

.overture-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}
.overture-aside {
  margin-top: 3.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--gold-line-soft);
  display: flex;
  gap: 3rem;
  font-size: 0.86rem;
  color: var(--champagne-dim);
}
.overture-aside strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 420;
  color: var(--gold-bright);
  letter-spacing: 0.02em;
}

.overture-art { position: relative; }
.overture-art svg { display: block; width: 100%; height: auto; }

/* staggered entrance on load */
[data-entrance] { opacity: 0; transform: translateY(22px); }
.lit [data-entrance] {
  animation: arrive 0.9s var(--ease) forwards;
}
.lit [data-entrance="2"] { animation-delay: 0.15s; }
.lit [data-entrance="3"] { animation-delay: 0.3s; }
.lit [data-entrance="4"] { animation-delay: 0.45s; }
.lit [data-entrance="5"] { animation-delay: 0.6s; }
@keyframes arrive {
  to { opacity: 1; transform: none; }
}
/* no-JS: html never gets .lit, so keep everything visible */
html:not(.lit) [data-entrance] { opacity: 1; transform: none; }

/* ==========================================================================
   sections — .chapter
   ========================================================================== */
.chapter { padding: 7rem 0; }
.chapter + .chapter { border-top: 1px solid var(--gold-line-soft); }

.chapter-head { max-width: 40rem; margin-bottom: 4rem; }
.chapter-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 330;
  margin-bottom: 1.1rem;
}
.chapter-head p { color: var(--champagne-dim); margin: 0; }

/* ---------- pillars (promise) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.5rem;
}
.pillar { border-top: 1px solid var(--gold-line); padding-top: 1.8rem; }
.pillar h3 {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 400;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  padding-bottom: 4px;
  transition: background-size 0.5s var(--ease);
}
.pillar:hover h3 { background-size: 100% 1px; }
.pillar p { color: var(--champagne-dim); font-size: 0.98rem; margin: 0; }

/* ---------- services — .repertoire ---------- */
.repertoire {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.offering {
  background: linear-gradient(165deg, #17171b 0%, var(--panel) 55%, #101013 100%);
  border: 1px solid var(--gold-line-soft);
  padding: 2.6rem 2.3rem 2.4rem;
  transition: border-color 0.4s, transform 0.4s var(--ease);
}
.offering:hover { border-color: var(--gold-line); transform: translateY(-5px); }
.offering h3 { font-size: 1.55rem; font-weight: 400; margin-bottom: 0.4rem; }
.quiet-price {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.06rem;
  color: var(--gold);
  margin-bottom: 1.3rem;
}
.offering > p:not(.quiet-price) { color: var(--champagne-dim); font-size: 0.96rem; }
.offering ul {
  list-style: none;
  padding: 0;
  margin-top: 1.4rem;
  border-top: 1px solid var(--gold-line-soft);
}
.offering li {
  padding: 0.7rem 0 0 1.4rem;
  position: relative;
  font-size: 0.92rem;
  color: var(--champagne-dim);
}
.offering li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ---------- process — .ritual (roman numerals) ---------- */
.ritual {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.8rem;
  counter-reset: none;
}
.rite { position: relative; padding-top: 2rem; }
.rite::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: -2.8rem;
  height: 1px;
  background: var(--gold-line-soft);
}
.rite:last-child::before { right: 0; }
.numeral {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 320;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
}
.rite h3 { font-size: 1.32rem; font-weight: 420; margin-bottom: 0.6rem; }
.rite p { color: var(--champagne-dim); font-size: 0.94rem; margin: 0; }

/* ---------- testimonials — .voices ---------- */
.voices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.voice {
  margin: 0;
  padding: 2.4rem 2.2rem;
  border: 1px solid var(--gold-line-soft);
  background: linear-gradient(180deg, rgba(200, 165, 90, 0.045), transparent 45%);
  display: flex;
  flex-direction: column;
}
.voice::before {
  content: '\201E';
  font-family: var(--serif);
  font-size: 3.4rem;
  line-height: 0.4;
  color: var(--gold);
  display: block;
  margin-bottom: 1.4rem;
}
.voice blockquote {
  margin: 0 0 1.6rem;
  font-family: var(--serif);
  font-size: 1.22rem;
  font-style: italic;
  font-weight: 380;
  line-height: 1.5;
  flex: 1;
}
.voice figcaption {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- FAQ — .queries ---------- */
.queries { max-width: 46rem; }
.query {
  border-top: 1px solid var(--gold-line-soft);
}
.query:last-child { border-bottom: 1px solid var(--gold-line-soft); }
.query summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.5rem 0.2rem;
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 400;
  transition: color 0.3s;
}
.query summary::-webkit-details-marker { display: none; }
.query summary::after {
  content: '+';
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--gold);
  transition: transform 0.35s var(--ease);
  flex: none;
}
.query[open] summary::after { transform: rotate(45deg); }
.query summary:hover { color: var(--gold-bright); }
.query p {
  padding: 0 3rem 1.6rem 0.2rem;
  margin: 0;
  color: var(--champagne-dim);
  font-size: 0.97rem;
}

/* ---------- contact — .invitation ---------- */
.invitation-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 4.5rem;
  align-items: start;
}
.reach {
  list-style: none;
  padding: 0;
  margin-top: 2.4rem;
}
.reach li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--gold-line-soft);
  font-size: 1rem;
}
.reach .label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

/* form */
.inquiry {
  background: linear-gradient(170deg, #17171b, var(--panel) 70%);
  border: 1px solid var(--gold-line-soft);
  padding: 2.8rem 2.6rem;
}
.inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem 1.5rem;
}
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field-wide { grid-column: 1 / -1; }
.field label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--champagne-dim);
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 0.98rem;
  font-weight: 300;
  color: var(--champagne);
  background: var(--well);
  border: 1px solid #2b2b31;
  border-radius: 0;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c8a55a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}
.field select option { background: var(--well); color: var(--champagne); }
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #6f695d; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 165, 90, 0.22);
}

.inquiry .cta { width: 100%; margin-top: 1.8rem; }

.consent-note {
  margin: 1.2rem 0 0;
  font-size: 0.8rem;
  color: var(--champagne-dim);
}
.consent-note a { color: var(--champagne-dim); }
.consent-note a:hover { color: var(--gold-bright); }

.form-echo {
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  border: 1px solid var(--gold-line);
}
.form-echo.serene { color: var(--gold-bright); border-color: var(--gold); }
.form-echo.grave { color: #e6a37e; border-color: rgba(230, 130, 90, 0.55); }

/* honeypot — off-screen, invisible to humans */
.hush {
  position: absolute;
  left: -6000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- footer — .colophon ---------- */
.colophon {
  border-top: 1px solid var(--gold-line-soft);
  padding: 3.4rem 0 2.8rem;
  font-size: 0.85rem;
  color: var(--champagne-dim);
}
.colophon-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  margin-bottom: 2rem;
}
.colophon .crest-name { font-size: 1.2rem; }
.colophon-tongues {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.colophon-tongues a {
  text-decoration: none;
  color: var(--champagne-dim);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.colophon-tongues a:hover { color: var(--gold-bright); }
.colophon-legal {
  border-top: 1px solid var(--gold-line-soft);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
}
.colophon-legal a { color: var(--champagne-dim); }
.colophon-legal a:hover { color: var(--gold-bright); }

/* ---------- prose (privacy, 404) ---------- */
.prose { padding: 5rem 0 6rem; max-width: 44rem; }
.prose h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); font-weight: 330; }
.prose h2 {
  font-size: 1.45rem;
  font-weight: 420;
  margin-top: 2.6rem;
  color: var(--gold-bright);
}
.prose p, .prose li { color: var(--champagne-dim); font-size: 0.98rem; }
.prose ul { padding-left: 1.2rem; }
.prose a { color: var(--champagne); }
.return-thread {
  display: inline-block;
  margin-bottom: 2.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold);
}
.return-thread:hover { color: var(--gold-bright); }

/* ---------- scroll reveal — .veil ---------- */
.lit .veil {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.lit .veil.unveiled { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-entrance], .lit [data-entrance] {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .lit .veil { opacity: 1; transform: none; transition: none; }
  .offering, .offering:hover { transform: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   responsive
   ========================================================================== */
@media (max-width: 1020px) {
  .menu { display: none; }
  .overture { grid-template-columns: 1fr; gap: 3rem; min-height: 0; padding-top: 4.5rem; }
  .overture-art { max-width: 420px; }
  .pillars, .voices, .repertoire { grid-template-columns: 1fr 1fr; }
  .ritual { grid-template-columns: 1fr 1fr; gap: 2.2rem; }
  .rite::before { right: 0; }
  .invitation-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 640px) {
  .chapter { padding: 4.6rem 0; }
  .maison-inner { gap: 1rem; }
  .crest-name { display: none; }
  .pillars, .voices, .repertoire, .ritual { grid-template-columns: 1fr; }
  .inquiry { padding: 2rem 1.4rem; }
  .inquiry-grid { grid-template-columns: 1fr; }
  .overture-aside { flex-wrap: wrap; gap: 1.6rem 2.4rem; }
  .query summary { font-size: 1.15rem; }
}
