/* =========================================================
   Casari Home Design — Motion preview
   Palette: editorial charcoal + brass + cream + teal accent
   ========================================================= */
:root {
  --char-0: #0a0908;       /* near-black */
  --char-1: #14110f;       /* hero base */
  --char-2: #1d1a17;       /* card base */
  --char-3: #2a2622;       /* divider */
  --cream:  #ece4d4;       /* primary text on dark */
  --cream-soft: #c9bfa8;
  --brass: #b8893f;        /* accent */
  --brass-bright: #d6a85a;
  --teal: #2f5d57;         /* legacy accent, demoted */
  --warm-light: #f5d9a4;   /* sunset gold for light bleed */
  --serif: "Cormorant Garamond", "EB Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--char-1);
  color: var(--cream);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

/* ---------- typography helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: 1.25rem;
}
.eyebrow.centered { text-align: center; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
h1 em { font-style: italic; color: var(--brass-bright); }

/* =========================================================
   NAV
========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.4rem 2.5rem;
  mix-blend-mode: difference;
  color: var(--cream);
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.wordmark--lg { font-size: 3.5rem; line-height: 1; letter-spacing: -0.02em; }
.wordmark-mark {
  width: 6px; height: 6px;
  background: var(--brass-bright);
  border-radius: 50%;
}
.links { display: flex; gap: 2rem; font-size: 0.82rem; letter-spacing: 0.06em; }
.links a { opacity: 0.78; transition: opacity 0.2s; }
.links a:hover { opacity: 1; }
.cta-line {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.82rem; letter-spacing: 0.06em;
  border-bottom: 1px solid var(--cream);
  padding-bottom: 4px;
}

/* =========================================================
   HERO — Kling V3 cinematic plate
========================================================= */
.hero {
  position: relative;
  height: 180vh;
  background: var(--char-0);
  overflow: hidden;
}
.hero-video, .hero-vignette, .hero-copy, .scroll-cue {
  position: absolute; inset: 0;
}
.hero-video {
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  filter: saturate(1.05) contrast(1.04);
}
.hero-vignette {
  z-index: 10;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,9,8,0.55) 0%, rgba(10,9,8,0.05) 22%, rgba(10,9,8,0.05) 65%, rgba(10,9,8,0.85) 100%),
    radial-gradient(ellipse at center, rgba(0,0,0,0) 35%, rgba(0,0,0,0.55) 100%);
}

.hero-copy {
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 max(2.5rem, 6vw);
  position: sticky;
  top: 0;
  height: 100vh;
  pointer-events: none;
}
.hero-copy h1 {
  font-size: clamp(3rem, 8.5vw, 7.5rem);
  line-height: 0.98;
  margin-bottom: 1.5rem;
  max-width: 18ch;
  text-shadow: 0 2px 30px rgba(0,0,0,0.6);
}
.hero-copy .lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  max-width: 38rem;
  opacity: 0.88;
  margin-bottom: 2rem;
}
.hero-meta {
  display: flex; gap: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-soft);
  flex-wrap: wrap;
}
.hero-meta .dot { width: 4px; height: 4px; background: var(--brass-bright); border-radius: 50%; align-self: center; }

.scroll-cue {
  z-index: 25;
  top: auto; bottom: 2.5rem; left: 0; right: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-soft);
  opacity: 0.7;
}
.scroll-cue-line {
  width: 1px; height: 50px;
  background: linear-gradient(180deg, var(--brass-bright), transparent);
  animation: scroll-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(1); transform-origin: top; opacity: 0.7; }
  50% { transform: scaleY(1.6); opacity: 1; }
}

/* =========================================================
   MARQUEE
========================================================= */
.marquee {
  background: var(--char-0);
  border-top: 1px solid var(--char-3);
  border-bottom: 1px solid var(--char-3);
  overflow: hidden;
  padding: 1.4rem 0;
}
.marquee-track {
  display: flex; gap: 3rem; align-items: center;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-soft);
}
.marquee-dot { width: 4px; height: 4px; background: var(--brass-bright); border-radius: 50%; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* =========================================================
   MANIFESTO
========================================================= */
.manifesto {
  padding: clamp(6rem, 12vh, 10rem) 2rem;
  text-align: center;
  background: var(--char-1);
  max-width: 60rem;
  margin: 0 auto;
}
.manifesto h2 {
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.manifesto-sub {
  max-width: 36rem;
  margin: 0 auto;
  opacity: 0.78;
  font-size: 1.05rem;
}

/* =========================================================
   PRODUCTS
========================================================= */
.product {
  padding: clamp(5rem, 10vh, 9rem) max(2rem, 5vw);
  border-top: 1px solid var(--char-3);
  background: var(--char-1);
}
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  max-width: 90rem;
  margin: 0 auto;
}
.product--inverted .product-grid > .product-copy { order: 2; }
.product-copy h3 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 1.25rem;
  line-height: 1.05;
}
.product-copy > p {
  opacity: 0.8;
  margin-bottom: 1.75rem;
  max-width: 32rem;
  font-size: 1.02rem;
}
.ticks { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.ticks li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.95rem;
  opacity: 0.86;
}
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 0.55rem;
  width: 10px; height: 1px;
  background: var(--brass-bright);
}

/* visual cards */
.card-plate {
  aspect-ratio: 4/5;
  border-radius: 4px;
  background: var(--char-2);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--char-3);
}

/* blinds card */
.card-plate--blinds {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(245,217,164,0.6), rgba(20,17,15,0) 60%),
    linear-gradient(180deg, #3a2a1a, #14110f 80%);
}
.card-blinds {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
}
.card-blinds span {
  background: linear-gradient(180deg, #1a1612, #0c0a08, #1a1612);
  border-right: 1px solid rgba(0,0,0,0.4);
  transform-origin: top center;
  transform: scaleY(1);
  transition: transform 1.2s cubic-bezier(0.7,0,0.2,1);
  transition-delay: calc(var(--n) * 0.06s);
}
.card-plate--blinds:hover .card-blinds span { transform: scaleY(0.05); }

/* kitchen card */
.card-plate--kitchen {
  background:
    radial-gradient(ellipse at 50% 70%, rgba(245,217,164,0.18), rgba(20,17,15,0) 70%),
    linear-gradient(180deg, #1d1a17 0%, #14110f 100%);
}
.card-kitchen-counter {
  position: absolute; left: 0; right: 0; bottom: 30%;
  height: 8%;
  background: linear-gradient(180deg, #c9bfa8, #8a7e64);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
.card-kitchen-pendant {
  position: absolute; top: 0; left: 30%;
  width: 2px; height: 35%;
  background: linear-gradient(180deg, transparent 0%, var(--char-3) 100%);
}
.card-kitchen-pendant::after {
  content: ""; position: absolute; bottom: 0; left: 50%;
  transform: translate(-50%, 50%);
  width: 22px; height: 30px;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: var(--brass);
  box-shadow: 0 0 30px var(--warm-light), inset 0 -8px 12px var(--brass-bright);
}
.card-kitchen-pendant--2 { left: auto; right: 30%; height: 28%; }

/* closet card */
.card-plate--closet {
  background: linear-gradient(180deg, #1d1a17 0%, #14110f 100%);
}
.card-closet-rod {
  position: absolute; top: 25%; left: 12%; right: 12%;
  height: 1px;
  background: var(--brass);
  box-shadow: 0 0 8px var(--brass);
}
.card-closet-shelf {
  position: absolute; top: 60%; left: 12%; right: 12%;
  height: 4px;
  background: linear-gradient(180deg, var(--cream-soft), #6e6450);
}
.card-closet-shelf--2 { top: 78%; }
.card-closet-glow {
  position: absolute; top: 20%; left: 50%; transform: translateX(-50%);
  width: 70%; height: 60%;
  background: radial-gradient(ellipse, rgba(245,217,164,0.18), transparent 70%);
  pointer-events: none;
}

/* =========================================================
   PROCESS
========================================================= */
.process {
  padding: clamp(5rem, 10vh, 9rem) max(2rem, 5vw);
  border-top: 1px solid var(--char-3);
  text-align: center;
}
.process h2 {
  font-size: clamp(2rem, 5vw, 4.25rem);
  margin-bottom: 4rem;
}
.process-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  max-width: 80rem;
  margin: 0 auto;
  text-align: left;
}
.process-list li {
  border-top: 1px solid var(--char-3);
  padding-top: 1.25rem;
}
.process-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--brass-bright);
  display: block;
  margin-bottom: 1.25rem;
}
.process-list h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.process-list p { opacity: 0.78; font-size: 0.95rem; }

/* =========================================================
   TESTIMONIALS
========================================================= */
.testimonials {
  padding: clamp(5rem, 10vh, 9rem) max(2rem, 5vw);
  border-top: 1px solid var(--char-3);
  background: var(--char-0);
}
.testimonials .eyebrow { margin-bottom: 3rem; }
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  max-width: 90rem;
  margin: 0 auto;
}
.quotes figure { padding: 1.5rem; }
.quotes blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.45;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
}
.quotes blockquote::before {
  content: "";
  position: absolute; left: 0; top: 0.4em;
  width: 2px; height: calc(100% - 0.8em);
  background: var(--brass-bright);
}
.quotes figcaption {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

/* =========================================================
   CTA
========================================================= */
.cta {
  padding: clamp(6rem, 12vh, 10rem) 2rem;
  text-align: center;
  border-top: 1px solid var(--char-3);
  background: linear-gradient(180deg, var(--char-1) 0%, var(--char-0) 100%);
}
.cta h2 {
  font-size: clamp(2rem, 5vw, 4.25rem);
  margin-bottom: 1.25rem;
  max-width: 18ch;
  margin-inline: auto;
  line-height: 1.05;
}
.cta > p {
  max-width: 36rem;
  margin: 0 auto 2.75rem;
  opacity: 0.78;
}
.cta-buttons { display: inline-flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.cta-solid {
  background: var(--brass);
  color: var(--char-0);
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}
.cta-solid:hover { background: var(--brass-bright); }
.cta-ghost {
  border: 1px solid var(--char-3);
  color: var(--cream);
  padding: 1rem 2rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
  transition: border-color 0.2s;
}
.cta-ghost:hover { border-color: var(--brass-bright); }

/* =========================================================
   FOOTER
========================================================= */
.footer {
  background: var(--char-0);
  border-top: 1px solid var(--char-3);
  padding: 4rem 2.5rem 2.5rem;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 90rem;
  margin: 0 auto;
}
.footer-meta {
  display: flex; flex-direction: column; gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream-soft);
}

/* =========================================================
   GSAP REVEAL
========================================================= */
.reveal { opacity: 0; transform: translateY(30px); }
.reveal.is-in { opacity: 1; transform: translateY(0); transition: opacity 1s ease, transform 1s ease; }

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 880px) {
  .nav { padding: 1rem 1.25rem; gap: 0.75rem; }
  .links { display: none; }
  .hero { height: 180vh; }
  .hero-copy { padding: 0 1.5rem; }
  .product-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .product--inverted .product-grid > .product-copy { order: 0; }
  .footer-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-video { display: none; }
  .hero { background: linear-gradient(180deg, #2a1f15 0%, #8a5e30 50%, #14110f 100%); }
  .reveal { opacity: 1 !important; transform: none !important; }
}
