/* ─── XEN SOLIS — MAIN STYLESHEET ─────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@200;300;400&display=swap');

/* ─── RESET & BASE ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:   #080808;
  --black-2: #111111;
  --black-3: #1a1a1a;
  --black-4: #242424;
  --white:   #ffffff;
  --off-white: #e8e4df;
  --muted:   rgba(255,255,255,0.38);
  --border:  rgba(255,255,255,0.09);
  --serif:   'Cormorant Garamond', Georgia, serif;
  --sans:    'Jost', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  /* Black marble — veined SVG pattern */
  --marble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='800'%3E%3Cdefs%3E%3Cfilter id='m'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.012 0.018' numOctaves='6' seed='8' stitchTiles='stitch' result='t'/%3E%3CfeColorMatrix type='saturate' values='0' in='t' result='g'/%3E%3CfeComponentTransfer in='g' result='c'%3E%3CfeFuncR type='linear' slope='0.08' intercept='0.04'/%3E%3CfeFuncG type='linear' slope='0.08' intercept='0.04'/%3E%3CfeFuncB type='linear' slope='0.09' intercept='0.045'/%3E%3C/feComponentTransfer%3E%3CfeBlend in='SourceGraphic' in2='c' mode='overlay' result='b'/%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.035 0.008' numOctaves='3' seed='42' result='v'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.22  0 0 0 0 0.22  0 0 0 0 0.24  0 0 0 18 -8' in='v' result='veins'/%3E%3CfeComposite in='b' in2='veins' operator='over'/%3E%3C/filter%3E%3C/defs%3E%3Crect width='800' height='800' fill='%230d0d0d'/%3E%3Crect width='800' height='800' filter='url(%23m)' opacity='1'/%3E%3C/svg%3E");
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

::selection { background: var(--white); color: var(--black); }

/* ─── CUSTOM CURSOR ────────────────────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--white);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s var(--ease-out), opacity 0.2s;
  transform: translate(-50%, -50%);
}
.cursor-ring {
  position: fixed;
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transition: transform 0.4s var(--ease-out), width 0.3s, height 0.3s, opacity 0.2s;
  transform: translate(-50%, -50%);
}
.cursor.expand { transform: translate(-50%, -50%) scale(3); opacity: 0; }
.cursor-ring.expand { width: 64px; height: 64px; opacity: 0.3; }

/* ─── GRAIN OVERLAY ────────────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 9997;
}

/* ─── NAVIGATION ───────────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 56px;
  transition: padding 0.4s var(--ease-out), background 0.4s;
}
nav.scrolled {
  padding: 18px 56px;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.3s;
}
.nav-logo:hover { opacity: 0.6; }
.nav-links {
  display: flex;
  gap: 48px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white) !important;
  border: 1px solid rgba(255,255,255,0.4) !important;
  padding: 10px 22px !important;
  opacity: 1 !important;
  transition: border-color 0.3s, background 0.3s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--white) !important; color: var(--black) !important; border-color: var(--white) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none; border: none;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1px;
  background: var(--white);
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.mobile-menu.open { opacity: 1; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--white);
  text-decoration: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s var(--ease-out);
}
.mobile-menu.open a {
  opacity: 1;
  transform: translateY(0);
}
.mobile-menu.open a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.25s; }

/* ─── SCROLL REVEAL ────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ─── SECTION WRAPPER ──────────────────────────────────────────────────────── */
section { position: relative; }
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 56px;
}

/* ─── EYEBROW LABEL ────────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--muted);
  flex-shrink: 0;
}

/* ─── DISPLAY HEADLINE ─────────────────────────────────────────────────────── */
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.display em { font-style: italic; }
.display-sm {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
}

/* ─── CTA BUTTON ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 16px 36px;
  transition: background 0.35s var(--ease-out), border-color 0.35s, color 0.35s;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease-out);
  z-index: 0;
}
.btn:hover::before { transform: translateX(0); }
.btn:hover { color: var(--black); border-color: var(--white); }
.btn span { position: relative; z-index: 1; }
.btn svg { position: relative; z-index: 1; transition: transform 0.3s var(--ease-out); }
.btn:hover svg { transform: translate(3px, -3px); }

.btn-solid {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn-solid::before { background: var(--black); }
.btn-solid:hover { color: var(--white); }

/* ─── HORIZONTAL RULE ──────────────────────────────────────────────────────── */
.hr { width: 100%; height: 1px; background: var(--border); }

/* ─── FOOTER ───────────────────────────────────────────────────────────────── */
footer {
  background: var(--black-2);
  border-top: 1px solid var(--border);
  padding: 80px 0 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.footer-brand .footer-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  display: block;
  margin-bottom: 20px;
}
.footer-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-brand p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  margin-top: 16px;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 14px; }
.footer-col ul li a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.3s;
  letter-spacing: 0.02em;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-contact p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.9;
  margin-bottom: 8px;
}
.footer-contact strong {
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
  margin-top: 20px;
}
.footer-contact strong:first-child { margin-top: 0; }
.footer-contact a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.82rem;
}
.footer-contact a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em;
}
.footer-socials {
  display: flex;
  gap: 20px;
}
.footer-socials a {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-socials a:hover { color: var(--white); }

/* ─── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  nav { padding: 24px 32px; }
  nav.scrolled { padding: 16px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
  nav { padding: 20px 24px; }
  nav.scrolled { padding: 16px 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }
  .container { padding: 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}
