/* ── 04 · Miniatures: the shelf, the attic bedroom, the making process ──── */
#miniatures { padding: 0; }

/* ═══ 02 · THE SHELF ═══════════════════════════════════════════════════ */
#miniatures .shelf {
  --u: min(1vw, 1.55vh);
  --pk: calc(var(--u) * 2.7);           /* plank thickness */
  --gap: calc(var(--u) * 10);           /* room under the plank for labels */
  position: relative;
  min-height: 100vh; min-height: 100svh;
  padding: clamp(84px, 11vh, 118px) var(--gutter) clamp(56px, 7vh, 90px);
  display: grid; place-items: center;
  overflow: clip;
}
#miniatures .shelf__ribbon { position: absolute; z-index: 0; }
#miniatures .shelf__ribbon--tl { left: -1vw; top: -1vw; width: clamp(150px, 23vw, 380px); }
#miniatures .shelf__ribbon--br { right: -1.5vw; bottom: -3vw; width: clamp(130px, 19vw, 320px); }

#miniatures .shelf__wrap {
  position: relative; z-index: 1;
  width: min(100%, calc(var(--u) * 94));
}
#miniatures .shelf__title {
  text-align: center;
  font-size: calc(var(--u) * 10.6);
  letter-spacing: .04em;
  margin: 0 auto;
  width: max-content; max-width: 100%;
}
#miniatures .shelf__chev { position: absolute; top: calc(var(--u) * 1.2); right: calc(var(--u) * -1); width: calc(var(--u) * 5); height: calc(var(--u) * 1.2); }

#miniatures .shelf__unit {
  position: relative;
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: calc(var(--u) * 3);
  margin-top: calc(var(--u) * 4.5);
  padding: 0 calc(var(--u) * 6) calc(var(--pk) + var(--gap));
}

/* one miniature on the shelf */
#miniatures .mini { position: relative; margin: 0 0 calc(var(--pk) * -.32); }
#miniatures .mini--sanct { width: calc(var(--u) * 19); --sink: 11%; }
#miniatures .mini--attic { width: calc(var(--u) * 21.5); --sink: 5%; }
#miniatures .mini--carto { width: calc(var(--u) * 24.5); --sink: 11.5%; }
#miniatures .mini__body { position: relative; z-index: 2; transform-origin: 50% 100%; cursor: zoom-in; border-radius: 12px; }
#miniatures .mini__lift { transform-origin: 50% 90%; will-change: transform; }
#miniatures .mini__lift img { width: 100%; height: auto; translate: 0 var(--sink); user-select: none; -webkit-user-drag: none; }
#miniatures .mini__shadow {
  position: absolute; z-index: 1; left: 10%; right: 10%; bottom: -2px; height: calc(var(--u) * 1.6);
  background: radial-gradient(closest-side, rgba(58, 42, 42, .34), rgba(58, 42, 42, 0));
  pointer-events: none;
}
#miniatures .mini__dust {
  position: absolute; z-index: 3; left: 50%; bottom: 0;
  width: calc(var(--u) * 1.4); aspect-ratio: 1; margin-left: calc(var(--u) * -.7);
  border-radius: 50%; background: var(--card); border: 1.5px solid var(--ink);
  opacity: 0; pointer-events: none;
}

/* handwritten labels + curly arrows (like the PDF) */
#miniatures .mini__label {
  position: absolute; z-index: 3; margin: 0; white-space: nowrap;
  font-family: var(--font-hand); color: var(--ink);
  font-size: clamp(18px, calc(var(--u) * 1.85), 30px); line-height: 1;
}
#miniatures .mini__arrow { position: absolute; z-index: 3; stroke-width: 2.6px; }
#miniatures .mini--sanct .mini__label { top: calc(100% + var(--pk) * .7 + var(--u) * 6.4); left: 4%; rotate: -2deg; }
#miniatures .mini--sanct .mini__arrow { top: calc(100% + var(--pk) * .7 + var(--u) * .4); left: 70%; width: calc(var(--u) * 3.6); }
#miniatures .mini--attic .mini__label { top: calc(var(--u) * -3.4); left: 70%; rotate: -3deg; }
#miniatures .mini--attic .mini__arrow { top: calc(var(--u) * -4); left: 24%; width: calc(var(--u) * 7.6); }
#miniatures .mini--carto .mini__label { top: calc(100% + var(--pk) * .7 + var(--u) * 6.6); left: -4%; rotate: 1.5deg; }
#miniatures .mini--carto .mini__arrow { top: calc(100% + var(--pk) * .7 + var(--u) * .2); left: 20%; width: calc(var(--u) * 2.4); }

/* the plank */
#miniatures .shelf__plank { position: absolute; left: 0; right: 0; bottom: var(--gap); height: var(--pk); z-index: 1; transform-origin: 50% 0; }
#miniatures .shelf__plank--b { display: none; }
#miniatures .shelf__wood { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 8px rgba(58, 42, 42, .16)); }
#miniatures .shelf__top { fill: #ecc390; }
#miniatures .shelf__front { fill: #c98b52; }
#miniatures .shelf__grain { fill: none; stroke: #a86c3a; stroke-width: 1.6px; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .7; }
#miniatures .shelf__line { fill: none; stroke: var(--ink); stroke-width: 2.4px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
#miniatures .shelf__bracket { position: absolute; top: 88%; width: calc(var(--u) * 3.2); height: auto; overflow: visible; z-index: -1; }
#miniatures .shelf__bracket path { fill: #b97a44; stroke: var(--ink); stroke-width: 2.2px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
#miniatures .shelf__bracket circle { fill: var(--ink); }
#miniatures .shelf__bracket--l { left: 9%; }
#miniatures .shelf__bracket--r { right: 9%; }

/* a little tag swinging under the shelf */
#miniatures .shelf__tag { position: absolute; left: 50%; top: 80%; width: calc(var(--u) * 3.4); transform-origin: 50% 0; cursor: pointer; }
#miniatures .shelf__string { width: 34%; height: calc(var(--u) * 3.6); margin: 0 auto; overflow: visible; }
#miniatures .shelf__string path { fill: none; stroke: var(--ink); stroke-width: 1.6px; vector-effect: non-scaling-stroke; }
#miniatures .shelf__tag-card {
  display: grid; place-items: center;
  width: 100%; aspect-ratio: 3 / 3.6; margin-top: -2px;
  background: #e2c29a; border: 2px solid var(--ink); border-radius: 4px 4px 10px 10px;
  clip-path: polygon(20% 0, 80% 0, 100% 18%, 100% 100%, 0 100%, 0 18%);
  box-shadow: inset 0 0 0 3px rgba(255, 250, 243, .35);
}
#miniatures .shelf__tag-card .dd { width: 56%; height: auto; }

#miniatures .shelf__dd { position: absolute; z-index: 2; }
#miniatures .shelf__dd--1 { width: calc(var(--u) * 3.2); left: -2%; top: 4%; }
#miniatures .shelf__dd--2 { width: calc(var(--u) * 2.4); right: 2%; top: 30%; }
#miniatures .shelf__dd--3 { width: calc(var(--u) * 2.6); left: 36%; top: 32%; }

/* ═══ 03 · ATTIC BEDROOM ═══════════════════════════════════════════════ */
#miniatures .attic { position: relative; }
#miniatures .attic__stage {
  --u: min(1vw, 1.6vh);
  position: relative;
  height: 100vh; height: 100svh; min-height: 620px;
  padding: clamp(92px, 12.5vh, 130px) var(--gutter) clamp(44px, 6vh, 70px);
  overflow: hidden;
}
#miniatures .attic__title {
  position: absolute; z-index: 8; top: clamp(58px, 7.4vh, 84px); left: calc(var(--gutter) + var(--u) * 5);
  width: max-content;
  font-size: calc(var(--u) * 7.8);
  letter-spacing: .03em;
}
#miniatures .attic__grid {
  position: relative; height: 100%;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: calc(var(--u) * 5.5);
  align-items: end;
}

/* hero photo + dollhouse front */
#miniatures .attic__hero { position: relative; height: 100%; aspect-ratio: 702 / 950; justify-self: start; }
#miniatures .attic__house { position: absolute; left: -9%; right: -9%; top: -19%; bottom: -5%; perspective: 1600px; opacity: 0; pointer-events: none; z-index: 1; }
html:not(.js) #miniatures .attic__house { display: none; }
#miniatures .attic__roof { position: absolute; left: -2%; right: -2%; top: 0; height: 20%; z-index: 2; transform-origin: 50% 100%; }
#miniatures .attic__roof > svg:first-child { width: 100%; height: 100%; overflow: visible; display: block; }
#miniatures .attic__roof-line { fill: none; stroke: var(--ink); stroke-width: 3px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
#miniatures .attic__chimney { fill: #d9b48a; stroke: var(--ink); stroke-width: 3px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
#miniatures .attic__roof-hole { fill: #ffe7b0; stroke: var(--ink); stroke-width: 3px; vector-effect: non-scaling-stroke; }
#miniatures .attic__smoke { position: absolute; width: 9%; right: 17%; top: -26%; }
#miniatures .attic__door {
  --bw: calc(var(--u) * 2.6);
  position: absolute; top: 16%; bottom: 4.5%; width: 50.2%;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(var(--bw) - 2px), rgba(120, 76, 44, .2) calc(var(--bw) - 2px) var(--bw)),
    linear-gradient(#ecd1ab, #e0bf94);
  border: 3px solid var(--ink);
  backface-visibility: hidden;
}
#miniatures .attic__door--l { left: 0; border-radius: 8px 0 0 4px; transform-origin: 0% 50%; }
#miniatures .attic__door--r { right: 0; border-radius: 0 8px 4px 0; transform-origin: 100% 50%; border-left-width: 1.5px; }
#miniatures .attic__door i { position: absolute; top: 74%; width: calc(var(--u) * 1.1); aspect-ratio: 1; border-radius: 50%; background: var(--butter); border: 2px solid var(--ink); }
#miniatures .attic__door--l i { right: 8%; }
#miniatures .attic__door--r i { left: 8%; }
#miniatures .attic__door::after { content: '♥'; position: absolute; top: 4%; font-size: calc(var(--u) * 2); line-height: 1; color: var(--pink); }
#miniatures .attic__door--l::after { left: 10%; rotate: -12deg; }
#miniatures .attic__door--r::after { right: 10%; rotate: 12deg; }
#miniatures .attic__base { position: absolute; left: -3%; right: -3%; bottom: 0; height: 5%; background: var(--teal); border: 3px solid var(--ink); border-radius: 6px; }

#miniatures .attic__mount { position: absolute; inset: -1.6%; z-index: 2; background: var(--card); box-shadow: var(--shadow-lift); border-radius: 3px; }
#miniatures .attic__frame { position: absolute; inset: 0; z-index: 3; margin: 0; cursor: zoom-in; }
#miniatures .attic__view { position: absolute; inset: 0; overflow: hidden; background: #e9dcc4; }
#miniatures .attic__zoom { position: absolute; inset: 0; will-change: transform; }
#miniatures .attic__img { width: 100%; height: 100%; object-fit: cover; scale: 1.04; }
#miniatures .attic__glow {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(34% 22% at 51% 56%, rgba(255, 214, 140, .75), rgba(255, 214, 140, 0) 80%);
  mix-blend-mode: screen;
}
#miniatures .attic__loupe { position: absolute; width: 30%; aspect-ratio: 1; translate: -50% -50%; opacity: 0; pointer-events: none; }
#miniatures .attic__loupe--1 { left: 37%; top: 64%; }
#miniatures .attic__loupe--2 { left: 61%; top: 47%; }
#miniatures .attic__loupe svg { width: 100%; height: 100%; overflow: visible; fill: none; }
#miniatures .attic__loupe .ring { stroke: var(--card); stroke-width: 9px; vector-effect: non-scaling-stroke; }
#miniatures .attic__loupe .ring2 { stroke: var(--pink); stroke-width: 3.5px; stroke-dasharray: 7 7; vector-effect: non-scaling-stroke; }
#miniatures .attic__loupe .handle { stroke: var(--ink); stroke-width: 9px; stroke-linecap: round; vector-effect: non-scaling-stroke; }
#miniatures .attic__tape { z-index: 4; width: calc(var(--u) * 7); height: calc(var(--u) * 2); }
#miniatures .attic__tape--a { left: -4%; top: -1%; rotate: -38deg; }
#miniatures .attic__tape--b { right: -4%; top: -1%; rotate: 36deg; }

#miniatures .attic__sash { position: absolute; z-index: 5; left: 29%; top: 33%; width: 44%; height: 37%; overflow: visible; opacity: 0; pointer-events: none; }
#miniatures .attic__sash path { fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
#miniatures .attic__sash-ink { stroke: var(--ink); stroke-width: 13px; }
#miniatures .attic__sash-wood { stroke: var(--card); stroke-width: 7px; }
#miniatures .attic__box { position: absolute; z-index: 6; left: 26%; top: 69%; width: 50%; height: 4.2%; opacity: 0; pointer-events: none; background: #c98b52; border: 2.5px solid var(--ink); border-radius: 3px 3px 6px 6px; }
#miniatures .attic__box i { position: absolute; bottom: 72%; width: 10%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--ink); background: var(--pink); }
#miniatures .attic__box i:nth-child(1) { left: 6%; }
#miniatures .attic__box i:nth-child(2) { left: 24%; background: var(--butter); bottom: 90%; }
#miniatures .attic__box i:nth-child(3) { left: 44%; background: var(--lavender); }
#miniatures .attic__box i:nth-child(4) { left: 64%; background: var(--pink); bottom: 88%; }
#miniatures .attic__box i:nth-child(5) { left: 83%; background: var(--butter); }

#miniatures .attic__peek {
  position: absolute; z-index: 6; left: 112%; top: 22%; margin: 0; white-space: nowrap; opacity: 0;
  font-family: var(--font-hand); font-size: calc(var(--u) * 4.4); line-height: 1; color: var(--ink); rotate: -6deg;
}
#miniatures .attic__peek-arrow { position: absolute; z-index: 6; left: 76%; top: 30%; width: calc(var(--u) * 13); opacity: 0; stroke-width: 3px; }

/* right column */
#miniatures .attic__side { position: relative; z-index: 4; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; gap: calc(var(--u) * 3.4); padding-top: calc(var(--u) * 7); }
#miniatures .attic__shots { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--u) * 3.2); align-items: start; }
#miniatures .attic__shot { position: relative; margin: 0; }
#miniatures .attic__shot--1 { rotate: -1.6deg; }
#miniatures .attic__shot--2 { rotate: 1.4deg; margin-top: calc(var(--u) * 1.2); }
#miniatures .attic__paper { position: absolute; inset: calc(var(--u) * -.75); background: var(--card); box-shadow: var(--shadow-paper); border-radius: 2px; }
#miniatures .attic__shot-img { position: relative; cursor: zoom-in; }
#miniatures .attic__shot-img img { width: 100%; height: auto; display: block; }
#miniatures .attic__shot-tape { left: 50%; top: calc(var(--u) * -1.8); translate: -50% 0; width: calc(var(--u) * 7); height: calc(var(--u) * 2); rotate: -4deg; }
#miniatures .attic__shot--2 .attic__shot-tape { rotate: 5deg; }
#miniatures .attic__cap {
  position: relative; margin-top: calc(var(--u) * 1.6);
  font-family: var(--font-hand); font-size: clamp(16px, calc(var(--u) * 1.6), 24px); line-height: 1.1; color: var(--ink-soft); text-align: center;
}
#miniatures .attic__cap span { display: inline-block; }
#miniatures .attic__cap span::before { content: '↑ '; color: var(--pink); }

#miniatures .attic__text {
  margin: 0; max-width: 68ch;
  font-size: clamp(16px, calc(var(--u) * 1.32), 20px); line-height: 1.58;
  text-align: justify; text-justify: inter-word; hyphens: none;
}
#miniatures .attic__text mark {
  color: inherit;
  background: linear-gradient(var(--pink-soft), var(--pink-soft)) no-repeat 0 88% / calc(var(--hl, 1) * 100%) .42em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
#miniatures .attic__ribbon { position: absolute; z-index: 1; right: -4vw; bottom: -2vh; width: clamp(160px, 17vw, 300px); pointer-events: none; }

/* ═══ 04 · MAKING PROCESS ══════════════════════════════════════════════ */
#miniatures .making { position: relative; }
#miniatures .making__stage { position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden; }
#miniatures .making__track { position: absolute; inset: 0; }

/* the cutting mat */
#miniatures .making__mat {
  position: absolute; left: 1.5%; right: 1.5%; top: 13%; bottom: 5%;
  border-radius: 22px;
  background-color: #9cbfa6;
  background-image:
    linear-gradient(rgba(255, 255, 255, .5) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, .5) 2px, transparent 2px),
    linear-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .22) 1px, transparent 1px);
  background-size: 12vh 12vh, 12vh 12vh, 2.4vh 2.4vh, 2.4vh 2.4vh;
  background-position: -1px -1px;
  border: 2.5px solid rgba(58, 42, 42, .75);
  box-shadow: 0 18px 34px -18px rgba(58, 42, 42, .45), inset 0 0 0 7px rgba(255, 255, 255, .14);
}
#miniatures .making__mat::before, #miniatures .making__mat::after { content: ''; position: absolute; left: 2.4vh; right: 2.4vh; height: 1.4vh; }
#miniatures .making__mat::before { top: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .75) 0 2px, transparent 2px 2.4vh); }
#miniatures .making__mat::after { bottom: 0; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .75) 0 2px, transparent 2px 2.4vh); }

#miniatures .making__word {
  position: absolute; z-index: 1; margin: 0; white-space: nowrap;
  color: var(--pink);
  -webkit-text-stroke: .05em var(--card); paint-order: stroke fill;
  letter-spacing: .03em;
  pointer-events: none;
}
#miniatures .making__word--a { left: 3%; top: 2%; font-size: 11.5vw; }
#miniatures .making__word--b { left: 34%; top: 62%; font-size: 11.8vw; }

#miniatures .making__scrap {
  position: absolute; z-index: 2; display: block;
  background:
    repeating-linear-gradient(0deg, rgba(120, 80, 40, .14) 0 2px, transparent 2px 6px),
    #d8b68c;
  box-shadow: 0 2px 4px rgba(58, 42, 42, .18);
  cursor: grab; touch-action: none;
}
#miniatures .making__scrap--1 { left: 3%; top: 20%; width: 4.4vh; height: 3vh; clip-path: polygon(0 10%, 100% 0, 92% 100%, 6% 86%); rotate: 14deg; }
#miniatures .making__scrap--2 { left: 23%; top: 70%; width: 6vh; height: 2.6vh; clip-path: polygon(4% 0, 100% 20%, 96% 100%, 0 70%); rotate: -22deg; }
#miniatures .making__scrap--3 { left: 6%; top: 52%; width: 3.6vh; height: 4.4vh; clip-path: polygon(10% 0, 100% 8%, 80% 100%, 0 90%); rotate: 8deg; }
#miniatures .making__scrap--4 { left: 26%; top: 18%; width: 5vh; height: 2.2vh; clip-path: polygon(0 0, 100% 30%, 90% 100%, 8% 80%); rotate: 30deg; background-color: #c9a072; }

#miniatures .making__step { position: absolute; z-index: 3; margin: 0; }
#miniatures .making__spot { position: absolute; inset: -.8vh; border: 2.5px dashed rgba(255, 255, 255, .9); border-radius: 8px; opacity: 0; }
#miniatures .making__pola {
  position: relative; cursor: zoom-in;
  background: var(--card); padding: 1.1vh;
  box-shadow: var(--shadow-paper);
  rotate: var(--r, 0deg);
}
#miniatures .making__pola img { height: var(--ph, 34vh); width: auto; max-width: none; display: block; }
#miniatures .making__tape { left: 50%; top: -1.5vh; translate: -50% 0; width: 9vh; height: 2.6vh; rotate: -3deg; transform-origin: 0 50%; }
#miniatures .making__num {
  position: absolute; left: -1.6vh; top: -1.6vh; z-index: 4;
  width: 4.4vh; height: 4.4vh; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pink); color: #fff; border: 2.5px solid var(--card);
  font-family: var(--font-display); font-weight: 800; font-size: 2.4vh; line-height: 1;
  box-shadow: 0 2px 5px rgba(58, 42, 42, .25);
  rotate: -10deg;
}
#miniatures .making__step--1 { left: 9.5%; top: 25%; --r: -4deg; --ph: 33vh; }
#miniatures .making__step--2 { left: 30%; top: 38%; --r: 3deg; --ph: 35vh; }
#miniatures .making__step--3 { left: 52.5%; top: 20%; --r: -2deg; --ph: 35vh; }
#miniatures .making__step--4 { left: 75%; top: 31%; --r: 2.5deg; --ph: 37vh; }

#miniatures .making__note {
  position: absolute; z-index: 4; margin: 0; white-space: nowrap;
  font-family: var(--font-hand); font-size: clamp(18px, 2.9vh, 34px); line-height: 1; color: var(--ink);
  padding: .45em .7em .5em;
  background: var(--card);
  box-shadow: 0 3px 8px -2px rgba(58, 42, 42, .28);
  clip-path: polygon(0 6%, 8% 0, 22% 5%, 40% 0, 58% 6%, 76% 1%, 92% 5%, 100% 0, 99% 50%, 100% 94%, 86% 100%, 66% 95%, 48% 100%, 30% 94%, 12% 100%, 0 95%, 1% 50%);
}
#miniatures .making__note span { display: inline-block; }
#miniatures .making__note--1 { left: 3%; top: 69%; rotate: -9deg; background: #e0c096; }
#miniatures .making__note--2 { left: 30.5%; top: 30%; rotate: -4deg; background: #f8e39a; }
#miniatures .making__note--3 { left: 46%; top: 66%; rotate: -7deg; }
#miniatures .making__note--4 { left: 78.5%; top: 21%; rotate: -4deg; clip-path: none; background: none; box-shadow: none; overflow: visible; font-size: clamp(19px, 3.2vh, 36px); }
#miniatures .making__circle { position: absolute; left: -12%; top: -38%; width: 124%; height: 176%; z-index: -1; }
#miniatures .making__arrow { position: absolute; z-index: 3; stroke-width: 3px; }
#miniatures .making__arrow--1 { left: 17.5%; top: 71%; width: 12%; }
#miniatures .making__arrow--2 { left: 39%; top: 19%; width: 11%; }
#miniatures .making__arrow--3 { left: 62.5%; top: 66%; width: 12%; }

#miniatures .making__spark { position: absolute; z-index: 5; width: 3.4vh; height: 3.4vh; }
#miniatures .making__spark--1 { right: -3.4vh; top: -2vh; width: 4.4vh; height: 4.4vh; }
#miniatures .making__spark--2 { left: -4vh; top: 34%; }
#miniatures .making__spark--3 { right: -4.2vh; top: 58%; width: 3vh; height: 3vh; }
#miniatures .making__spark--4 { left: 10%; bottom: -4vh; width: 2.8vh; height: 2.8vh; }
#miniatures .making__spark--5 { right: 16%; bottom: -4.4vh; }

/* build meter (only in the pinned, horizontal version) */
#miniatures .making__meter {
  position: absolute; z-index: 6; left: 50%; bottom: 1.6vh; translate: -50% 0;
  display: none; align-items: center; gap: 12px;
  font-family: var(--font-hand); font-size: 17px; color: var(--ink);
  background: var(--card); padding: 6px 16px 7px; border-radius: 99px;
  box-shadow: 0 4px 12px -4px rgba(58, 42, 42, .3);
}
#miniatures .making__meter-bar {
  position: relative; width: clamp(160px, 22vh, 260px); height: 10px;
  border-radius: 99px; background: #e3cba9; border: 2px solid var(--ink);
}
#miniatures .making__meter-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--pink); transform-origin: 0 50%; }
#miniatures .making__meter-bar i {
  position: absolute; top: 50%; translate: -50% -50%;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  font: 800 11px/1 var(--font-label); font-style: normal;
  background: var(--card); color: var(--ink); border: 2px solid var(--ink);
  transition: background .3s, color .3s, transform .4s var(--ease-bounce);
}
#miniatures .making__meter-bar i:nth-of-type(1) { left: 0; }
#miniatures .making__meter-bar i:nth-of-type(2) { left: 33.3%; }
#miniatures .making__meter-bar i:nth-of-type(3) { left: 66.6%; }
#miniatures .making__meter-bar i:nth-of-type(4) { left: 100%; }
#miniatures .making__meter-bar i.is-on { background: var(--pink); color: #fff; transform: scale(1.15); }
#miniatures .making__meter-heart { position: absolute; left: -9px; top: -24px; width: 18px; height: 18px; }

/* ── horizontal build timeline (JS adds .is-h on desktop) ─────────────── */
#miniatures .making.is-h .making__track { right: auto; width: 352vh; }
#miniatures .making.is-h .making__mat { left: 2vh; right: 2vh; top: 12.5vh; bottom: 6vh; border-radius: 3vh; }
#miniatures .making.is-h .making__word--a { left: 4vh; top: 0; font-size: 27vh; }
#miniatures .making.is-h .making__word--b { left: 206vh; top: 63vh; font-size: 27vh; }
#miniatures .making.is-h .making__spot { opacity: 1; }
#miniatures .making.is-h .making__step--1 { left: 26vh; top: 26vh; --ph: 41vh; }
#miniatures .making.is-h .making__step--2 { left: 106vh; top: 34vh; --ph: 46vh; }
#miniatures .making.is-h .making__step--3 { left: 188vh; top: 19vh; --ph: 46vh; }
#miniatures .making.is-h .making__step--4 { left: 270vh; top: 27vh; --ph: 50vh; }
#miniatures .making.is-h .making__note { font-size: 3.6vh; }
#miniatures .making.is-h .making__note--1 { left: 10vh; top: 75vh; }
#miniatures .making.is-h .making__note--2 { left: 92vh; top: 23vh; }
#miniatures .making.is-h .making__note--3 { left: 168vh; top: 74vh; }
#miniatures .making.is-h .making__note--4 { left: 279vh; top: 15vh; font-size: 4vh; }
#miniatures .making.is-h .making__arrow--1 { left: 44vh; top: 75vh; width: 34vh; }
#miniatures .making.is-h .making__arrow--2 { left: 145vh; top: 12vh; width: 38vh; }
#miniatures .making.is-h .making__arrow--3 { left: 205vh; top: 70vh; width: 52vh; }
#miniatures .making.is-h .making__scrap--1 { left: 8vh; top: 24vh; }
#miniatures .making.is-h .making__scrap--2 { left: 72vh; top: 64vh; }
#miniatures .making.is-h .making__scrap--3 { left: 12vh; top: 54vh; }
#miniatures .making.is-h .making__scrap--4 { left: 68vh; top: 20vh; }
#miniatures .making.is-h .making__meter { display: flex; }

/* ═══ Phones & portrait tablets ════════════════════════════════════════ */
@media (max-width: 899px), (max-aspect-ratio: 1/1) {
  /* shelf → a little two-shelf bookcase */
  #miniatures .shelf { --u: 1vw; --pk: 26px; --gap: 0px; min-height: 0; padding: 96px 18px 70px; }
  #miniatures .shelf__title { font-size: min(11.1vw, 90px); letter-spacing: .02em; }
  #miniatures .shelf__chev { display: none; }
  #miniatures .shelf__unit {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    grid-template-areas: "attic attic" "pa pa" "sanct carto" "pb pb";
    padding: 0; margin-top: 64px;
  }
  #miniatures .mini { margin-bottom: -8px; justify-self: center; align-self: end; }
  #miniatures .mini--attic { grid-area: attic; width: min(50vw, 300px); }
  #miniatures .mini--sanct { grid-area: sanct; width: min(37vw, 230px); margin-top: 92px; }
  #miniatures .mini--carto { grid-area: carto; width: min(44vw, 270px); margin-top: 92px; }
  #miniatures .shelf__plank { position: relative; bottom: auto; height: var(--pk); }
  #miniatures .shelf__plank--a { grid-area: pa; margin-bottom: 0; }
  #miniatures .shelf__plank--b { display: block; grid-area: pb; }
  #miniatures .shelf__bracket { width: 22px; }
  #miniatures .shelf__tag { display: none; }
  #miniatures .mini__label { font-size: 18px; }
  #miniatures .mini--attic .mini__label { top: -46px; left: 58%; }
  #miniatures .mini--attic .mini__arrow { top: -44px; left: 18%; width: 64px; }
  #miniatures .mini--sanct .mini__label { top: calc(100% + 72px); left: -4%; }
  #miniatures .mini--sanct .mini__arrow { top: calc(100% + 24px); left: 62%; width: 26px; }
  #miniatures .mini--carto .mini__label { top: calc(100% + 72px); left: -2%; }
  #miniatures .mini--carto .mini__arrow { top: calc(100% + 22px); left: 26%; width: 18px; }
  #miniatures .shelf__unit { padding-bottom: 70px; }
  #miniatures .shelf__ribbon--tl { width: 42vw; left: -8vw; top: -4vw; }
  #miniatures .shelf__ribbon--br { width: 36vw; right: -8vw; bottom: -6vw; }
  #miniatures .shelf__dd--1 { width: 22px; left: 0; top: -40px; }
  #miniatures .shelf__dd--2 { width: 18px; right: 0; top: 46%; }
  #miniatures .shelf__dd--3 { display: none; }

  /* attic → stacked */
  #miniatures .attic__stage { --u: 1vw; height: auto; min-height: 0; padding: 70px 20px 60px; overflow: clip; }
  #miniatures .attic__title { position: relative; top: auto; left: auto; margin: 0 auto; text-align: center; font-size: min(12.6vw, 84px); }
  #miniatures .attic__grid { display: block; height: auto; }
  #miniatures .attic__hero { width: min(74vw, 420px); height: auto; margin: max(32vw, 120px) auto 0; }
  #miniatures .attic__peek, #miniatures .attic__peek-arrow { display: none; }
  #miniatures .attic__side { padding-top: 0; margin-top: 60px; gap: 34px; }
  #miniatures .attic__shots { grid-template-columns: 1fr; gap: 40px; max-width: 520px; margin: 0 auto; width: 100%; padding: 0 8px; }
  #miniatures .attic__shot--1 { width: 88%; }
  #miniatures .attic__shot--2 { width: 88%; justify-self: end; margin-top: 0; }
  #miniatures .attic__paper { inset: -7px; }
  #miniatures .attic__shot-tape { width: 70px; height: 20px; top: -18px; }
  #miniatures .attic__cap { font-size: 19px; margin-top: 16px; }
  #miniatures .attic__text { font-size: 18px; text-align: left; max-width: 34em; margin: 0 auto; }
  #miniatures .attic__ribbon { width: 46vw; right: -14vw; bottom: -4vw; }
  #miniatures .attic__tape { width: 58px; height: 18px; }

  /* making → a vertical build timeline */
  #miniatures .making__stage { height: auto; min-height: 0; overflow: clip; padding: 80px 0 70px; }
  #miniatures .making__track { position: relative; inset: auto; display: flex; flex-direction: column; padding: 0 18px; }
  #miniatures .making__mat { left: 10px; right: 10px; top: 18vw; bottom: 14vw; border-radius: 16px; background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px; }
  #miniatures .making__mat::before, #miniatures .making__mat::after { left: 14px; right: 14px; height: 8px; background-size: 12px 100%; }
  #miniatures .making__word { position: relative; left: auto; top: auto; font-size: 21vw; line-height: .9; }
  #miniatures .making__word--a { order: 0; align-self: flex-start; margin: 0 0 -4vw -1vw; }
  #miniatures .making__word--b { order: 20; align-self: flex-end; margin: -6vw -1vw 0 0; }
  #miniatures .making__scrap { display: none; }
  #miniatures .making__step, #miniatures .making__note, #miniatures .making__arrow { position: relative; left: auto; top: auto; }
  #miniatures .making__step { --ph: min(76vw, 430px); }
  #miniatures .making__pola img { height: auto; width: min(56vw, 320px); }
  #miniatures .making__step--1 { order: 1; align-self: flex-start; margin: 4vw 0 0 4vw; }
  #miniatures .making__note--1 { order: 2; align-self: flex-end; margin: -10vw 4vw 0 0; }
  #miniatures .making__arrow--1 { order: 3; align-self: flex-end; width: 34vw; margin: 0 16vw 0 0; rotate: 64deg; }
  #miniatures .making__step--2 { order: 4; align-self: flex-end; margin: 0 4vw 0 0; }
  #miniatures .making__note--2 { order: 5; align-self: flex-start; margin: -16vw 0 0 6vw; }
  #miniatures .making__arrow--2 { order: 6; align-self: flex-start; width: 30vw; margin: 6vw 0 0 14vw; rotate: 150deg; scale: 1 -1; }
  #miniatures .making__step--3 { order: 7; align-self: flex-start; margin: 2vw 0 0 4vw; }
  #miniatures .making__note--3 { order: 8; align-self: flex-end; margin: -10vw 2vw 0 0; }
  #miniatures .making__arrow--3 { order: 9; align-self: flex-end; width: 32vw; margin: 0 18vw 0 0; rotate: 60deg; }
  #miniatures .making__step--4 { order: 11; align-self: flex-end; margin: 0 6vw 0 0; }
  #miniatures .making__note--4 { order: 10; align-self: flex-start; margin: 2vw 0 6vw 8vw; font-size: 24px; }
  #miniatures .making__note { font-size: 21px; }
  #miniatures .making__num { width: 34px; height: 34px; font-size: 18px; left: -12px; top: -12px; }
  #miniatures .making__tape { width: 70px; height: 20px; top: -12px; }
  #miniatures .making__spark { width: 26px; height: 26px; }
  #miniatures .making__spark--1 { width: 32px; height: 32px; right: -18px; top: -16px; }
  #miniatures .making__spark--2 { left: -22px; }
  #miniatures .making__spark--3 { right: -22px; }
}

/* reduced motion: everything rests in its final place */
@media (prefers-reduced-motion: reduce) {
  #miniatures .making__spot { display: none; }
}
