/* Losange waitlist · third pass: hover close-ups with zoom, the piece in full, fit and feel, a richer hero.
   Loaded last on purpose: these rules adjust the viewer layout and the hero defined in the sheets before it. */

/* garment art is vector and always drawn at its own box size; keep edges exact */
.heroslides svg, .pimg svg, .qvart svg, .tgpiece svg, .zart svg, .featureart svg, .crop svg, .dimg svg, .loupeart svg { shape-rendering: geometricPrecision; text-rendering: geometricPrecision; }
.heroslides svg { filter: none; }

/* ---------- viewer layout: the panel sets the height, the stage holds a larger garment ---------- */
@supports (overflow: clip) { .qv { overflow: clip; } }
.qvtabs { position: sticky; top: 72px; z-index: 4; background: var(--card); border-radius: 22px 22px 0 0; }
.qvmark { display: block; height: 0; }
.qvtabs.stuck { border-radius: 0; box-shadow: 0 10px 18px -12px rgba(23, 19, 15, 0.25); }
.qvtabs.stuck::before { content: ""; position: absolute; left: -1px; right: -1px; bottom: 100%; height: 76px; background: var(--paper); }
.qvmain { align-items: stretch; }
.qvstage { aspect-ratio: auto; padding: 34px 0 62px; perspective: none; }
.qvtilt { width: min(88%, 600px); height: auto; margin: 0; transform: none !important; transform-style: flat; }
.qvflip { transform-style: flat; transition: none; }
.qvflip[data-side="back"] { transform: none; }
.qvface { backface-visibility: visible; transition: opacity 0.4s ease; }
.qvface.back { transform: none; opacity: 0; pointer-events: none; }
.qvflip[data-side="back"] .qvface.back { opacity: 1; pointer-events: auto; }
.qvflip[data-side="back"] .qvface.front { opacity: 0; pointer-events: none; }
.qvpanel { contain: none; }
.qvdetail { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.qvlist { overflow: visible; flex: none; }
.qvlist .tagk { margin-left: auto; font-style: normal; font-size: 10px; padding: 3px 7px; border-radius: 999px; border: 1px solid rgba(138, 90, 51, 0.4); color: var(--tobacco); }
.qvtext { min-height: 132px; }
.hs.emb { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(201, 162, 79, 0.35), 0 2px 8px rgba(23, 19, 15, 0.2); }

/* ---------- zoomable close-up (used by the hover lens and by the pinned card) ---------- */
.zoomer { position: relative; border-radius: 14px; overflow: hidden; background: #e7e1d4; border: 1px solid var(--line); }
.zoomer.qvzoom { aspect-ratio: 2 / 1; }
.zoomer.qvzoom::after { display: none; }
.zart { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; outline-offset: -3px; }
.zart.grab { cursor: grabbing; }
.zart svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.zctl { position: absolute; right: 8px; bottom: 8px; display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(251, 250, 246, 0.94); border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(23, 19, 15, 0.12); }
.zctl button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: none; color: var(--ink); font: 500 17px/1 var(--sans); cursor: pointer; }
.zctl button:hover:not(:disabled) { background: rgba(23, 19, 15, 0.07); }
.zctl button:disabled { opacity: 0.3; cursor: default; }
.zlabel { min-width: 74px; text-align: center; font-size: 10.5px; text-transform: none; letter-spacing: 0.01em; color: var(--ink); }
.zhint { position: absolute; left: 10px; bottom: 12px; padding: 4px 8px; border-radius: 999px; background: rgba(251, 250, 246, 0.9); font-size: 10px; text-transform: none; letter-spacing: 0.01em; pointer-events: none; }
.qvlens { position: absolute; z-index: 5; width: min(340px, 62%); border-radius: 18px; background: var(--card); border: 1px solid rgba(23, 19, 15, 0.16); box-shadow: 0 22px 50px rgba(23, 19, 15, 0.28), 0 2px 6px rgba(23, 19, 15, 0.1); padding: 8px; transform-origin: 0 40%; }
.qvlens[data-side="left"] { transform-origin: 100% 40%; }
.qvlens[hidden] { display: none; }
.qvlens .zoomer { aspect-ratio: 4 / 3; border-radius: 12px; }
.qvlenscap { padding: 10px 6px 4px; }
.qvlenscap b { display: block; font: 600 15px/1.25 var(--sans); letter-spacing: -0.015em; }
.qvlenscap p { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: #4d453c; }

/* ---------- the piece in full ---------- */
.qvstory { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); border-top: 1px solid var(--line); }
.qvstory > div { padding: 26px 28px 28px; }
.qvstory .story { border-right: 1px solid var(--line); }
.qvstory .mono, .sheethead .mono { margin: 0 0 8px; color: var(--tobacco); font-size: 11px; }
.qvstory h4, .sheethead h4 { margin: 0 0 12px; font: 600 clamp(20px, 2vw, 26px)/1.12 var(--sans); letter-spacing: -0.03em; }
.qvstory .story > p:not(.mono) { margin: 0; font-size: 16.5px; line-height: 1.55; color: #3b342c; max-width: 34em; }
.qvstory .story > p.storymeta { margin: 16px 0 0; color: var(--muted); text-transform: none; letter-spacing: 0.01em; }
.why dl { margin: 0; display: grid; }
.why dl > div { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.why dl > div:first-child { padding-top: 0; }
.why dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.why dt { font: 500 14px/1.4 var(--sans); letter-spacing: -0.01em; }
.why dd { margin: 0; font-size: 14.5px; line-height: 1.5; color: #4d453c; }

/* ---------- how it fits, how it feels ---------- */
.qvsheets { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-top: 1px solid var(--line); }
.sheet { padding: 24px 28px 22px; display: grid; gap: 16px; align-content: start; min-width: 0; --accent: var(--tobacco); }
.sheet[hidden] { display: none; }
.sheet + .sheet { border-left: 1px solid var(--line); }
.sheethead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.sheethead h4 { margin: 0; }
.feelweight { padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(138, 90, 51, 0.4); color: var(--tobacco); font-size: 11px; text-transform: none; letter-spacing: 0.01em; white-space: nowrap; }
.fitbody { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.fitfig { border-radius: 14px; border: 1px solid var(--line); background: radial-gradient(120% 82% at 50% 16%, #f7f3ea 0%, #ece6d9 60%, #e0d8c8 100%); padding: 10px 6px; color: #4a3f34; }
.ffsvg { display: block; width: 100%; height: auto; shape-rendering: geometricPrecision; }
.ffguide path { stroke: currentColor; stroke-opacity: 0.22; stroke-width: 0.25; stroke-dasharray: 1.2 1.2; fill: none; }
.ffguide text { font-family: var(--mono); font-size: 2.5px; fill: currentColor; fill-opacity: 0.6; text-transform: uppercase; letter-spacing: 0.2px; }
.ffdim path { stroke: var(--tobacco); stroke-width: 0.35; fill: none; }
.ffdim text { font-family: var(--mono); font-size: 2.9px; font-weight: 600; fill: var(--tobacco); dominant-baseline: middle; }
.fitfacts { margin: 0; display: grid; }
.fitfacts > div { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; gap: 3px; }
.fitfacts > div:first-child { padding-top: 0; }
.fitfacts > div:last-child { border-bottom: 0; }
.fitfacts dt { font: 500 11px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--tobacco); }
.fitfacts dd { margin: 0; display: grid; gap: 2px; }
.fitfacts dd b { font: 600 16px/1.3 var(--sans); letter-spacing: -0.02em; }
.fitfacts dd span { font-size: 13.5px; line-height: 1.45; color: #4d453c; }
.sheetnote { margin: 0; font-size: 10.5px; line-height: 1.5; color: var(--muted); text-transform: none; letter-spacing: 0.01em; }
.feelbody { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.swatchfig { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #e7e1d4; }
.swatch { display: block; width: 100%; height: auto; }
.swatchfig figcaption { padding: 8px 11px; font-size: 10.5px; text-transform: none; letter-spacing: 0.01em; color: var(--muted); background: var(--card); }
.feeltext { display: grid; gap: 12px; }
.feeltext p { margin: 0; font-size: 14px; line-height: 1.5; color: #4d453c; }
.feeltext .hand { font-size: 15.5px; color: #3b342c; }
.feeltext .brushed b { color: var(--ink); }
.gaugewrap { color: var(--ink); display: grid; gap: 6px; max-width: 520px; }
.gauge { display: block; width: 100%; height: auto; }
.gaugewrap p { font-size: 13px; color: var(--muted); }
.feelbars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.feelbars li { display: grid; gap: 5px; font-size: 12.5px; }
.feelbars .bar { display: flex; gap: 3px; }
.feelbars .bar i { flex: 1; height: 5px; border-radius: 3px; background: rgba(23, 19, 15, 0.1); }
.feelbars .bar i.on { background: var(--tobacco); }
.feelbars .mono { font-size: 10px; color: var(--muted); text-transform: none; }

/* ---------- hero: warmer, the product larger, one close-up and the hangtag from the first frame ---------- */
.herocard { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  background: radial-gradient(640px 520px at 73% 44%, rgba(160, 104, 58, 0.62) 0%, rgba(96, 62, 40, 0.5) 40%, rgba(40, 26, 18, 0) 74%), radial-gradient(380px 280px at 97% 0%, rgba(201, 162, 79, 0.26), rgba(201, 162, 79, 0) 70%), linear-gradient(160deg, #35231a 0%, #130d09 100%); }
.hero h1 .foil { background: linear-gradient(100deg, #f3dc9a 0%, #c9a24f 28%, #f6e7b4 46%, #b8913f 64%, #ecd08a 100%) 0 0 / 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: foilrun 2.4s 0.5s cubic-bezier(0.3, 0.6, 0.2, 1) both; }
@keyframes foilrun { from { background-position: 100% 0; } to { background-position: 0 0; } }
.heroart { min-height: 600px; }
.heroglow { inset: 10% 6% 14%; background: radial-gradient(closest-side, rgba(201, 162, 79, 0.3), rgba(201, 162, 79, 0.08) 55%, transparent); }
.heroslides { width: min(560px, 94%); animation: heroarrive 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes heroarrive { from { opacity: 0; transform: translate3d(6%, 26px, 0) rotateY(-26deg) scale(0.9); } }
.herofloor { left: 20%; right: 20%; bottom: 12%; }
.herochips span:nth-child(1) { top: 10%; left: 4%; }
.herochips span:nth-child(2) { top: 40%; right: 3%; }
.herochips span:nth-child(3) { bottom: 19%; right: 7%; left: auto; }
.herotag { position: absolute; top: -6px; right: 9%; width: clamp(54px, 5.4vw, 78px); aspect-ratio: 238 / 456; transform-origin: 50% 2%; animation: tagswing 2.6s 0.5s cubic-bezier(0.3, 0.7, 0.3, 1) both; z-index: 1; }
.herotag svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.4)); }
.herotag i { position: absolute; inset: 22% 4% 2%; border-radius: 6px; pointer-events: none; mix-blend-mode: soft-light; background: linear-gradient(110deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.75) 48%, rgba(255, 255, 255, 0) 64%) 0 0 / 300% 100%; animation: tagsheen 2.2s 1.3s ease-out both; }
@keyframes tagswing { 0% { opacity: 0; transform: translateY(-40%) rotate(14deg); } 30% { opacity: 1; transform: rotate(-9deg); } 52% { transform: rotate(5deg); } 72% { transform: rotate(-2.5deg); } 88% { transform: rotate(1deg); } 100% { transform: rotate(0deg); } }
@keyframes tagsheen { from { background-position: 100% 0; } to { background-position: -40% 0; } }
.heroloupe { position: absolute; left: 3%; bottom: 15%; z-index: 2; width: clamp(140px, 15vw, 204px); padding: 0; border: 0; background: none; color: var(--ecru); cursor: pointer; display: grid; justify-items: center; gap: 9px; font: inherit; }
.heroloupe[hidden] { display: none; }
.loupeart { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 2px solid var(--gold); box-shadow: 0 0 0 6px rgba(201, 162, 79, 0.14), 0 22px 40px rgba(0, 0, 0, 0.5); background: #2b1e17; animation: loupein 0.75s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.loupeart svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.loupeart::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 42%); box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.4); pointer-events: none; }
.heroloupe:hover .loupeart { box-shadow: 0 0 0 8px rgba(201, 162, 79, 0.24), 0 22px 40px rgba(0, 0, 0, 0.5); }
.loupecap { padding: 6px 11px; border-radius: 999px; background: rgba(27, 20, 15, 0.6); border: 1px solid rgba(201, 162, 79, 0.45); font-size: 11px; text-transform: none; letter-spacing: 0.01em; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; animation: chipin 0.5s 0.6s both; }
@keyframes loupein { from { opacity: 0; transform: scale(0.55); } }

@media (max-width: 1000px) {
  .qvtabs { top: 66px; }
  .qvstage { padding: 26px 0 60px; aspect-ratio: auto; }
  .qvstory, .qvsheets { grid-template-columns: minmax(0, 1fr); }
  .qvstory .story { border-right: 0; border-bottom: 1px solid var(--line); }
  .sheet + .sheet { border-left: 0; border-top: 1px solid var(--line); }
  .qvlens { display: none !important; }
  .heroart { min-height: 500px; }
  .heroloupe { width: clamp(120px, 26vw, 170px); left: 4%; bottom: 13%; }
  .herotag { right: 8%; width: clamp(48px, 9vw, 66px); }
}
@media (max-width: 720px) {
  .qvstory > div, .sheet { padding: 20px 16px; }
  .why dl > div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .fitbody, .feelbody { grid-template-columns: minmax(0, 1fr); }
  .fitfig { max-width: 300px; justify-self: center; width: 100%; }
  .feelbars { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
  .zoomer.qvzoom { aspect-ratio: 4 / 3; }
  .zhint { display: none; }
  /* phones: headline, then the product straight away, then the form */
  .herocard { display: flex; flex-direction: column; align-items: stretch; min-height: 0; }
  .heroform { align-self: stretch; }
  .herocopy { display: contents; }
  .herocard .herocopy > * { margin-left: 22px; margin-right: 22px; position: relative; z-index: 1; }
  .herocopy .eyebrow { order: 1; margin-top: 28px; align-self: flex-start; }
  .hero h1 { order: 2; }
  .heroart { order: 3; min-height: 420px; }
  .herocopy .lede { order: 4; margin-top: 4px; }
  .heroform { order: 5; }
  .heromsg { order: 6; }
  .countdown { order: 7; margin-bottom: 28px; }
  .herochips span:nth-child(3) { display: none; }
  .heroloupe { width: 112px; left: 14px; bottom: 21%; justify-items: start; }
  .loupecap { max-width: 190px; }
  .herocaption { bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .heroslides, .herotag, .herotag i, .loupeart, .loupecap, .hero h1 .foil { animation: none !important; }
  .qvface { transition: none; }
}

/* ---------- box contents appear only at their own step ----------
   The folded piece and its hangtag stay hidden until the tissue opens, so the picture matches the caption
   even in a browser that sorts 3D layers differently (iOS Safari drew the garment over the closed lid). */
.bxcloth { overflow: visible; opacity: 0; transition: opacity 0.45s ease 0.18s; }
.bxcloth .bximg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; border-radius: inherit; }
.bxcloth svg, .bxcloth .bxsvg { border-radius: inherit; }
.bxfold { opacity: 0; transition: opacity 0.45s ease 0.18s; }
.did-tissue .bxcloth, .did-tissue .bxfold { opacity: 1; }
.bxtag { visibility: hidden; transition: transform 1.15s cubic-bezier(0.3, 0.7, 0.2, 1), visibility 0s linear 0.3s; }
.did-tissue .bxtag { visibility: visible; }
@media (prefers-reduced-motion: reduce) { .bxcloth, .bxfold { transition: none !important; } }

/* ---------- sharp hangtag and label when they are held up ----------
   Both used to be small elements enlarged with a transform, which phones drew as a blurry enlargement.
   They are now laid out at their held-up size and shrunk while they rest in the box, so the close view
   is drawn at full resolution. */
.bxtag { left: calc(var(--u) * 97.4); top: calc(var(--u) * -80.2); width: calc(var(--u) * 184); height: calc(var(--u) * 352.4);
  transform: translateZ(calc(var(--u) * 2)) rotateZ(13deg) scale(0.25); }
.at-tag .bxtag { transform: translate3d(calc(var(--u) * -58), calc(var(--u) * 2), calc(var(--u) * 150)) rotateZ(calc(var(--rz) * -1)) rotateX(calc(var(--rx) * -1)) scale(0.75); }
.bxlabel { left: calc(50% - var(--u) * 119); top: calc(var(--u) * -3.4); width: calc(var(--u) * 238); height: calc(var(--u) * 74.8);
  transform: translateZ(calc(var(--u) * 1)) scale(0.118); }
.at-label .bxlabel { transform: translate3d(0, calc(var(--u) * 56), calc(var(--u) * 120)) rotateZ(calc(var(--rz) * -1)) rotateX(calc(var(--rx) * -1)) scale(1); }
@media (max-width: 720px) {
  .at-tag .bxtag { transform: translate3d(calc(var(--u) * -58), calc(var(--u) * 30), calc(var(--u) * 96)) rotateZ(calc(var(--rz) * -1)) rotateX(calc(var(--rx) * -1)) scale(1); }
  .at-label .bxlabel { transform: translate3d(0, calc(var(--u) * 56), calc(var(--u) * 100)) rotateZ(calc(var(--rz) * -1)) rotateX(calc(var(--rx) * -1)) scale(1); }
}
