/* ============================================================
   DANI ELITE — Premium Editorial System
   ============================================================ */

:root {
  --cream: #F2EDE2;
  --cream-deep: #ECE5D5;
  --cream-soft: #F7F3EA;
  --ink: #16140F;
  --ink-soft: #2A271F;
  --muted: #7A7468;
  --line: #D8D1C2;
  --line-soft: #E4DECC;
  --accent: #1F1C16;   /* mono accent per swatch 4 */
  --hot: #C2410C;      /* tiny editorial flag */

  --serif: "Instrument Serif", "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Geist", "Söhne", "Neue Haas Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  --pad-x: clamp(20px, 5vw, 96px);
  --gutter: clamp(16px, 2vw, 32px);
  --max: 1440px;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; cursor: none; }

/* Native cursor on touch/coarse pointer */
@media (hover: none), (pointer: coarse) {
  body { cursor: auto; }
  .cursor { display: none !important; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: none; }

::selection { background: var(--ink); color: var(--cream); }

/* Typography ------------------------------------------------- */
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; }
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; font-size: 11px; }

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

.display-xl { font-family: var(--serif); font-size: clamp(64px, 12vw, 220px); line-height: 0.92; letter-spacing: -0.04em; font-weight: 400; }
.display-lg { font-family: var(--serif); font-size: clamp(48px, 8vw, 144px); line-height: 0.94; letter-spacing: -0.03em; font-weight: 400; }
.display-md { font-family: var(--serif); font-size: clamp(36px, 5vw, 88px); line-height: 1; letter-spacing: -0.02em; font-weight: 400; }
.display-sm { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 56px); line-height: 1.05; letter-spacing: -0.015em; font-weight: 400; }

.eyebrow {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--ink);
  border-radius: 50%;
  display: inline-block;
}

.lead {
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* Layout ----------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.section { padding: clamp(80px, 12vh, 160px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vh, 96px) 0; }
.bleed { padding-left: var(--pad-x); padding-right: var(--pad-x); }

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
}

.divider { height: 1px; background: var(--line); width: 100%; }

/* NAV -------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: difference;
  color: var(--cream);
  transition: padding .4s ease;
}
.nav.compact { padding: 14px var(--pad-x); }
.nav__logo { font-family: var(--serif); font-style: italic; font-size: 24px; letter-spacing: -0.02em; }
.nav__logo .dot { display: inline-block; width: 6px; height: 6px; background: currentColor; border-radius: 50%; vertical-align: middle; margin: 0 2px 4px 2px; }
.nav__links { display: flex; gap: 36px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; }
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; }
.nav__cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 800px) { .nav__links { display: none; } }

/* Buttons ---------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), background .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn .arrow { display: inline-block; transition: transform .3s; }
.btn:hover .arrow { transform: translateX(4px); }

/* Reveal animations ------------------------------------------ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.8,.2,1); }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 400ms; }

/* Text reveal by word --------------------------------------- */
.word-reveal { display: inline-block; overflow: hidden; vertical-align: bottom; }
.word-reveal > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
.word-reveal.in > span { transform: translateY(0); }

/* Cursor ----------------------------------------------------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 12px; height: 12px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width .25s, height .25s, background .25s;
}
.cursor.lg { width: 96px; height: 96px; background: var(--cream); }
.cursor.lg .cursor__label { opacity: 1; }
.cursor__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0;
  transition: opacity .2s;
  white-space: nowrap;
}

/* Marquee ---------------------------------------------------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 50s linear infinite;
}
.marquee__item {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 4vw, 64px);
  padding: 0 40px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 40px;
}
.marquee__item .dot { width: 8px; height: 8px; background: var(--ink); border-radius: 50%; display: inline-block; }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 65s; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Footer ----------------------------------------------------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: clamp(80px, 10vh, 140px) var(--pad-x) 40px;
  position: relative;
}
.footer .display-xl { font-size: clamp(80px, 16vw, 280px); }
.footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--gutter); margin-top: 80px; padding-top: 48px; border-top: 1px solid rgba(242,237,226,.18); }
.footer__col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(242,237,226,.55); margin-bottom: 18px; font-weight: 400; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer__col li a { transition: opacity .2s; }
.footer__col li a:hover { opacity: 0.6; }
.footer__legal { margin-top: 80px; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(242,237,226,.45); }
@media (max-width: 800px) { .footer__cols { grid-template-columns: 1fr 1fr; } .footer__legal { flex-direction: column; gap: 16px; } }

/* Chips ------------------------------------------------------ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: transparent;
  white-space: nowrap;
}

/* Number badge ----------------------------------------------- */
.num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* Placeholder image ----------------------------------------- */
.ph {
  background:
    repeating-linear-gradient(135deg, rgba(22,20,15,.06) 0 1px, transparent 1px 12px),
    var(--cream-deep);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.ph__label {
  position: absolute;
  inset: auto auto 14px 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ph__corner {
  position: absolute;
  top: 14px; right: 14px;
  width: 10px; height: 10px;
  border-top: 1px solid var(--muted);
  border-right: 1px solid var(--muted);
}

/* Section heading layout ------------------------------------ */
.sec-head {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--gutter);
  align-items: end;
  margin-bottom: clamp(48px, 6vh, 96px);
}
@media (max-width: 800px) { .sec-head { grid-template-columns: 1fr; gap: 24px; } }

/* Page header (interior pages) ------------------------------ */
.page-hero {
  padding: 200px var(--pad-x) clamp(60px, 8vh, 120px);
  border-bottom: 1px solid var(--line);
}
.page-hero__meta { display: flex; justify-content: space-between; margin-bottom: 64px; }
.page-hero h1 { line-height: 1.02; padding-bottom: 0.12em; }
.page-hero .lead { margin-top: clamp(48px, 5vw, 72px) !important; }

/* Utility ---------------------------------------------------- */
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.col { flex-direction: column; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 32px; }
.italic { font-style: italic; }
.muted { color: var(--muted); }
.text-right { text-align: right; }

/* Card hover with magnetic feel ------------------------------ */
.card-link { display: block; position: relative; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.card-link:hover { transform: translateY(-4px); }
