/*
 * Home page (index.html): photo-led promo style, burgundy palette.
 * Loaded after styles.css; every rule is scoped to .mz or .mz-* blocks.
 */

/* ---------- Hero: portrait right, copy left, giant wordmark at the bottom ---------- */
.mz-hero { position: relative; overflow: hidden; background: var(--night); color: var(--cream);
  min-height: max(700px, 100vh); padding-top: var(--hdr-h, 103px); display: flex; flex-direction: column; }
/* header floats over the hero until the page is scrolled */
.mz .site-header { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: rgba(224,194,154,.2); color: var(--cream); }
.mz .site-header .main-nav a { color: inherit; }
.mz .site-header:not(.is-scrolled) .logo--dark { display: none; }
.mz .site-header:not(.is-scrolled) .logo--light { display: block; }
.mz .site-header.is-scrolled { background: var(--ivory); border-bottom-color: var(--line); color: var(--ink); }
.mz-hero__photo { position: absolute; top: 0; right: 0; bottom: 0; width: 58%; margin: 0; clip-path: inset(0 0 0 -2px); }   /* keeps the parallax-zoomed photo inside its column */
.mz-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
/* warm the beige photo towards wine, then fade it into the night background */
.mz-hero__photo::before { content: ""; position: absolute; inset: 0; background: var(--wine); mix-blend-mode: soft-light; opacity: .55; }
.mz-hero__photo::after { content: ""; position: absolute; inset: 0 0 0 -2px;
  background: linear-gradient(90deg, var(--night) 0%, var(--night) 3%, rgba(34,4,10,.6) 18%, rgba(34,4,10,0) 42%),
              linear-gradient(0deg, rgba(34,4,10,.92) 0%, rgba(34,4,10,0) 38%); }

.mz-hero__top { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 24px; width: 100%;
  padding-top: 22px; font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--cream-muted); }
.mz-hero__copy { position: relative; z-index: 2; width: 100%; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px; padding-top: 40px; padding-bottom: 40px; }
.mz-hero__lead { margin: 0; max-width: 440px; font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.2; color: var(--cream); }
.mz-hero__lead em { color: var(--gold); font-weight: 400; }

.mz-hero__mark { position: relative; z-index: 2; margin: 0 0 -.16em; text-align: center; white-space: nowrap;
  font-family: var(--serif); font-weight: 300; font-size: 19.3vw; line-height: .9; letter-spacing: -.01em; color: var(--cream); }

/* ---------- Manifesto ---------- */
.mz-manifesto { padding: 120px 0 110px; text-align: center; }
.mz-manifesto__text { margin: 0 auto; max-width: 980px; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.3vw, 50px); line-height: 1.18; letter-spacing: .01em; color: var(--ink); }
.mz-manifesto__text em { font-weight: 300; color: var(--wine); text-transform: none; }
.mz-manifesto__sign { margin: 28px 0 0; font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

/* ---------- Catalog: rose studio backdrop instead of ivory ---------- */
.mz-catalog { padding-top: 40px; }
.mz-grid { grid-template-columns: repeat(4, 1fr); }
.mz-grid.product-grid--few { grid-template-columns: repeat(auto-fill, minmax(240px, 360px)); }
.mz .mz-grid .card__link.stage { background: radial-gradient(120% 95% at 50% 38%, #FAF1EE 0%, #EBD9D8 52%, #CFB0B4 100%); }

/* ---------- Spec sheet ---------- */
.mz-spec { position: relative; overflow: hidden; padding: 110px 0 120px; text-align: center; border-top: 1px solid var(--line); }
.mz-spec__water { position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%); z-index: 0; pointer-events: none; white-space: nowrap;
  font-family: var(--serif); font-weight: 300; font-size: 19vw; line-height: 1; color: rgba(110,26,46,.05); }
.mz-spec .container { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.mz-spec__title { margin-top: 22px; }
.mz-spec__grid { width: 100%; max-width: 1080px; margin: 36px 0 44px; display: grid; grid-template-columns: 1fr minmax(240px, 400px) 1fr; align-items: center; gap: 48px; }
.mz-spec__col { margin: 0; display: flex; flex-direction: column; gap: 56px; text-align: left; }
.mz-spec__col--left { text-align: right; }
.mz-spec__item dt { font-size: 11px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--muted-2); }
.mz-spec__item dd { margin: 8px 0 0; font-family: var(--serif); font-size: 26px; line-height: 1.2; color: var(--ink); }
.mz-spec__art svg { width: 100%; height: auto; overflow: visible; }
.mz-spec__art img { width: 100%; height: auto; mix-blend-mode: multiply; }
/* a photo gets an ivory backing (multiply needs an opaque backdrop) that fades out at the edges */
.mz-spec__art:has(img) { background: var(--ivory); -webkit-mask-image: radial-gradient(closest-side, #000 78%, transparent 100%); mask-image: radial-gradient(closest-side, #000 78%, transparent 100%); }

/* ---------- The stones: macro photo + text on night ---------- */
/* ---------- Stone cinema: full-width photo on black, breathing zoom, light sweep, glints ---------- */
.mz-stone { position: relative; background: #000; color: var(--cream); }
/* the stage keeps the photo's own proportions so the glints stay on the facets */
.mz-stone__stage { position: relative; overflow: hidden; aspect-ratio: 1535 / 1024; width: min(100%, 150vh); margin-left: auto; }   /* never taller than the screen; extra width is black anyway */
.mz-stone__media { position: absolute; inset: 0; animation: stoneBreathe 18s ease-in-out infinite alternate; transform-origin: 62% 52%; }
.mz-stone__media img, .mz-stone__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@keyframes stoneBreathe { from { transform: scale(1.06); } to { transform: scale(1.14) translate(-1.2%, .8%); } }
/* a band of light passes over the stone; overlay blending leaves the black background black */
.mz-stone__sweep { position: absolute; inset: -30% -60%; pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.75) 50%, transparent 58%);
  animation: stoneSweep 7.5s cubic-bezier(.45,0,.25,1) 1.2s infinite; translate: -60% 0; }
@keyframes stoneSweep { 0% { translate: -60% 0; } 55%, 100% { translate: 60% 0; } }
/* four-point star glints */
.mz-glint { position: absolute; left: var(--x); top: var(--y); width: calc(64px * var(--s)); height: calc(64px * var(--s)); translate: -50% -50%;
  pointer-events: none; mix-blend-mode: screen; opacity: 0; animation: glint 5.2s ease-in-out var(--d) infinite;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0, rgba(255,250,240,.35) 9%, transparent 26%); }
.mz-glint::before, .mz-glint::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.95) 50%, transparent); }
.mz-glint::after { rotate: 90deg; }
@keyframes glint { 0%, 100% { opacity: 0; scale: .2; rotate: 0deg; } 10% { opacity: 1; scale: 1; rotate: 25deg; } 22% { opacity: 0; scale: .3; rotate: 45deg; } }
/* darkens the left side for the text */
.mz-stone__shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.6) 26%, rgba(0,0,0,0) 52%), linear-gradient(0deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 30%); }
.mz-stone__text { position: absolute; top: 0; bottom: 0; left: 0; z-index: 2; max-width: 600px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 26px;
  padding: 0 0 0 max(48px, calc((100vw - var(--container)) / 2 + 48px)); }
.mz-stone__text p { margin: 0; max-width: 440px; color: var(--cream-muted); }
.mz-stone .display em { color: var(--gold); }
.mz-link--gold { color: var(--gold); }

/* ---------- Closing banner: framed photo + text on a deep wine gradient ---------- */
.mz-final { position: relative; overflow: hidden; text-align: left; padding: 130px 0;
  background: radial-gradient(90% 120% at 22% 40%, #5A1222 0%, #3A0812 45%, var(--night) 100%); }
/* faint wordmark watermark behind the text, echoing the spec sheet */
.mz-final::after { content: "TSVETKOV"; position: absolute; right: -2vw; bottom: -.18em; pointer-events: none; white-space: nowrap;
  font-family: var(--serif); font-weight: 300; font-size: 15vw; line-height: 1; color: rgba(224,194,154,.045); }
.mz-final__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(280px, 430px) 1fr; align-items: center; gap: clamp(56px, 8vw, 128px); }

.mz-final__photo { position: relative; margin: 0 0 0 26px; }
/* gold hairline frame, offset behind the photo */
.mz-final__photo::before { content: ""; position: absolute; inset: -26px 26px 26px -26px; border: 1px solid rgba(224,194,154,.45); pointer-events: none; }
.mz-final__frame { position: relative; overflow: hidden; aspect-ratio: 426 / 547; box-shadow: 0 30px 60px rgba(10,1,3,.45); }
.mz-final__frame img { width: 100%; height: 100%; object-fit: cover; }
/* warm the light photo slightly towards wine so it sits in the section */
.mz-final__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(110,26,46,0) 55%, rgba(58,8,18,.35) 100%), rgba(110,26,46,.10); mix-blend-mode: multiply; pointer-events: none; }

.mz-final__body { display: flex; flex-direction: column; gap: 48px; max-width: 560px; }
.mz-final__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.mz-final__copy p { font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gold) !important; }
.mz-final__news { display: flex; flex-direction: column; gap: 14px; padding-top: 40px; border-top: 1px solid rgba(224,194,154,.25); }
.mz-final form { max-width: none; }

/* ---------- Scroll motion (home only; driven by initScrollFx() in site.js) ---------- */
/* section titles rise out from behind an invisible edge when their block is revealed */
.mz h2.display { clip-path: inset(0 -5% 105% -5%); translate: 0 32px; transition: clip-path 1.1s var(--ease-wipe) .12s, translate 1.1s var(--ease) .12s; }
.mz .is-in h2.display, .mz h2.display.is-in { clip-path: inset(-12% -5% -25% -5%); translate: 0 0; }
/* manifesto words light up one by one while the section passes */
.mz-manifesto__text.is-split .mw { opacity: .14; transition: opacity .5s var(--ease); }
.mz-manifesto__text.is-split .mw.on { opacity: 1; }
/* parallax targets get their own layer */
.mz-hero__photo img, .mz-stone__media, .mz-final__frame, .mz-spec__water { will-change: translate; }
@media (prefers-reduced-motion: reduce) {
  .mz h2.display { clip-path: none; translate: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .mz-grid { grid-template-columns: repeat(2, 1fr); }
  .mz-final__inner { grid-template-columns: minmax(240px, 340px) 1fr; gap: 56px; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .mz-hero { min-height: 0; padding-top: var(--hdr-h, 61px); }
  .mz-hero__photo { position: relative; width: 100%; aspect-ratio: 4 / 5; order: 1; }
  .mz-hero__photo::after { background: linear-gradient(0deg, var(--night) 0%, rgba(34,4,10,0) 45%); }
  .mz-hero__top { position: absolute; top: var(--hdr-h, 61px); left: 0; order: 0; font-size: 10px; letter-spacing: .18em; color: var(--cream); }
  .mz-hero__top span:nth-child(2) { display: none; }
  .mz-hero__mark { order: 2; margin: -.42em 0 0; font-size: 19.4vw; }
  .mz-hero__copy { order: 3; padding-top: 28px; padding-bottom: 56px; gap: 22px; }

  .mz-manifesto { padding: 80px 0 64px; }
  .mz-grid { gap: 40px 16px; }
  .mz-grid.product-grid--few { grid-template-columns: repeat(2, 1fr); }

  .mz-spec { padding: 80px 0; }
  .mz-spec__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .mz-spec__art { grid-column: 1 / -1; order: -1; max-width: 260px; margin: 0 auto; }
  .mz-spec__col, .mz-spec__col--left { text-align: center; gap: 28px; }
  .mz-spec__item dd { font-size: 21px; }

  .mz-stone__shade { background: linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 35%); }
  .mz-stone__text { position: static; max-width: none; padding: 40px 20px 72px; }
  .mz-glint { width: calc(34px * var(--s)); height: calc(34px * var(--s)); }

  .mz-final { padding: 88px 0 96px; }
  .mz-final__inner { grid-template-columns: 1fr; gap: 64px; }
  .mz-final__photo { max-width: 340px; margin: 18px 0 0 18px; }
  .mz-final__photo::before { inset: -18px 18px 18px -18px; }
  .mz-final::after { font-size: 26vw; }
}
