/* ============================================
   Rêve — Interior Design Website
   Premium CSS with 3D & Cinematic Effects
   ============================================ */

:root {
  --cream: #f5f0e8;
  --cream-dark: #ede7d9;
  --ink: #0f0d0a;
  --ink-soft: #2a2520;
  --gold: #c9a96e;
  --gold-light: #e4c99a;
  --stone: #8a8278;
  --stone-light: #b5b0a8;
  --white: #ffffff;
  --ff-display: 'Cormorant Garamond', serif;
  --ff-body: 'Montserrat', sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--ff-body);
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── NOISE OVERLAY ── */
.noise {
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  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='1'/%3E%3C/svg%3E");
  opacity: 0.025;
}

/* ── CUSTOM CURSOR ── */
.cursor {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s var(--ease), background 0.3s;
}
.cursor-follower {
  width: 36px; height: 36px;
  border: 1px solid rgba(201,169,110,0.5);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease), width 0.3s, height 0.3s, border-color 0.3s;
}
body:has(.magnetic:hover) .cursor { transform: translate(-50%,-50%) scale(2.5); background: var(--gold-light); }
body:has(.magnetic:hover) .cursor-follower { width: 60px; height: 60px; border-color: var(--gold); }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex; align-items: center; gap: 48px;
  padding: 28px 64px;
  transition: background 0.5s var(--ease), padding 0.4s;
}
.nav.scrolled {
  background: rgba(15,13,10,0.92);
  backdrop-filter: blur(20px);
  padding: 18px 64px;
  border-bottom: 1px solid rgba(201,169,110,0.1);
}
.nav-logo {
  font-family: var(--ff-display);
  font-size: 1.6rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  font-weight: 400;
  margin-right: auto;
}
.nav-links {
  display: flex; gap: 40px;
}
.nav-links a {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone-light);
  transition: color 0.3s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 10px 22px;
  cursor: none;
  transition: background 0.3s, color 0.3s;
}
.nav-cta:hover { background: var(--gold); color: var(--ink); }
.hamburger { display: none; flex-direction: column; gap: 6px; cursor: none; }
.hamburger span { display: block; width: 24px; height: 1px; background: var(--cream); transition: transform 0.3s; }

/* ── HERO ── */
.hero {
  position: relative;
  height: 100vh; min-height: 700px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -10%;
  background: url('https://images.unsplash.com/photo-1615529162924-f8605388461d?w=1800&q=85') center/cover no-repeat;
  transform-origin: center center;
  will-change: transform;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(15,13,10,0.82) 0%, rgba(15,13,10,0.4) 55%, rgba(15,13,10,0.15) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 0 64px;
  max-width: 900px;
}
.hero-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 300;
  line-height: 0.95;
  margin-bottom: 32px;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-sub {
  font-size: 1rem;
  font-weight: 300;
  color: var(--stone-light);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 48px;
  letter-spacing: 0.03em;
}
.hero-actions {
  display: flex; gap: 20px; flex-wrap: wrap;
}
.btn-primary {
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: 16px 40px;
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: none;
  transition: background 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease);
}
.btn-primary:hover { background: var(--gold-light); box-shadow: 0 20px 60px rgba(201,169,110,0.3); }
.btn-primary:hover::after { transform: translateX(0); }
.btn-primary.large { padding: 20px 56px; font-size: 0.75rem; }
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(245,240,232,0.25);
  padding: 16px 40px;
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: none;
  transition: border-color 0.3s, color 0.3s;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* Floating cards */
.floating-card {
  position: absolute;
  z-index: 3;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.6);
  will-change: transform;
  transition: transform 0.1s linear;
}
.floating-card .fc-inner { overflow: hidden; }
.fc1 { width: 220px; height: 280px; right: 16%; top: 15%; transform: rotate(-4deg); }
.fc2 { width: 170px; height: 220px; right: 28%; bottom: 18%; transform: rotate(5deg); }
.fc1 img, .fc2 img { width: 100%; height: 100%; object-fit: cover; transition: transform 8s ease; }
.fc1:hover img, .fc2:hover img { transform: scale(1.08); }

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute; bottom: 48px; left: 64px;
  display: flex; align-items: center; gap: 16px;
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--stone);
  z-index: 3;
}
.scroll-line {
  width: 60px; height: 1px; background: var(--stone);
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: var(--gold);
  animation: lineSlide 2s ease-in-out infinite;
}
@keyframes lineSlide {
  0% { left: -100%; }
  50% { left: 0%; }
  100% { left: 100%; }
}

/* ── REVEAL ANIMATIONS ── */
.reveal, .reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.line1 { transition-delay: 0.1s; }
.reveal.line2 { transition-delay: 0.25s; }
.hero-sub.reveal { transition-delay: 0.4s; }
.hero-actions.reveal { transition-delay: 0.55s; }
.hero-eyebrow.reveal { transition-delay: 0s; }
.reveal.visible, .reveal-up.visible { opacity: 1; transform: translateY(0); }

/* ── MARQUEE ── */
.marquee-wrap {
  background: var(--gold);
  overflow: hidden;
  padding: 14px 0;
}
.marquee-track {
  display: flex; gap: 40px; align-items: center;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  font-weight: 500;
  color: var(--ink);
  text-transform: uppercase;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── SECTION LABELS ── */
.section-tag {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--cream);
}
.section-title em { font-style: italic; color: var(--gold-light); }

/* ── ABOUT ── */
.about {
  padding: 160px 64px;
  background: var(--ink);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
  max-width: 1400px; margin: 0 auto;
}
.about-img-wrap {
  position: relative;
  height: 680px;
  border-radius: 2px;
  overflow: hidden;
  transform-style: preserve-3d;
}
.about-img-wrap img { border-radius: 2px; }
.about-img-badge {
  position: absolute;
  bottom: 40px; right: -20px;
  background: var(--gold);
  color: var(--ink);
  padding: 28px 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.badge-num {
  display: block;
  font-family: var(--ff-display);
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1;
}
.badge-label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 6px;
}
.about-right { padding: 40px 0; }
.about-body {
  color: var(--stone-light);
  line-height: 1.9;
  font-size: 0.95rem;
  margin: 32px 0 56px;
  max-width: 460px;
}
.stats-row { display: flex; gap: 48px; }
.stat-num {
  display: block;
  font-family: var(--ff-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 8px;
}

/* ── PARALLAX SCENE ── */
.parallax-scene {
  position: relative;
  height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ps-bg {
  position: absolute; inset: -10%;
  background: url('https://images.unsplash.com/photo-1618221195710-dd6b41faaea6?w=1800&q=85') center/cover no-repeat;
  will-change: transform;
}
.ps-overlay {
  position: absolute; inset: 0;
  background: rgba(15,13,10,0.65);
}
.ps-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 40px;
}
.ps-quote {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 4.5vw, 4rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.3;
  color: var(--cream);
  max-width: 820px;
}
.ps-quote em { color: var(--gold-light); font-style: normal; }
.ps-cite {
  display: block;
  margin-top: 32px;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
}
.ps-scroll-text {
  position: absolute;
  font-family: var(--ff-display);
  font-size: clamp(6rem, 20vw, 18rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201,169,110,0.12);
  user-select: none;
  z-index: 1;
  will-change: transform;
  white-space: nowrap;
}

/* ── WORK ── */
.work {
  padding: 160px 64px;
  background: var(--ink-soft);
}
.work-header {
  max-width: 1400px; margin: 0 auto 80px;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
  max-width: 1400px; margin: 0 auto;
}
.project-card {
  position: relative;
  overflow: hidden;
  cursor: none;
  border-radius: 2px;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out);
}
.card-lg { grid-column: span 7; }
.card-sm { grid-column: span 5; }
.card-wide { grid-column: span 12; height: 420px; }
.pc-img {
  width: 100%; height: 100%;
  position: relative;
  overflow: hidden;
}
.card-lg .pc-img, .card-sm .pc-img { height: 500px; }
.pc-img img {
  transition: transform 0.8s var(--ease-out);
  will-change: transform;
}
.project-card:hover .pc-img img { transform: scale(1.06); }
.pc-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15,13,10,0.85) 100%);
}
.pc-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 32px;
  transform: translateY(8px);
  transition: transform 0.4s var(--ease-out);
}
.project-card:hover .pc-info { transform: translateY(0); }
.pc-tag {
  display: block;
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.pc-info h3 {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--cream);
  line-height: 1.1;
}
.pc-info p {
  font-size: 0.8rem;
  color: var(--stone-light);
  margin-top: 8px;
  line-height: 1.6;
  max-width: 360px;
}
.pc-arrow {
  display: inline-block;
  margin-top: 18px;
  font-size: 1.2rem;
  color: var(--gold);
  transform: translateX(-8px);
  opacity: 0;
  transition: transform 0.4s var(--ease-out), opacity 0.4s;
}
.project-card:hover .pc-arrow { transform: translateX(0); opacity: 1; }

/* ── TILT CARD ── */
.tilt-card { transition: transform 0.3s ease; }

/* ── SERVICES ── */
.services {
  padding: 160px 64px;
  background: var(--ink);
}
.services-header {
  max-width: 1400px; margin: 0 auto 80px;
}
.services-list {
  max-width: 1400px; margin: 0 auto;
  border-top: 1px solid rgba(201,169,110,0.15);
}
.service-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid rgba(201,169,110,0.1);
  transition: background 0.3s;
  cursor: none;
}
.service-item:hover { background: rgba(201,169,110,0.03); padding-left: 16px; transition: padding 0.4s var(--ease-out), background 0.3s; }
.si-num {
  font-family: var(--ff-display);
  font-size: 1rem;
  color: var(--gold);
  font-weight: 400;
}
.si-body h3 {
  font-family: var(--ff-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--cream);
  margin-bottom: 12px;
}
.si-body p {
  font-size: 0.85rem;
  color: var(--stone);
  line-height: 1.8;
  max-width: 560px;
}
.si-icon {
  font-size: 2rem;
  color: rgba(201,169,110,0.2);
  transition: color 0.3s, transform 0.4s var(--ease-out);
}
.service-item:hover .si-icon { color: var(--gold); transform: rotate(30deg) scale(1.2); }

/* ── TESTIMONIAL ── */
.testimonial-section {
  background: var(--ink-soft);
  padding: 160px 64px;
  text-align: center;
}
.testi-wrap { max-width: 900px; margin: 0 auto; position: relative; min-height: 200px; }
.testi-slide {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity 0.8s var(--ease);
}
.testi-slide.active { opacity: 1; pointer-events: auto; position: relative; }
.testi-quote {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--cream);
  margin-bottom: 32px;
}
.testi-author {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.testi-dots {
  display: flex; justify-content: center; gap: 12px;
  margin-top: 56px;
}
.dot {
  width: 8px; height: 1px;
  background: var(--stone);
  cursor: none;
  transition: width 0.4s var(--ease-out), background 0.3s;
}
.dot.active { width: 40px; background: var(--gold); }

/* ── CONTACT ── */
.contact {
  padding: 160px 64px;
  background: var(--ink);
}
.contact-inner {
  max-width: 900px; margin: 0 auto;
}
.contact-title {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--cream);
  margin-bottom: 24px;
}
.contact-title em { font-style: italic; color: var(--gold-light); }
.contact-sub {
  font-size: 0.9rem;
  color: var(--stone);
  line-height: 1.8;
  margin-bottom: 64px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-input, .form-textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,169,110,0.15);
  color: var(--cream);
  padding: 18px 24px;
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  border-radius: 1px;
  width: 100%;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--gold);
  background: rgba(201,169,110,0.04);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--stone); }
.form-textarea { min-height: 160px; resize: vertical; }

/* ── FOOTER ── */
.footer {
  background: #080705;
  padding: 80px 64px 40px;
  border-top: 1px solid rgba(201,169,110,0.1);
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 80px; gap: 40px; flex-wrap: wrap;
}
.footer-logo {
  font-family: var(--ff-display);
  font-size: 2rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  font-weight: 400;
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 0.8rem;
  color: var(--stone);
  line-height: 1.7;
}
.footer-links { display: flex; gap: 64px; }
.fl-col {
  display: flex; flex-direction: column; gap: 14px;
}
.fl-col span {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.fl-col a {
  font-size: 0.8rem;
  color: var(--stone);
  transition: color 0.3s;
}
.fl-col a:hover { color: var(--cream); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--stone);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav { padding: 24px 40px; }
  .nav.scrolled { padding: 16px 40px; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-content { padding: 0 40px; }
  .fc1, .fc2 { display: none; }
  .about { padding: 100px 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-img-wrap { height: 480px; }
  .work { padding: 100px 40px; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .card-lg, .card-sm, .card-wide { grid-column: span 1; }
  .card-wide { height: 300px; }
  .card-lg .pc-img, .card-sm .pc-img { height: 360px; }
  .services { padding: 100px 40px; }
  .service-item { grid-template-columns: 60px 1fr; gap: 24px; }
  .si-icon { display: none; }
  .testimonial-section { padding: 100px 40px; }
  .contact { padding: 100px 40px; }
  .footer { padding: 60px 40px 32px; }
  .footer-links { gap: 40px; }
}
@media (max-width: 640px) {
  .hero-content { padding: 0 24px; }
  .hero-scroll-indicator { left: 24px; }
  .about { padding: 80px 24px; }
  .stats-row { flex-direction: column; gap: 28px; }
  .work { padding: 80px 24px; }
  .work-grid { grid-template-columns: 1fr; }
  .card-lg .pc-img, .card-sm .pc-img { height: 300px; }
  .card-wide { height: 240px; }
  .services { padding: 80px 24px; }
  .service-item { grid-template-columns: 1fr; gap: 12px; }
  .si-num { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .contact { padding: 80px 24px; }
  .footer { padding: 50px 24px 28px; }
  .footer-top { flex-direction: column; }
  .footer-links { flex-wrap: wrap; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}