/* ==========================================================================
   MOLTO CALDO — women & fashion
   Quiet luxury: ivory paper, near-black ink, a chocolate accent for the
   season. Thin high-contrast serif for display, a script for the tagline
   (echoing the brand mark), light geometric sans for UI.
   ========================================================================== */
:root {
  --ivory: #F4EFE9;
  --paper: #FBF8F4;
  --ink: #14110F;
  --ink-2: #1E1A17;
  --choco: #3B2620;
  --cocoa: #6B4A3E;
  --milk: #B89A86;
  --stone: #8A8580;
  --line: rgba(20,17,15,.14);
  --line-light: rgba(244,239,233,.22);

  --f-serif: "Cormorant Garamond", "Didot", Georgia, serif;
  --f-script: "Pinyon Script", "Snell Roundhand", cursive;
  --f-ui: "Jost", "Futura", "Helvetica Neue", sans-serif;

  --pad: clamp(20px, 5vw, 72px);
  --ease: cubic-bezier(.2,.7,.1,1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 300 16px/1.6 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
figure { margin: 0; }
body.is-intro { overflow: hidden; }

/* ---------- Shared ---------- */
.eyebrow {
  margin: 0 0 18px;
  font: 500 .7rem/1 var(--f-ui);
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--cocoa);
}
.eyebrow--light { color: var(--milk); }
.title {
  margin: 0;
  font: 300 clamp(3rem, 8vw, 7.5rem)/.92 var(--f-serif);
  letter-spacing: -.01em;
}
.title em, .cta__title em { font-style: italic; color: var(--cocoa); }
.title--light { color: var(--ivory); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border: 1px solid var(--ink); background: var(--ink); color: var(--ivory);
  font: 400 .78rem/1 var(--f-ui); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--ivory); }
.btn--light { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.btn--light:hover { background: transparent; color: var(--ivory); }
.btn--line-light { background: transparent; color: var(--ivory); border-color: var(--line-light); }
.btn--line-light:hover { border-color: var(--ivory); }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row--center { justify-content: center; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.clip { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease); }
.clip img { transform: scale(1.18); transition: transform 1.8s var(--ease); }
.clip.is-in { clip-path: inset(0 0 0 0); }
.clip.is-in img { transform: scale(1); }

/* ---------- Intro curtain ---------- */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--ink); color: var(--ivory);
  transition: transform 1.1s cubic-bezier(.76,0,.24,1);
}
.intro.is-out { transform: translateY(-100%); }
.intro__mark {
  margin: 0; overflow: hidden;
  font: 300 clamp(2.4rem, 8vw, 6rem)/1 var(--f-serif); letter-spacing: .08em;
}
.intro__mark span { display: inline-block; transform: translateY(110%); animation: up 1s var(--ease) forwards; }
.intro__mark span + span { animation-delay: .12s; }
.intro__script {
  margin: 10px 0 0; opacity: 0;
  font: 400 clamp(1.4rem, 3vw, 2.2rem)/1 var(--f-script); color: var(--milk);
  animation: fade .9s .55s forwards;
}
@keyframes up { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px var(--pad);
  color: var(--ivory);
  transition: background .4s, color .4s, padding .4s;
}
.hdr.is-solid { background: rgba(251,248,244,.92); color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding-block: 12px; border-bottom: 1px solid var(--line); }
.hdr__logo { font: 400 1.15rem/1 var(--f-serif); letter-spacing: .22em; text-decoration: none; white-space: nowrap; }
.hdr__nav { display: flex; gap: clamp(18px, 3vw, 40px); }
.hdr__nav a, .hdr__cta {
  font: 400 .72rem/1 var(--f-ui); letter-spacing: .22em; text-transform: uppercase; text-decoration: none;
  position: relative;
}
.hdr__nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: currentColor; transition: right .4s var(--ease); }
.hdr__nav a:hover::after { right: 0; }
.hdr__right { display: flex; align-items: center; gap: 22px; }
.hdr__cta { padding: 10px 16px; border: 1px solid currentColor; }
.lang { display: flex; align-items: center; gap: 4px; font: 400 .72rem/1 var(--f-ui); letter-spacing: .14em; }
.lang button { background: none; border: 0; padding: 4px; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; opacity: .5; }
.lang button[aria-pressed="true"] { opacity: 1; }
.lang span { opacity: .4; }
.burger { display: none; width: 34px; height: 34px; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; position: relative; }
.burger i { position: absolute; left: 6px; right: 6px; height: 1px; background: currentColor; transition: transform .35s, top .35s; }
.burger i:first-child { top: 13px; } .burger i:last-child { top: 21px; }
.hdr.menu-open .burger i:first-child { top: 17px; transform: rotate(45deg); }
.hdr.menu-open .burger i:last-child { top: 17px; transform: rotate(-45deg); }

/* ---------- 1. Hero ---------- */
.hero { position: relative; height: 230vh; background: var(--ink); }
.hero__stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: var(--ivory); }
.hero__bg { position: absolute; inset: -40px; background: url("../assets/hero-poster.jpg") center / cover; filter: blur(38px) brightness(.45) saturate(.9); transform: scale(1.1); }
.hero__frame { position: absolute; inset: 0; overflow: hidden; will-change: clip-path; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.18); will-change: transform; }
.hero__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,17,15,.35), rgba(20,17,15,0) 30%, rgba(20,17,15,0) 55%, rgba(20,17,15,.55)); }
.hero__mark {
  position: absolute; left: 0; right: 0; top: 50%;
  margin: 0; display: flex; justify-content: center; gap: .28em;
  transform: translateY(-50%);
  font: 300 clamp(3.4rem, 13vw, 13rem)/1 var(--f-serif); letter-spacing: .04em;
  pointer-events: none;
}
.hero__w { display: inline-block; will-change: transform; transform-origin: right center; text-shadow: 0 2px 30px rgba(0,0,0,.18); }
.hero__w--r { transform-origin: left center; }
.hero__script {
  position: absolute; left: 50%; top: calc(50% + clamp(2.4rem, 7vw, 7rem));
  margin: 0; transform: translateX(-50%);
  font: 400 clamp(1.5rem, 3.2vw, 3rem)/1 var(--f-script); color: var(--ivory);
  will-change: opacity;
}
.hero__season {
  position: absolute; left: var(--pad); top: 50%; margin: 0;
  transform: translateY(-50%) rotate(-90deg); transform-origin: left center;
  font: 400 .68rem/1 var(--f-ui); letter-spacing: .32em; text-transform: uppercase; opacity: .8;
  translate: 8px 0;
}
.hero__copy { position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(28px, 6vh, 56px); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; opacity: 0; will-change: opacity, transform; }
.hero__lead { margin: 0; font: 300 clamp(1.4rem, 2.4vw, 2.2rem)/1.1 var(--f-serif); font-style: italic; }
.hero__facts { margin: 0; max-width: 28em; text-align: right; font: 400 .7rem/1.8 var(--f-ui); letter-spacing: .22em; text-transform: uppercase; color: var(--milk); }
.hero__hint { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; font: 400 .64rem/1 var(--f-ui); letter-spacing: .3em; text-transform: uppercase; }
.hero__hint i { width: 1px; height: 38px; background: linear-gradient(var(--ivory), transparent); animation: hint 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes hint { 0% { transform: scaleY(0); } 70% { transform: scaleY(1); opacity: 1; } 100% { opacity: 0; } }

/* ---------- Ribbon ---------- */
.ribbon { overflow: hidden; background: var(--choco); color: var(--ivory); padding: 18px 0; }
.ribbon__track { display: flex; width: max-content; gap: 34px; animation: marquee 38s linear infinite; }
.ribbon span { font: 300 clamp(1.2rem, 2vw, 1.6rem)/1 var(--f-serif); font-style: italic; white-space: nowrap; }
.ribbon b { font-weight: 400; color: var(--milk); font-size: .8rem; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 2. Manifesto ---------- */
.manifesto { padding: clamp(90px, 16vh, 180px) var(--pad); max-width: 1320px; margin: 0 auto; }
.manifesto__text { margin: 0 0 clamp(60px, 10vh, 110px); font: 300 clamp(1.9rem, 4.4vw, 4.2rem)/1.14 var(--f-serif); letter-spacing: -.005em; }
.manifesto__text .w { opacity: .14; transition: opacity .25s linear; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.facts div { padding: 28px 24px 0 0; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font: 300 clamp(2.4rem, 4vw, 3.6rem)/1 var(--f-serif); color: var(--choco); }
.facts dd { margin: 10px 0 0; font: 400 .72rem/1.5 var(--f-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--stone); }

/* ---------- 3. Lookbook (horizontal) ---------- */
.looks { position: relative; background: var(--ivory); }
.looks__stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.looks__head { position: absolute; left: var(--pad); top: clamp(84px, 13vh, 130px); max-width: 520px; z-index: 2; pointer-events: none; }
.looks__intro { margin: 18px 0 0; max-width: 30em; color: var(--ink-2); }
.looks__track { display: flex; align-items: flex-end; gap: clamp(18px, 2.4vw, 36px); padding-left: calc(var(--pad) + min(560px, 40vw)); padding-right: var(--pad); padding-top: 8vh; will-change: transform; }
.look { flex: 0 0 auto; width: clamp(240px, 24vw, 380px); }
.look:nth-child(even) { margin-bottom: 9vh; }
.look__img { overflow: hidden; aspect-ratio: 2 / 3; background: var(--milk); }
.look__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.look figcaption { display: flex; gap: 14px; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 14px; }
.look figcaption span { font: 400 .7rem/1 var(--f-ui); letter-spacing: .2em; color: var(--cocoa); }
.look figcaption b { font: 400 1.35rem/1.1 var(--f-serif); font-style: italic; }
.look--end { width: clamp(240px, 22vw, 340px); align-self: center; display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.look--end p { margin: 0; font: 300 clamp(1.8rem, 2.8vw, 2.6rem)/1.1 var(--f-serif); }
.looks__bar { position: absolute; left: var(--pad); right: var(--pad); bottom: 28px; height: 1px; background: var(--line); }
.looks__bar i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }

/* ---------- 4. Noir ---------- */
.noir { background: var(--ink); color: var(--ivory); padding: clamp(100px, 16vh, 170px) var(--pad) clamp(120px, 20vh, 220px); overflow: hidden; }
.noir__head { max-width: 1320px; margin: 0 auto clamp(50px, 9vh, 90px); display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 30px; }
.noir__head .eyebrow { grid-column: 1 / -1; margin: 0; }
.noir__text { margin: 0; max-width: 24em; justify-self: end; font: 300 clamp(1.3rem, 2vw, 1.8rem)/1.3 var(--f-serif); font-style: italic; color: #d9d0c7; }
.noir__grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 30px); align-items: start; }
.noir__col { display: flex; flex-direction: column; gap: clamp(14px, 2vw, 30px); will-change: transform; }
.noir__col--mid { margin-top: 14vh; }
.noir__grid figure { overflow: hidden; }
.noir__grid img { width: 100%; height: auto; transition: transform 1.4s var(--ease); }
.noir__grid figure:hover img { transform: scale(1.04); }

/* ---------- Rosso ---------- */
.rosso { position: relative; overflow: hidden; background: #1a0d0c; color: var(--ivory); display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(30px, 6vw, 110px); padding: clamp(100px, 16vh, 180px) var(--pad); }
.rosso__word { position: absolute; left: 0; top: 50%; margin: 0; transform: translateY(-50%); white-space: nowrap; font: 300 clamp(10rem, 34vw, 34rem)/.8 var(--f-serif); font-style: italic; color: #8e1a17; opacity: .28; pointer-events: none; will-change: transform; }
.rosso__img { position: relative; max-width: 560px; justify-self: end; width: 100%; }
.rosso__img img { width: 100%; height: auto; }
.rosso__text { position: relative; max-width: 460px; }
.rosso__text .title em { color: #d24a3c; }
.rosso__text p:not(.eyebrow) { margin: 26px 0 0; font: 300 clamp(1.3rem, 2vw, 1.8rem)/1.35 var(--f-serif); font-style: italic; color: #e8d9d2; }

/* ---------- Shop the look ---------- */
.shop { padding: clamp(100px, 16vh, 180px) var(--pad); max-width: 1400px; margin: 0 auto; }
.shop__head { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 30px; margin-bottom: clamp(44px, 8vh, 80px); }
.shop__head .eyebrow { grid-column: 1 / -1; margin: 0; }
.shop__note { margin: 0; justify-self: end; max-width: 26em; color: var(--stone); font-size: .95rem; }
.shop__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(26px, 3vw, 48px) clamp(18px, 2.4vw, 36px); }
.card { display: flex; flex-direction: column; }
.card:nth-child(3n+2) { transition-delay: .1s; } .card:nth-child(3n) { transition-delay: .2s; }
.card__pic { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--ivory); cursor: pointer; overflow: hidden; aspect-ratio: 10 / 23; }
.card__pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1.2s var(--ease), clip-path .9s var(--ease); }
.card__items { object-fit: contain !important; object-position: 50% 50% !important; background: #ece5dc; clip-path: inset(0 0 0 100%); }
.card__pic:hover .card__look, .card.is-flip .card__look { transform: scale(1.06); }
.card__pic:hover .card__items, .card.is-flip .card__items { clip-path: inset(0 0 0 0); }
.card__hint { position: absolute; left: 14px; bottom: 14px; padding: 8px 12px; background: rgba(251,248,244,.92); color: var(--ink); font: 500 .62rem/1 var(--f-ui); letter-spacing: .2em; text-transform: uppercase; transition: opacity .4s; }
.card__pic:hover .card__hint, .card.is-flip .card__hint { opacity: 0; }
.card__title { margin: 18px 0 10px; font: 400 1.7rem/1.1 var(--f-serif); font-style: italic; }
.card__list { list-style: none; margin: 0; padding: 0; }
.card__list li { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; font-size: .92rem; }
.card__list i { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.card__list b, .card__total b { font-weight: 400; white-space: nowrap; }
.card small { font-size: .78em; color: var(--stone); }
.card__total { display: flex; justify-content: space-between; margin: 10px 0 18px; padding-top: 12px; border-top: 1px solid var(--ink); font: 500 .72rem/1.4 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; }
.card__total b { font: 400 1.05rem/1 var(--f-ui); letter-spacing: 0; text-transform: none; }
.card__btn { margin-top: auto; align-self: flex-start; }

/* ---------- 5. Boutique ---------- */
.boutique { padding: clamp(100px, 16vh, 180px) var(--pad); max-width: 900px; margin: 0 auto; text-align: center; }
.boutique .row { justify-content: center; }
.boutique__text p:not(.eyebrow) { margin-left: auto !important; margin-right: auto !important; }
.boutique__pics { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.bpic { overflow: hidden; aspect-ratio: 9 / 16; }
.bpic img { width: 100%; height: 100%; object-fit: cover; }
.bpic--2 { margin-top: 12vh; transition-delay: .15s; }
.bpic--3 { margin-top: 5vh; transition-delay: .3s; }
.bpic--2 img { transition-delay: .15s; } .bpic--3 img { transition-delay: .3s; }
.boutique__text p:not(.eyebrow) { margin: 26px 0 32px; max-width: 30em; font-size: 1.05rem; color: var(--ink-2); }

/* ---------- 6. CTA ---------- */
.cta { background: var(--choco); color: var(--ivory); text-align: center; padding: clamp(100px, 18vh, 200px) var(--pad); }
.cta__title { margin: 0 0 26px; font: 300 clamp(2.8rem, 7.5vw, 7rem)/.98 var(--f-serif); }
.cta__title em { color: var(--milk); }
.cta__text { margin: 0 auto 40px; max-width: 32em; color: #e3d6cc; }

/* ---------- Footer ---------- */
.contacts { max-width: 1200px; margin: 0 auto 80px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-light); text-align: left; }
.contact { display: flex; flex-direction: column; gap: 8px; padding: 26px 22px; border-bottom: 1px solid var(--line-light); text-decoration: none; transition: background .3s; }
.contact:not(:nth-child(3n+1)) { border-left: 1px solid var(--line-light); }
.contact:hover { background: rgba(244,239,233,.05); }
.contact span { font: 500 .66rem/1 var(--f-ui); letter-spacing: .24em; text-transform: uppercase; color: var(--milk); }
.contact b { font: 300 clamp(1.15rem, 1.6vw, 1.45rem)/1.2 var(--f-serif); color: var(--ivory); word-break: break-word; }
@media (max-width: 699px) { .contacts { grid-template-columns: 1fr 1fr; } .contact:not(:nth-child(3n+1)) { border-left: 0; } .contact:nth-child(even) { border-left: 1px solid var(--line-light); } .contact { padding: 20px 14px; } }
.ftr { background: var(--ink); color: var(--ivory); text-align: center; padding: 70px var(--pad) 40px; }
.ftr__mark { margin: 0; font: 300 clamp(2.8rem, 11vw, 10rem)/1 var(--f-serif); letter-spacing: .06em; }
.ftr__script { margin: 6px 0 40px; font: 400 clamp(1.3rem, 2.6vw, 2.2rem)/1 var(--f-script); color: var(--milk); }
.ftr__copy { margin: 0; font: 400 .7rem/1 var(--f-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--stone); }

/* ---------- Tablet / phone ---------- */
@media (max-width: 900px) {
  .hdr__nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: center; gap: 30px;
    background: var(--ink); color: var(--ivory);
    opacity: 0; pointer-events: none; transition: opacity .4s;
  }
  .hdr__nav a { font: 300 2rem/1 var(--f-serif); letter-spacing: .08em; text-transform: none; }
  .hdr.menu-open .hdr__nav { opacity: 1; pointer-events: auto; }
  .hdr.menu-open { color: var(--ivory); background: transparent; border-color: transparent; }
  .burger { display: block; }
  .hdr__cta { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts div { padding-bottom: 26px; }
  .noir__head { grid-template-columns: 1fr; }
  .noir__text { justify-self: start; }
  .rosso { grid-template-columns: 1fr; }
  .rosso__img { justify-self: center; }
  .shop__head { grid-template-columns: 1fr; }
  .shop__note { justify-self: start; }
  .shop__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 699px) {
  .hero__season { display: none; }
  .hero__mark { font-size: 11vw; }
  .hero__copy { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero__facts { text-align: left; }
  .hero__hint { display: none; }
  .looks__head { position: relative; left: 0; top: 0; padding: 92px var(--pad) 0; }
  .looks__stick { justify-content: flex-start; }
  .looks__track { padding-left: var(--pad); padding-top: 26px; align-items: flex-start; }
  .look { width: 64vw; }
  .look:nth-child(even) { margin-bottom: 0; margin-top: 5vh; }
  .look__img { aspect-ratio: 3 / 4.3; }
  .noir__grid { grid-template-columns: 1fr 1fr; }
  .noir__col:last-child { display: none; }
  .noir__col--mid { margin-top: 8vh; }
  .shop__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 10px; scrollbar-width: none; }
  .shop__grid::-webkit-scrollbar { display: none; }
  .card { flex: 0 0 78vw; scroll-snap-align: start; }
  .rosso__word { font-size: 52vw; top: 18%; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .reveal, .clip, .clip img { opacity: 1; transform: none; clip-path: none; transition: none; }
  .ribbon__track { animation: none; }
  .manifesto__text .w { opacity: 1; }
  .hero { height: auto; } .hero__stick { position: relative; }
  .hero__img { transform: none; } .hero__copy { opacity: 1; }
  .looks__stick { position: relative; height: auto; padding: 100px 0; }
  .looks__track { overflow-x: auto; transform: none !important; padding-left: var(--pad); }
  .looks__head { position: relative; left: 0; top: 0; padding: 0 var(--pad) 30px; }
}
