/* NEPIDON V2 — layer over the V1 stylesheet.
   Straight photographs everywhere (no arches), the signature as heritage mark, black for immersion,
   sage (stone) for breathing, ivory for reading and buying. Filigree appears only through real Wix photographs. */

:root { --black: #0b0c0b; --hair: rgba(18,20,18,.12); }
.muted { color: var(--ink-3); }
.small { font-size: .8125rem; }
.selectable { user-select: all; font-weight: 500; }
.center { text-align: center; display: grid; justify-items: center; gap: 22px; }
.made { font-family: var(--display); letter-spacing: .04em; color: var(--ink-2); margin-top: 40px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
@media (hover: none) { .hide-touch { display: none; } }

/* ---------- no more arches: neutralise every V1 niche ---------- */
.niche { -webkit-mask: none !important; mask: none !important; }
.niche::after, .niche-wrap::before { display: none !important; }
.proofs li + li::before, .assure li::before { -webkit-mask: none !important; mask: none !important; width: 10px !important; height: 1px !important; background: var(--silver-2) !important; margin-top: .8em !important; }

/* ---------- the signature ---------- */
.sig { display: block; height: auto; overflow: visible; }
.sig path { fill: currentColor; }
.sig .pen { fill: #fff; }
.sig--ftr { width: 190px; color: var(--on-shade); margin-bottom: 30px; }
.sig--quote { width: min(240px, 50vw); color: var(--ink); margin: 0 auto 28px; opacity: .9; }

/* ---------- header during the intro: one discreet menu icon, no text ---------- */
.is-home .hdr { --hdr-bg: transparent; }
.is-home .hdr:not(.is-stuck) { position: fixed; left: 0; right: 0; }
.in-intro .hdr { background: transparent !important; box-shadow: none !important; backdrop-filter: none !important; color: var(--on-shade); }
.in-intro .hdr__nav, .in-intro .hdr__logo, .in-intro .lang, .in-intro .bag-btn__l, .in-intro .hdr__menu-l { opacity: 0; pointer-events: none; }
.in-intro .hdr__menu { display: inline-flex !important; color: var(--on-shade); }
.in-intro .bag-btn { color: var(--on-shade); }
.hdr__nav, .hdr__logo, .lang, .bag-btn__l { transition: opacity .5s var(--ease); }
.is-home .demo-bar { position: relative; z-index: 31; }
.drawer__lang { display: flex; gap: 14px; margin-top: 18px; }
.drawer__lang a { font-family: var(--text) !important; font-size: .875rem !important; border: 0 !important; letter-spacing: .1em; }
.drawer__lang a[aria-current] { text-decoration: underline; text-underline-offset: .4em; }

/* ---------- intro (approved): signature writing over three full-width Wix photos ---------- */
.intro { position: relative; height: 230vh; background: var(--black); }
.intro__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; background: var(--black); }
.intro__bg, .intro__img, .intro__shade { position: absolute; inset: 0; }
.intro__img { opacity: 0; }
.intro__img[data-bg="0"] { opacity: 1; }
.intro__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); will-change: transform; }
.intro__shade { background: radial-gradient(ellipse 75% 65% at 50% 50%, rgba(11,12,11,.3), rgba(11,12,11,.55) 65%, rgba(11,12,11,.85)); }
.sig--intro { position: relative; width: min(82vw, 1080px); color: #ecebe6; }
.intro__cue { position: absolute; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); left: 50%; width: 1px; height: 44px; background: linear-gradient(rgba(236,235,230,.8), transparent); transform-origin: top; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.intro-static .intro { height: auto; }
.intro-static .intro__stage { position: relative; }
.intro-static .intro__img img { transform: none; }
.intro-static .intro__cue { display: none; }

/* ---------- Day & Night: night (photo) / day (ivory with the packshot) ---------- */
.dn { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--ivory); }
.dn__night { position: relative; min-height: min(92svh, 920px); background: var(--black); }
.dn__night img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dn__day { display: grid; grid-template-rows: auto 1fr; align-content: center; gap: clamp(20px, 4vh, 40px); padding: clamp(40px, 6vw, 96px) clamp(24px, 5vw, 90px); }
.dn__pack { width: min(360px, 70%); aspect-ratio: 1; background: #fff; }
.dn__pack img { width: 100%; height: 100%; object-fit: contain; }
.dn__txt { max-width: 46ch; display: grid; gap: 10px; }
.dn__txt p { margin: 0; color: var(--ink-2); }
.dn__badge { font-size: .75rem !important; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3) !important; }
.dn__price { font-size: 1.25rem; color: var(--ink) !important; margin: 8px 0 14px !important; }
.dn__txt .btn { justify-self: start; }

/* ---------- collections rail: straight vertical frames ---------- */
.bay__img { aspect-ratio: 2 / 3; overflow: hidden; background: #fff; }
.bay__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bay.is-focus .bay__img img { transform: scale(1.04); }

/* ---------- product cards ---------- */
.card__img { aspect-ratio: 4 / 5; position: relative; overflow: hidden; background: #fff; }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease), transform 1.1s var(--ease); }
.card__img img.alt { opacity: 0; }
.card:hover .card__img img.alt { opacity: 1; }
.card:hover .card__img img { transform: scale(1.03); }
.card__img--tall { aspect-ratio: 2 / 3; }
.card__badge { top: 12px; left: 12px; transform: none; }

/* ---------- black workshop sections with a whisper of real filigree ---------- */
.fili { position: relative; isolation: isolate; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: min(90svh, 900px); }
.split__img { position: relative; overflow: hidden; min-height: 52svh; }
.split__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); }
.split__txt { padding: clamp(56px, 9vw, 130px) var(--g); display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.split--hero .split__txt { order: 0; }

/* ---------- La Calavera: three close-ups cut from one Wix photo ---------- */
.cal { background: var(--black); color: var(--on-shade); }
.cal .carved { color: var(--on-shade); text-shadow: none; }
.cal .lead, .cal p { color: var(--on-shade-2); }
.cal__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 60px; align-items: end; margin-bottom: clamp(30px, 4vw, 54px); }
.cal__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); }
.cal__d { margin: 0; }
.cal__d img { aspect-ratio: 1; width: 100%; object-fit: cover; }
.cal__d figcaption { margin-top: 12px; font-size: .9375rem; color: var(--on-shade-2); }
.cal__foot { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; margin-top: clamp(28px, 4vw, 48px); padding-top: 22px; border-top: 1px solid var(--line-shade); }
.cal__foot p { margin: 0; flex: 1 1 280px; }
.cal--pdp { max-width: none; padding-left: max(var(--g), calc((100vw - var(--max)) / 2 + var(--g))); padding-right: max(var(--g), calc((100vw - var(--max)) / 2 + var(--g))); }
.cal--pdp h2 { margin-bottom: 32px; }

/* ---------- quote band (sage) ---------- */
.quote-band figure { margin: 0 auto; max-width: 980px; text-align: center; }
.quote-band .quote { margin: 0 auto; max-width: 28ch; font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem); line-height: 1.22; }

/* ---------- product page ---------- */
.gallery { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 14px; align-items: start; }
.thumbs { display: grid; gap: 8px; position: sticky; top: calc(var(--hdr-h) + 18px); max-height: calc(100svh - var(--hdr-h) - 40px); overflow-y: auto; scrollbar-width: none; }
.thumb { padding: 0; border: 1px solid transparent; background: #fff; aspect-ratio: 1; cursor: pointer; opacity: .62; transition: opacity .3s, border-color .3s; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb[aria-pressed="true"], .thumb:hover { opacity: 1; border-color: var(--ink); }
.stage-img { margin: 0; }
.zoombox { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; background: #fff; cursor: zoom-in; overflow: hidden; }
.zoombox img { width: 100%; height: 100%; object-fit: contain; }
.zoombox__lens { position: absolute; inset: 0; background: #fff no-repeat; background-size: 220%; opacity: 0; transition: opacity .25s; pointer-events: none; }
.zoombox.zooming .zoombox__lens { opacity: 1; }
.stage-img figcaption { margin-top: 10px; }
.gal-strip, .gal__dots { display: none; }
.buy__name { font-size: clamp(2.125rem, 1.6rem + 2vw, 3.25rem); line-height: 1.05; }
.specs { margin: 0; display: grid; }
.specs > div { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--stone-joint); }
.specs dt { color: var(--ink-2); font-size: .875rem; }
.specs dd { margin: 0; font-size: 1rem; }
.measure__t { font-family: var(--display); font-weight: 400; font-size: 1.25rem; margin: 30px 0 10px; }
.opt__err { margin: 0; }
.eng-fields { margin-top: 12px; }
.eng-prev { max-width: 420px; margin-top: 12px; }
.ask { font-size: .875rem; margin: 0; }
.sticky-buy__n { display: grid; font-size: .8125rem; line-height: 1.3; flex: 1; min-width: 0; }
.sticky-buy__n .num { font-size: .9375rem; font-weight: 500; }
.rel h2 { margin-bottom: 36px; }

/* ---------- El Oficio: a silver thread that follows the reader ---------- */
.stepper { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(40px, 6vw, 90px) var(--g) clamp(70px, 9vw, 130px); }
.stepper__line { position: absolute; left: calc(var(--g) + 6px); top: clamp(40px, 6vw, 90px); bottom: clamp(70px, 9vw, 130px); width: 1px; background: var(--line-shade); }
.stepper__line i { position: absolute; inset: 0; background: var(--silver); transform: scaleY(0); transform-origin: top; }
.stepper__list { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 5vw, 80px); align-items: center; padding: clamp(36px, 6vw, 80px) 0 clamp(36px, 6vw, 80px) clamp(36px, 5vw, 70px); position: relative; }
.step::before { content: ""; position: absolute; left: 0; top: 50%; width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--on-shade-2); background: var(--black); transform: translateY(-50%); transition: background .6s var(--ease), border-color .6s; }
.step.lit::before { background: var(--silver); border-color: var(--silver); }
.step__t { font-size: var(--t-h3); margin: 0 0 12px; }
.step__txt p { color: var(--on-shade-2); max-width: 42ch; }
.step__media { position: relative; }
.step__img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--shade-2); }
.step__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); transform: scale(1.06); transition: transform 1.6s var(--ease), filter 1.2s var(--ease); }
.step.lit .step__img img { transform: scale(1); }
.step__detail { position: absolute; right: -12px; bottom: -28px; width: clamp(110px, 12vw, 170px); background: var(--black); padding: 6px; display: grid; gap: 4px; opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease) .2s, transform .8s var(--ease) .2s; }
.step__detail span { color: var(--on-shade-2); letter-spacing: .08em; padding: 0 2px; }
.step__detail img { aspect-ratio: 1; width: 100%; object-fit: cover; filter: grayscale(1); }
.step.lit .step__detail { opacity: 1; transform: none; }
.step:nth-child(even) .step__media { order: -1; }
.vs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 80px); margin-top: 40px; }
.vs__img { aspect-ratio: 5 / 4; overflow: hidden; background: var(--shade-2); margin-bottom: 18px; }
.vs__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.vs__img--plate { background: #e9e8e2; display: grid; place-items: center; padding: 8%; }
.vs__img--plate .metal { width: 100%; }
.vs h3 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; margin: 0 0 8px; }

/* ---------- La Casa: three short chapters ---------- */
.chapter__in { max-width: var(--max); margin: 0 auto; padding: clamp(40px, 7vw, 110px) var(--g); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(26px, 6vw, 100px); align-items: center; }
.chapter--rev .chapter__img { order: 1; }
.chapter__img img { width: 100%; height: auto; display: block; }
.chapter.on-shade .chapter__img img { filter: grayscale(1); }
.chapter__k { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.chapter.on-shade .chapter__k { color: var(--on-shade-2); }

/* ---------- footer ---------- */
.ftr .wordmark { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .dn { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .intro { height: 200vh; }
  .sig--intro { width: 92vw; }
  .dn { grid-template-columns: 1fr; }
  .dn__night { min-height: 70svh; }
  .dn__day { padding: 36px var(--g) 56px; }
  .dn__pack { width: 56%; }
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split__img { min-height: 60svh; }
  .cal__head { grid-template-columns: 1fr; }
  .cal__grid { grid-template-columns: 1fr 1fr; }
  .cal__d:first-child { grid-column: 1 / -1; }
  .gallery { grid-template-columns: 1fr; }
  .thumbs, .stage-img { display: none; }
  .gal-strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin: 0 calc(-1 * var(--g)); padding: 0 var(--g); scrollbar-width: none; }
  .gal-strip::-webkit-scrollbar { display: none; }
  .gal-strip__i { flex: 0 0 88%; scroll-snap-align: center; aspect-ratio: 1; border: 0; padding: 0; background: #fff; }
  .gal-strip__i img { width: 100%; height: 100%; object-fit: contain; }
  .gal__dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
  .gal__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); opacity: .35; transition: opacity .3s; }
  .gal__dots i.on { opacity: 1; }
  .specs > div { grid-template-columns: 1fr; gap: 2px; }
  .step { grid-template-columns: 1fr; padding-left: 36px; }
  .step:nth-child(even) .step__media { order: 0; }
  .step__detail { right: 8px; bottom: -20px; width: 104px; }
  .vs__grid { grid-template-columns: 1fr; }
  .chapter__in { grid-template-columns: 1fr; }
  .chapter--rev .chapter__img { order: 0; }
  .bag-btn__l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (min-width: 821px) and (max-width: 1080px) {
  .gallery { grid-template-columns: 64px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .intro__cue { animation: none; }
  .step__img img { transform: none; }
  .step__detail { opacity: 1; transform: none; }
}

/* ===== finish-review fixes (V2) ===== */
/* flat sage, no imitation stone, no artificial shadows */
.on-stone::before { display: none !important; }
.carved, .on-stone .carved, .on-shade .carved, .proofs li, .fig__n, .metal__txt { text-shadow: none !important; }

/* engraving surface: Wix crop of the Le Philanthrope barrel, levelled in CSS */
.metal { background: #d9dbda !important; }
.metal__surf { position: absolute; inset: 0; overflow: hidden; container-type: size; }
.metal__img { position: absolute; width: 100cqw; height: 100cqw; max-width: none; left: 0; top: calc(50cqh - 50cqw - 4.8cqw); transform: rotate(-56deg); pointer-events: none; }
.metal__txt { z-index: 1; }
.metal--cover { max-width: none !important; width: 100%; aspect-ratio: 5 / 4 !important; padding: 0 !important; place-items: center !important; height: 100%; }
.metal--cover .metal__img { width: 210cqw; height: 210cqw; left: -55cqw; top: calc(50cqh - 105cqw - 10.1cqw); }
.metal--cover .metal__txt { font-size: 14cqw; margin-top: -6%; }
.vs__img { background: var(--shade-2); }

/* El Oficio: real enlargements of each step */
.step__media { margin-bottom: 8%; }
.step__detail { position: absolute; right: -5%; bottom: -14%; width: 46%; padding: 0; border: 6px solid var(--black); background: var(--black); }
.step__detail img { aspect-ratio: 1; width: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); }

/* desktop header during the intro: menu left, bag right */
.in-intro .hdr__nav { display: none !important; }
.in-intro .hdr__in { grid-template-columns: auto 1fr auto; }
.in-intro .hdr__logo { justify-self: center; }
.is-home .demo-bar { position: fixed; top: auto; bottom: 0; left: 0; right: 0; z-index: 29; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
.is-home .intro__cue { bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
.is-home .ftr { padding-bottom: 30px; }

/* heading rhythm: more space above a heading than below */
.on-stone > .pdp-more { padding-top: clamp(56px, 7vw, 100px); }
.story .h2 { margin-bottom: 20px; }
.chapter__txt .h2, .duo .h2, .engrave .h2, .split__txt .h2, .dn__txt .h2, .cal__head .h2 { margin-bottom: 14px; }
.duo .h3 { margin-top: 44px !important; margin-bottom: 10px; }
.dn__txt { gap: 14px; }
.dn__price { font-size: 1.0625rem; color: var(--ink) !important; margin: 6px 0 12px !important; }
.dn__pack { width: min(460px, 100%); }
