/* ==========================================================================
   LUMINAR ESTATE STUDIO — Landing
   ========================================================================== */

:root {
  --black: #0c0b09;
  --black-2: #141210;
  --graphite: #403c35;
  --gold: #d4af37;
  --gold-light: #f0d78c;
  --gold-dim: #8a7332;
  --ivory: #f2ede1;
  --ivory-2: #e9e1cf;
  --line: rgba(212,175,55,0.25);
  --serif: "Cormorant Garamond", serif;
  --sans: "Jost", sans-serif;
  --ease: cubic-bezier(.16,.8,.24,1);
}

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

html { scroll-behavior:smooth; }

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

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

a { color:inherit; text-decoration:none; }
img, video { display:block; max-width:100%; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset:0; z-index: 9998; pointer-events:none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- cursor ---------- */
.cursor-dot, .cursor-ring { position: fixed; top:0; left:0; pointer-events:none; z-index:9999; border-radius:50%; transform: translate(-50%,-50%); }
.cursor-dot { width:6px; height:6px; background: var(--gold); transition: opacity .2s; }
.cursor-ring { width:36px; height:36px; border:1px solid var(--gold); opacity:.6; transition: width .25s var(--ease), height .25s var(--ease), opacity .25s, border-color .25s, background .25s; }
.cursor-ring.hover { width:64px; height:64px; background: rgba(212,175,55,.1); border-color: var(--gold-light); }
@media (hover:none), (pointer:coarse) { .cursor-dot, .cursor-ring { display:none; } body { cursor:auto; } }

/* ---------- reveal ---------- */
.reveal { opacity:0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity:1; transform: translateY(0); }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset:0; z-index: 10000; background: var(--black);
  display:flex; align-items:center; justify-content:center;
  transition: opacity .9s var(--ease), visibility .9s var(--ease);
}
.loader-video { height: 60vh; max-width: 80vw; object-fit: contain; filter: drop-shadow(0 0 40px rgba(212,175,55,.25)); }
.loader-skip {
  position:absolute; bottom: 8vh; left:50%; transform: translateX(-50%);
  font-family: var(--sans); letter-spacing:.2em; font-size:.7rem; text-transform:uppercase;
  color: var(--gold-dim); opacity:0; animation: fadeIn .6s .8s forwards; cursor:pointer;
}
@keyframes fadeIn { to { opacity:1; } }
.loader.hidden { opacity:0; visibility:hidden; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top:0; left:0; right:0; z-index: 500;
  display:flex; align-items:center; justify-content:space-between;
  padding: 1.6rem clamp(1.5rem, 5vw, 4rem);
  transition: padding .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { padding: .9rem clamp(1.5rem, 5vw, 4rem); background: rgba(12,11,9,.82); backdrop-filter: blur(14px); border-color: var(--line); }
.nav-mark { display:flex; align-items:center; gap:.7rem; }
.nav-mark img { height: 30px; width:auto; }
.nav-mark span { font-family: var(--serif); font-size: 1.05rem; letter-spacing:.08em; line-height:1; }
.nav-mark span em { display:block; font-style:normal; font-size:.52rem; letter-spacing:.32em; color: var(--gold); font-family: var(--sans); margin-top:.25rem; }
.nav-links { display:flex; align-items:center; gap: clamp(1.2rem, 2.5vw, 2.4rem); font-size:.82rem; letter-spacing:.04em; }
.nav-links a { position:relative; padding-bottom:4px; opacity:.85; transition:opacity .3s; }
.nav-links a:not(.nav-cta)::after { content:''; position:absolute; left:0; bottom:0; width:0; height:1px; background: var(--gold); transition: width .35s var(--ease); }
.nav-links a:not(.nav-cta):hover::after { width:100%; }
.nav-links a:hover { opacity:1; }
.nav-cta { border:1px solid var(--gold); padding:.55rem 1.3rem; border-radius:2px; color: var(--gold-light) !important; }
.nav-cta:hover { background: var(--gold); color: var(--black) !important; }
.nav-burger { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; z-index:600; }
.nav-burger span { width:24px; height:1px; background: var(--ivory); transition: transform .3s, opacity .3s; }

/* ---------- hero ---------- */
.hero { position:relative; height:100vh; min-height:640px; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.hero-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.hero-scrim { position:absolute; inset:0; background:
  linear-gradient(180deg, rgba(12,11,9,.55) 0%, rgba(12,11,9,.35) 35%, rgba(12,11,9,.75) 78%, var(--black) 100%); }
.hero-glow { position:absolute; top:-20%; left:50%; width:120%; height:70%; transform:translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(212,175,55,.16), transparent 65%); pointer-events:none; }
.hero-content { position:relative; z-index:2; text-align:center; padding: 0 1.5rem; max-width: 980px; }
.hero-eyebrow { font-size:.78rem; letter-spacing:.35em; text-transform:uppercase; color: var(--gold-light); margin-bottom:1.6rem; }
.hero-title { font-family: var(--serif); font-weight:400; font-size: clamp(2.4rem, 6vw, 5rem); line-height:1.12; }
.hero-title .line { display:block; }
.hero-title .line-gold { font-style:italic; color: var(--gold-light); }
.hero-actions { margin-top: 2.6rem; display:flex; gap:1.2rem; justify-content:center; flex-wrap:wrap; }

.btn { position:relative; display:inline-flex; padding: 1rem 2.1rem; font-size:.82rem; letter-spacing:.12em; text-transform:uppercase; border-radius:2px; overflow:hidden; }
.btn span { position:relative; z-index:2; }
.btn-gold { background: var(--gold); color: var(--black); font-weight:500; }
.btn-gold:hover { background: var(--gold-light); }
.btn-ghost { border:1px solid rgba(242,237,225,.4); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }

.hero-scroll { position:absolute; bottom: 6.5rem; left:50%; transform:translateX(-50%); z-index:2; display:flex; flex-direction:column; align-items:center; gap:.6rem; }
.hero-scroll span { font-size:.62rem; letter-spacing:.3em; text-transform:uppercase; color: rgba(242,237,225,.55); }
.hero-scroll-line { width:1px; height:44px; background: rgba(242,237,225,.2); overflow:hidden; }
.hero-scroll-line i { display:block; width:100%; height:40%; background: var(--gold); animation: scrollLine 1.8s ease-in-out infinite; }
@keyframes scrollLine { 0% { transform:translateY(-100%);} 100% { transform:translateY(250%);} }

.hero-marquee { position:absolute; bottom:0; left:0; right:0; z-index:2; border-top:1px solid var(--line); background: rgba(12,11,9,.55); backdrop-filter: blur(6px); overflow:hidden; padding: .85rem 0; }
.marquee-track { display:flex; gap: 1.4rem; white-space:nowrap; width:max-content; animation: marquee 32s linear infinite; font-size:.72rem; letter-spacing:.18em; color: rgba(242,237,225,.55); }
.marquee-track span:nth-child(odd) { color: var(--gold-dim); }
@keyframes marquee { from { transform:translateX(0); } to { transform:translateX(-50%); } }

/* ---------- section shared ---------- */
section { position:relative; padding: clamp(5rem,10vw,8rem) clamp(1.5rem,6vw,5rem); }
.section-tag { display:inline-block; font-size:.72rem; letter-spacing:.3em; text-transform:uppercase; color: var(--gold); margin-bottom:1.4rem; }
.section-title { font-family: var(--serif); font-weight:400; font-size: clamp(1.9rem, 4vw, 3.1rem); line-height:1.22; max-width: 780px; }
.section-title em { font-style:italic; color: var(--gold-light); }

/* ---------- about ---------- */
.about { background: var(--ivory); color: var(--black); display:flex; align-items:center; gap: 4rem; flex-wrap:wrap; }
.about .section-tag { color: var(--gold-dim); }
.about-inner { flex:1 1 560px; }
.about-title { font-family: var(--serif); font-size: clamp(1.7rem,3.4vw,2.6rem); font-weight:400; line-height:1.35; margin-bottom: 2.6rem; }
.about-title em { font-style:italic; color: var(--gold-dim); }
.about-grid { display:grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; }
.about-copy p { font-size: 1.05rem; line-height:1.75; color:#3a352c; max-width:44ch; }
.about-values { display:flex; flex-wrap:wrap; gap:.6rem; align-content:flex-start; }
.value-chip { border:1px solid rgba(64,60,53,.28); padding:.5rem 1rem; border-radius:999px; font-size:.78rem; letter-spacing:.05em; }
.about-emblem { flex:0 0 260px; display:flex; justify-content:center; }
.emblem-svg { width: 220px; height:220px; }
.emblem-svg polygon, .emblem-svg line { fill:none; stroke: var(--gold-dim); stroke-width:1; }
.emblem-svg polygon { fill: rgba(212,175,55,.05); }

/* ---------- servicios ---------- */
.services { background: var(--black); }
.services-grid { margin-top: 3.5rem; display:grid; grid-template-columns: repeat(4,1fr); gap:1px; background: var(--line); border:1px solid var(--line); }
.service-card { background: var(--black); padding: 2.6rem 1.8rem; transition: background .4s var(--ease); }
.service-card:hover { background: var(--black-2); }
.service-num { font-family: var(--serif); font-size:1rem; color: var(--gold-dim); }
.service-card h3 { font-family: var(--serif); font-weight:500; font-size:1.3rem; margin: 1.1rem 0 .9rem; line-height:1.3; }
.service-card p { font-size:.9rem; line-height:1.65; color: rgba(242,237,225,.62); }

/* ---------- proyectos ---------- */
.projects { background: var(--black-2); }
.project-row { display:flex; align-items:center; gap: 3.5rem; margin-top: 3.5rem; }
.project-row-rev { flex-direction: row-reverse; }
.project-media { position:relative; flex: 0 0 40%; aspect-ratio: 9/16; max-height: 560px; border-radius:2px; overflow:hidden; border:1px solid var(--line); }
.project-media video { width:100%; height:100%; object-fit:cover; }
.project-sound { position:absolute; bottom:1rem; right:1rem; width:38px; height:38px; border-radius:50%; border:1px solid var(--line); background: rgba(12,11,9,.6); color: var(--ivory); font-size:.9rem; cursor:pointer; }
.project-info { flex:1; }
.project-index { font-family: var(--serif); font-style:italic; color: var(--gold); font-size:1.6rem; }
.project-info h3 { font-family: var(--serif); font-weight:500; font-size: clamp(1.6rem,3vw,2.3rem); margin:.6rem 0 1.1rem; }
.project-info p { font-size:1rem; line-height:1.75; color: rgba(242,237,225,.62); max-width: 42ch; margin-bottom:1.4rem; }
.project-tag { font-size:.72rem; letter-spacing:.2em; text-transform:uppercase; color: var(--gold-dim); border-top:1px solid var(--line); padding-top:1rem; display:inline-block; }

/* ---------- reels ---------- */
.reels { background: var(--black); }
.reels-hint { margin-top:1rem; font-size:.82rem; color: rgba(242,237,225,.45); }
.reels-track { margin-top: 3rem; display:flex; gap: 1.2rem; overflow-x:auto; padding-bottom: 1.5rem; scroll-snap-type: x proximity; cursor: grab; }
.reels-track:active { cursor: grabbing; }
.reels-track::-webkit-scrollbar { height:4px; }
.reels-track::-webkit-scrollbar-thumb { background: var(--gold-dim); }
.reel-card { position:relative; flex: 0 0 220px; aspect-ratio: 9/16; border-radius:2px; overflow:hidden; border:1px solid var(--line); scroll-snap-align:start; transition: transform .4s var(--ease), border-color .4s; }
.reel-card:hover { transform: translateY(-10px); border-color: var(--gold); }
.reel-card video { width:100%; height:100%; object-fit:cover; }
.reel-card-label { position:absolute; top:.8rem; left:.9rem; font-size:.66rem; letter-spacing:.18em; text-transform:uppercase; color: var(--gold-light); text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.reel-card::after { content:'▶'; position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:1.4rem; color: rgba(242,237,225,.85); background: rgba(12,11,9,.15); opacity:0; transition: opacity .3s; }
.reel-card:hover::after { opacity:0; }

/* ---------- proceso ---------- */
.process { background: var(--black-2); }
.process-list { margin-top: 3rem; }
.process-item { display:flex; gap: 2.2rem; align-items:baseline; padding: 2.1rem 0; border-top: 1px solid var(--line); }
.process-item:last-child { border-bottom: 1px solid var(--line); }
.process-num { font-family: var(--serif); font-style:italic; font-size:2.2rem; color: var(--gold-dim); flex:0 0 70px; }
.process-item h3 { font-family: var(--serif); font-weight:500; font-size:1.5rem; margin-bottom:.5rem; }
.process-item p { color: rgba(242,237,225,.6); max-width:52ch; line-height:1.7; }

/* ---------- pieces ---------- */
.pieces { background: var(--ivory); color: var(--black); }
.pieces .section-tag { color: var(--gold-dim); }
.pieces-grid { margin-top: 3rem; display:grid; grid-template-columns: repeat(4, 1fr); gap:1.4rem; }
.piece { width:100%; height: 340px; object-fit:cover; border-radius:2px; box-shadow: 0 20px 40px rgba(0,0,0,.12); transition: transform .5s var(--ease); }
.piece:hover { transform: translateY(-8px); }
.piece-2, .piece-4 { margin-top: 2.4rem; }

/* ---------- contacto ---------- */
.contact { background: var(--black); text-align:center; padding-top: clamp(6rem,12vw,10rem); padding-bottom: clamp(6rem,12vw,10rem); overflow:hidden; }
.contact-glow { position:absolute; top:0; left:50%; width:80%; height:100%; transform:translateX(-50%); background: radial-gradient(ellipse at top, rgba(212,175,55,.14), transparent 60%); pointer-events:none; }
.contact .section-tag { position:relative; }
.contact-title { position:relative; font-family: var(--serif); font-weight:400; font-size: clamp(2.1rem,5vw,3.6rem); margin: 1.2rem auto 3rem; }
.contact-title em { font-style:italic; color: var(--gold-light); }
.contact-actions { position:relative; display:flex; gap:1.4rem; justify-content:center; flex-wrap:wrap; margin-bottom: 2.6rem; }
.contact-card { border:1px solid var(--line); padding: 1.6rem 2.4rem; border-radius:2px; min-width:260px; transition: border-color .3s, background .3s; }
.contact-card:hover { border-color: var(--gold); background: rgba(212,175,55,.06); }
.contact-role { display:block; font-family: var(--serif); font-size:1.2rem; margin-bottom:.4rem; }
.contact-detail { font-size:.85rem; color: var(--gold-light); }
.contact-links { position:relative; display:flex; gap: 2rem; justify-content:center; flex-wrap:wrap; font-size:.9rem; }
.contact-links a { border-bottom:1px solid var(--line); padding-bottom:2px; }
.contact-links a:hover { color: var(--gold-light); border-color: var(--gold); }

/* ---------- footer ---------- */
.footer { text-align:center; padding: 3rem 1.5rem; border-top:1px solid var(--line); }
.footer img { height:34px; margin: 0 auto 1rem; opacity:.85; }
.footer p { font-size:.74rem; letter-spacing:.05em; color: rgba(242,237,225,.4); }

/* ---------- lightbox ---------- */
.lightbox { position:fixed; inset:0; z-index:9500; background: rgba(6,5,4,.94); display:none; align-items:center; justify-content:center; padding: 3rem 1.5rem; }
.lightbox.open { display:flex; }
.lightbox video { max-height: 88vh; max-width: 92vw; border: 1px solid var(--line); }
.lightbox-close { position:absolute; top: 2rem; right: 2rem; background:none; border:1px solid var(--line); color: var(--ivory); width:44px; height:44px; border-radius:50%; font-size:1rem; cursor:pointer; }
.lightbox-close:hover { border-color: var(--gold); color: var(--gold-light); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .about { flex-direction:column; }
  .about-grid { grid-template-columns:1fr; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .pieces-grid { grid-template-columns: repeat(2,1fr); }
  .piece-2, .piece-4 { margin-top:0; }
  .project-row, .project-row-rev { flex-direction:column; }
  .project-media { flex-basis:auto; width:100%; max-width:340px; margin:0 auto; }
}

@media (max-width: 720px) {
  .nav-links { position:fixed; top:0; right:0; height:100vh; width: min(78vw,320px);
    background: rgba(12,11,9,.97); flex-direction:column; justify-content:center; align-items:flex-start;
    padding: 2rem; gap:1.6rem; transform: translateX(100%); transition: transform .45s var(--ease); }
  .nav-links.open { transform: translateX(0); }
  .nav-burger { display:flex; }
  .nav-burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity:0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .services-grid { grid-template-columns:1fr; }
  .pieces-grid { grid-template-columns: 1fr 1fr; }
  .piece { height:220px; }
  .process-item { gap:1.2rem; }
  .process-num { flex-basis:44px; font-size:1.6rem; }
}
