:root {
  --bg: #f3eee6;
  --ink: #16110f;
  --mute: #6f6258;
  --paper: #fffdf8;
  --wine: #7c2f3a;
  --gold: #c4a36a;
  --dark: #100c0b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Outfit, "Segoe UI", sans-serif;
  line-height: 1.6;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
h1, h2, h3, .serif {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  overflow-wrap: break-word;
}
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  color: #fff;
  background: rgba(16, 12, 11, 0.82);
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.header a { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; }
.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.menu-btn {
  display: block;
  position: relative;
  width: 44px; height: 44px;
  border: 0; background: transparent; color: inherit;
  padding: 10px; cursor: pointer; z-index: 70;
}
.menu-btn span {
  display: block; height: 2px; background: currentColor; margin: 6px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-btn.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.nav {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 28px;
  background: var(--dark);
  color: #fff;
  z-index: 55;
}
.nav.open { display: flex; }
.nav a { font-size: 1.15rem; letter-spacing: 0.16em; }
.header .wa {
  border: 1px solid currentColor;
  padding: 8px 14px;
}
.inner-nav { background: var(--dark); }
.inner-nav .nav a.active { color: var(--gold); }
.header.scrolled { background: rgba(16, 12, 11, 0.94); box-shadow: 0 8px 24px rgba(16,12,11,.18); }

.hero {
  position: relative;
  min-height: 100svh;
  color: #fff;
  display: grid;
  align-items: end;
  padding: 96px 16px 72px;
  overflow: hidden;
}
.hero-slides, .hero-slide, .hero-shade { position: absolute; inset: 0; }
.hero-slide {
  background: center 30% / cover no-repeat;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1s ease, transform 8s ease;
}
.hero-slide.is-on { opacity: 1; transform: scale(1); }
.hero-shade {
  background: linear-gradient(180deg, rgba(16,12,11,.28), rgba(16,12,11,.78));
  z-index: 1;
}
.hero-copy { position: relative; z-index: 2; width: 100%; max-width: 720px; }
.hero-kicker { letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.64rem; color: var(--gold); }
.hero h1 {
  font-size: clamp(2.3rem, 11vw, 3.4rem);
  margin: 10px 0 18px;
}
.hero p { max-width: 100%; color: #f2e6dc; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.hero-actions .btn { width: 100%; }
.hero-nav {
  position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.hero-arrow, .car-btn {
  width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.45);
  background: rgba(16,12,11,.25); color: #fff; font-size: 1.4rem; line-height: 1;
  cursor: pointer;
}
.car-btn { border-color: rgba(22,17,15,.2); background: #fff; color: var(--ink); }
.dots { display: flex; gap: 8px; justify-content: center; flex: 1; }
.dots button {
  width: 7px; height: 7px; border-radius: 99px; border: 0;
  background: rgba(255,255,255,.35); padding: 0; cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.dots button.on { width: 22px; background: #fff; }
.dots:not(.light) button { background: rgba(22,17,15,.2); }
.dots:not(.light) button.on { background: var(--wine); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--ink); border: 0; padding: 13px 22px;
  letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem; font-weight: 600;
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.line { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }
.btn.line:hover { background: #fff; color: var(--ink); }
.btn.wine { background: var(--wine); color: #fff; }

.marquee {
  overflow: hidden; background: var(--dark); color: var(--gold);
  padding: 14px 0; white-space: nowrap;
}
.marquee span { display: inline-block; animation: slide 28s linear infinite; letter-spacing: 0.28em; text-transform: uppercase; font-size: 0.78rem; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.section { padding: 56px 0; }
.num { color: var(--wine); letter-spacing: 0.2em; font-size: 0.72rem; text-transform: uppercase; }
.section h2 { font-size: clamp(1.9rem, 8vw, 3rem); margin: 8px 0 16px; }
.lead { color: var(--mute); max-width: 100%; }

.split { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; }
.split-photo, .split-photo.alt { min-height: 220px; background: #ccc center/cover; }

.rail-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 24px; gap: 16px; }
.rail-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rail-actions a { letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.72rem; border-bottom: 1px solid var(--ink); }
.car-btns { display: flex; gap: 6px; }
.rail {
  display: flex; gap: 18px; overflow-x: auto; padding: 0 0 10px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.rail.pages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  overflow: visible;
  padding: 0;
}
.rail.pages .pcard { width: 100%; min-width: 0; flex: none; }
.rail::-webkit-scrollbar { height: 0; }
.pcard {
  flex: 0 0 min(240px, 78vw);
  scroll-snap-align: start;
  background: var(--paper);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pcard .media {
  aspect-ratio: 1;
  background: #efe8dc;
  overflow: hidden;
}
.pcard img {
  width: 100%; height: 100%; object-fit: contain; object-position: center;
  filter: saturate(0.92);
  transition: transform .7s ease;
}
.pcard:hover img { transform: scale(1.03); }
.pcard .body {
  padding: 16px 12px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 132px;
}
.pcard h3 {
  font-size: 1.35rem; margin: 0 0 8px;
  min-height: 2.5em; line-height: 1.25;
}
.price {
  font-size: 0.9rem; letter-spacing: 0.04em;
  min-height: 1.4em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.old { text-decoration: line-through; color: var(--mute); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--wine); color: #fff; padding: 4px 8px; font-size: 0.65rem; letter-spacing: 0.1em; z-index: 2; }
.stars { display: none; }
.pcard .cart, .cart {
  display: inline-block; margin-top: auto; padding-top: 12px; font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  border-bottom: 1px solid var(--ink); padding-bottom: 2px; width: max-content;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span {
  border: 1px solid rgba(22,17,15,.18); padding: 7px 12px;
  font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.socials { display: flex; gap: 20px; margin-top: 22px; flex-wrap: wrap; }
.socials a {
  letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.72rem;
  border-bottom: 1px solid var(--ink); padding-bottom: 2px;
}

.trio { display: grid; grid-template-columns: 1fr; gap: 14px; }
.tile {
  position: relative; color: #fff; min-height: 210px;
  background: #222 center/cover; display: flex; align-items: end; padding: 22px;
  overflow: hidden;
  transition: transform .45s ease;
}
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(0,0,0,.62)); }
.tile:hover { transform: translateY(-3px); }
.tile > * { position: relative; z-index: 1; }
.tile h3 { font-size: 1.7rem; margin: 6px 0 0; }
.tile.tall { min-height: 210px; }

.mosaic { display: grid; grid-template-columns: 1fr; gap: 8px; }
.mosaic img {
  width: 100%; height: 200px; object-fit: cover;
  transition: transform .7s ease, filter .4s ease;
}
.mosaic img:hover { transform: scale(1.04); filter: saturate(1.1); }
.info, .unit-card { transition: transform .35s ease, box-shadow .35s ease; }
.unit-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(16,12,11,.08); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.hero-copy { animation: rise .9s ease both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-copy, .hero-slide, .pcard img, .mosaic img, .btn { animation: none; transition: none; transform: none; }
  .reveal { opacity: 1; }
}

.places { display: grid; grid-template-columns: 1fr; gap: 18px; }
.info, .unit-card {
  background: var(--paper); padding: 20px; border: 1px solid rgba(22,17,15,.08);
}
.unit-card h3 { font-size: 1.7rem; margin: 6px 0 10px; }

.cta {
  background: var(--dark); color: #f6efe6; padding: 64px 16px 48px; text-align: center;
}
.cta-inner { width: min(1180px, 100%); margin: 0 auto; }
.cta h2 { font-size: clamp(2rem, 10vw, 3.2rem); margin: 8px 0 16px; }
.cta p { margin: 0 auto 24px; max-width: 420px; }
.cta .hero-actions { align-items: stretch; justify-content: center; }

footer { background: var(--dark); color: #d8cdc3; padding: 0 16px 28px; }
footer .wrap, .footer-grid, .copy { width: min(1180px, 100%); margin-left: auto; margin-right: auto; }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 28px;
  align-items: start;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.footer-col { display: grid; align-content: start; gap: 10px; }
.footer-col p, .footer-col a { margin: 0; }
.footer-label {
  display: block; color: var(--gold); letter-spacing: 0.14em;
  text-transform: uppercase; font-size: 0.68rem; margin-bottom: 4px;
}
footer strong { color: #fff; font-family: "Cormorant Garamond", serif; font-size: 1.4rem; font-weight: 500; }
footer a { color: #e8d5b5; }
.copy { opacity: .55; margin-top: 28px; font-size: 0.8rem; }

.page-hero {
  position: relative;
  min-height: 34vh; display: grid; align-items: end; padding: 110px 16px 28px;
  color: #fff;
  background: linear-gradient(rgba(16,12,11,.45), rgba(16,12,11,.7)), url("/img/redvelvet.jpg") center/cover;
}
.page-hero .hero-copy { max-width: 720px; }
.page-hero h1 { font-size: clamp(2.4rem, 12vw, 4rem); margin: 0; }

.grid { display: grid; gap: 18px; }
.products { grid-template-columns: 1fr; }
.products .pcard { flex: none; min-width: 0; max-width: none; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 28px; }
.chip {
  background: transparent; border: 1px solid rgba(22,17,15,.2); padding: 8px 16px;
  letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.72rem; cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.chip:hover { transform: translateY(-1px); }
.chip.on { background: var(--ink); color: #fff; }
.empty { color: var(--mute); }

@media (min-width: 700px) and (max-width: 900px) {
  .rail.pages { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 901px) {
  .header {
    padding: 22px 36px;
    background: transparent;
    mix-blend-mode: difference;
  }
  .header.scrolled {
    mix-blend-mode: normal;
    background: rgba(16, 12, 11, 0.9);
    padding: 14px 36px;
  }
  .inner-nav { mix-blend-mode: normal; background: var(--dark); }
  .brand { font-size: 1.35rem; letter-spacing: 0.08em; }
  .menu-btn { display: none; }
  .nav {
    position: static;
    display: flex;
    flex-direction: row;
    inset: auto;
    background: transparent;
    gap: 22px;
  }
  .nav a { font-size: 0.82rem; letter-spacing: 0.14em; }
  .header .wa { mix-blend-mode: normal; }

  .hero {
    min-height: 100vh;
    padding: 0 36px 88px;
  }
  .hero-copy { max-width: 720px; }
  .hero-kicker { letter-spacing: 0.32em; font-size: 0.72rem; }
  .hero h1 { font-size: clamp(3.4rem, 9vw, 8rem); max-width: 14ch; }
  .hero p { max-width: 420px; }
  .hero-actions { flex-direction: row; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; }
  .hero-nav { left: 36px; right: 36px; bottom: 28px; justify-content: flex-start; }
  .hero-nav .dots { flex: 0; }

  .section { padding: 88px 0; }
  .section h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); }
  .lead { max-width: 520px; }
  .split { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .split-photo { min-height: 520px; }
  .split-photo.alt { min-height: 380px; }
  .pcard { flex-basis: 260px; }
  .rail.pages { grid-template-columns: repeat(4, 1fr); }
  .tile { min-height: 280px; padding: 28px; }
  .tile h3 { font-size: 2.2rem; }
  .tile.tall { min-height: 420px; }
  .trio { grid-template-columns: 1.4fr 1fr 1fr; min-height: 420px; }
  .mosaic { grid-template-columns: 1.2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 10px; }
  .mosaic img { height: 100%; }
  .mosaic img:first-child { grid-row: span 2; }
  .places { grid-template-columns: 1fr 1fr; }
  .info, .unit-card { padding: 28px; }
  .unit-card h3 { font-size: 2rem; }
  .cta { padding: 88px 36px 56px; }
  .cta h2 { font-size: clamp(2.4rem, 6vw, 5rem); }
  footer { padding: 0 36px 28px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; gap: 40px; padding-top: 40px; }
  .page-hero { min-height: 42vh; padding: 120px 36px 40px; }
  .page-hero h1 { font-size: clamp(3rem, 7vw, 6rem); }
  .products { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}
