/* De Beijer — Lookbook · Uitwerking (uitwerking.html) only. Linked after site.css (README C1).
   The viewer (a stage with a side toolbar), the ladder figure and the detail crops that follow it,
   the step compositions, the steps slider and the Styling teaser. */

/* ---------------------------------------------------------------- viewer: stage + side toolbar (N8)
   The stage is about two-thirds of v2's viewer height, and the render stands at 74 % of the stage
   with clear space on every side. The toolbar sits beside it from 1024 px, under it below that.
   Panel ground per colour-use.md §4: a light fabric on Diep Leigrijs 700, a dark one on
   Zacht Taupe 50. uitwerking.js sets --panel from the lightness of the chosen step. */
.studio {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 24px clamp(32px, 5vw, 72px); align-items: start;
}
.stage {
  position: relative; height: clamp(320px, 33vw, 480px); border-radius: var(--radius); overflow: hidden; isolation: isolate;
  background: var(--panel, var(--taupe-50)); transition: background-color .6s var(--ease);
}
.stage .ph-tex { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .06; }
.stage img.garment {
  position: absolute; left: 50%; top: 50%; height: 74%; width: auto; max-width: none; translate: -50% -50%;
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .28)); transition: opacity .3s var(--ease), transform .6s var(--ease);
}
.stage img.garment.is-swapping { opacity: 0; transform: translateY(8px); }
.stage-label { margin-top: 16px; font-size: 15px; font-weight: 500; line-height: 1.45; }
.stage-msg { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--body); }

/* toolbar groups, in the order of N8: Kledingstuk → Kleur → Tint → Beeldmerk */
.toolbar { display: grid; align-content: start; }
.tool { padding-block: 20px; border-top: 1px solid var(--line); }
.tool:first-child { padding-top: 0; border-top: 0; }
.tool-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; line-height: 1.3; }
.tool-head .tool-lbl { margin-bottom: 0; }
.tool-lbl { margin-bottom: 12px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; }
.tool-val { font-size: 14px; font-weight: 500; line-height: 1.1; text-align: right; }
.tool-note { font-size: 14px; line-height: 1.4; color: var(--body); }
.tints + .tool-note { margin-top: 10px; }
.tool-row { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }

/* segmented control: Quarter-zip · Pullover, Aan · Uit */
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 48px; box-shadow: inset 0 0 0 1px var(--line); }
.seg button { height: 40px; padding: 0 18px; border-radius: 40px; font-size: 15px; font-weight: 500; transition: background-color .2s, color .2s; }
.seg button:hover:not([aria-pressed="true"]):not([aria-disabled="true"]) { background: var(--wit); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--wit); }
.seg button[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }

/* colour swatches. A colour the garment has no image for stays, struck through (never hidden) */
.swatches { display: flex; flex-wrap: wrap; gap: 2px; margin-left: -6px; }
.sw { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.sw i { width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(44, 41, 31, .28); transition: transform .2s var(--ease), opacity .2s; }
.sw:hover:not([aria-disabled="true"]) i { transform: scale(1.1); }
.sw[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.sw[aria-disabled="true"] { cursor: not-allowed; }
.sw[aria-disabled="true"] i { opacity: .3; }
.sw[aria-disabled="true"]::after { content: ""; position: absolute; width: 30px; height: 1.5px; background: var(--ink); rotate: -45deg; opacity: .7; }

/* tints: small ladder swatches, labelled with the step, "Basis" first */
.tints { display: flex; flex-wrap: wrap; gap: 8px; }
.tint { display: grid; justify-items: center; gap: 6px; min-width: 44px; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.2; }
.tint i { width: 44px; height: 30px; border-radius: 4px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(44, 41, 31, .15); transition: transform .2s var(--ease); }
.tint:hover i { transform: translateY(-2px); }
.tint[aria-pressed="true"] i { box-shadow: inset 0 0 0 1px rgba(44, 41, 31, .15), 0 0 0 2px var(--taupe), 0 0 0 4px var(--ink); }
.tint[aria-pressed="true"] span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.no-js .toolbar, .no-js .stage-msg { display: none; }

/* ---------------------------------------------------------------- 01 ladder figure (follows the viewer)
   The chosen colour's full ladder, 950 … 50 (tint_ladders). The base step stands tall, as the
   brandguide draws it (pp. 26–29); the step shown in the viewer is underlined. */
.ladder {
  aspect-ratio: 1 / 1; border-radius: var(--radius); background: var(--wit);
  display: grid; align-content: center; padding: clamp(24px, 4vw, 48px);
}
.ladder-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; }
.ladder-cap strong { font-size: var(--fs-card); font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
.ladder-cap span { font-size: 14px; color: var(--body); font-variant-numeric: tabular-nums; }
.ladder-bars { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); align-items: end; height: clamp(120px, 15vw, 220px); margin-top: 28px; }
.ladder-bars i { position: relative; display: block; height: 58%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(44, 41, 31, .06); transition: height .5s var(--ease), background-color .5s var(--ease); }
.ladder-bars i.is-base { height: 100%; }
.ladder-bars i.is-on::after { content: ""; position: absolute; left: 18%; right: 18%; top: calc(100% + 6px); height: 2px; background: var(--ink); }
.ladder-steps { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); margin-top: 16px; font-size: 11px; font-weight: 500; text-align: center; font-variant-numeric: tabular-nums; color: var(--body); }
.ladder-steps .is-on { color: var(--ink); font-weight: 700; }
.ladder-note { margin-top: 20px; font-size: 14px; line-height: 1.45; color: var(--body); max-width: 30rem; }

/* ---------------------------------------------------------------- crop of a render (zoomed detail) */
.crop { aspect-ratio: 1 / 1; background-color: var(--panel, var(--taupe-50)); background-repeat: no-repeat; background-size: var(--z, 260%); background-position: var(--p, 50% 50%); border-radius: var(--radius); transition: background-color .5s var(--ease); }

/* ---------------------------------------------------------------- step compositions (renders, not lifestyle slots) */
.comp { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; isolation: isolate; background: var(--panel, var(--leigrijs-700)); }
.comp-tex { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; opacity: .07; }
.comp-g { position: absolute; bottom: 11%; height: 78%; width: auto; max-width: none; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .3)); }
.comp--pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; background: none; }
.comp--pair .crop { aspect-ratio: auto; }

/* ---------------------------------------------------------------- steps */
.steps { position: relative; }
.steps .sec-head { margin-bottom: 0; border-bottom: 0; padding-bottom: 32px; }
.steps-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 20px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.steps-ctrl { display: flex; flex: none; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.round { width: 48px; height: 48px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; transition: background-color .2s, color .2s; }
.round:hover:not(:disabled) { background: var(--blauw); color: var(--ink); box-shadow: none; }
.round:disabled { opacity: .35; cursor: default; }
.round svg { width: 18px; height: 18px; }
.step { display: none; }
.step.is-active { display: grid; animation: fade .45s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.no-js .step { display: grid; }
.no-js .step + .step { margin-top: 64px; }
.no-js .steps-ctrl { display: none; }

/* ---------------------------------------------------------------- 05 teaser: three Styling slots (N9, C6) */
.teaser { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.teaser .slot { aspect-ratio: 4 / 5; }
.teaser .slot .ph-garment { left: 50%; translate: -50% 0; height: 76%; bottom: 8%; transition: transform .6s var(--ease); }
.teaser .card:hover .ph-garment { transform: translateY(-6px); }
.teaser .slot.is-light .ph-tex { opacity: .08; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1023px) {
  .studio { grid-template-columns: minmax(0, 1fr); }
  .stage { height: clamp(260px, 36vw, 380px); }
  .toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .tool, .tool:first-child { padding-block: 16px 20px; border-top: 1px solid var(--line); }
}
@media (max-width: 767px) {
  .stage { height: auto; aspect-ratio: 6 / 5; }
  .toolbar { grid-template-columns: minmax(0, 1fr); }
  .teaser { grid-template-columns: minmax(0, 1fr); }
  .teaser .slot { aspect-ratio: 4 / 3; }
  .teaser .slot .ph-garment { height: 84%; bottom: 4%; }
}

/* Bart, 2026-10-06: no hairline above 02 Het beeldmerk, 03 Details, 04 Zo maak je het and 05 Styling (site.css draws it on .wrap),
   as on the Overzicht. 01 keeps it; the spacing stays. */
.section[aria-labelledby="beeldmerk-title"] > .wrap, .section[aria-labelledby="details-title"] > .wrap,
#stappen > .wrap, .section[aria-labelledby="teaser-title"] > .wrap { background: none; }

/* Bart, 2026-10-07: no hairline above 01 Kleur kiezen, none between the two Details rows (03), none under
   "Van kledingstuk tot beeldmerk" (04). The spacing stays. */
.section[aria-labelledby="kleur-title"] > .wrap { background: none; }
.section[aria-labelledby="details-title"] .split + .split { border-top: 0; }
.steps-head { border-bottom: 0; }
