/* lisse-a "Morning / Night": the six sections of the Lisse board, direction A. Every section is a diptych: a night panel (the hesitation) and a
   morning panel (what the design does), joined by a wipe. Scoped under .dir-lisse-a, class prefix dla-. Markup: src/_includes/e2/theme/dir/lisse-a/*.njk,
   behaviour: e2-dir-lisse-a.js. Scroll-driven motion is transform / opacity / clip-path only; the before-states live under html.th-js (set by
   e2-theme.js unless reduced motion), and a calm block at the end (reduced motion, or a screen under 600px tall) shows every finished state, static. */

@property --o { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --pos { syntax: '<number>'; inherits: true; initial-value: 50; }

.dir-lisse-a {
  --ink: #1C1A18; --ivory: #F6F1EA; --blush: #E9D5CC; --lace: #EDE4D6; --rose: #B4625E; --rose-d: #9C4B47; --warm: #5A514B;
  --night: #14100E; --night-2: #211914; --candle: #E8B672;
  --f-disp: Fraunces, 'Iowan Old Style', Georgia, serif; --f-ui: 'Albert Sans', system-ui, -apple-system, sans-serif;
  --dla-pad: clamp(20px, 3.4vw, 48px); --ease: cubic-bezier(.2, .8, .2, 1);
  font-family: var(--f-ui);
}
.dir-lisse-a .e2-wrap, .dir-lisse-a [data-dir-root] { display: flex; flex-direction: column; gap: clamp(28px, 3.4vw, 48px); }
.dir-lisse-a img { display: block; }
/* On the real /lisse page the direction is two <div class="dir dir-lisse-a"> wrappers (layouts/case-study-e2.njk) inside .e2-cs__body > .e2-wrap: they carry the tokens and fonts down but add no box. */
div.dir-lisse-a { display: contents; }

/* ---------- the shared frame of a section ---------- */
.dir-lisse-a .dla-sec { --fg: var(--ivory); --mut: #d6cec3; --line: rgba(246, 241, 234, .16); position: relative; gap: 0; border-radius: 28px; overflow: clip; color: var(--fg); background: var(--night); font-family: var(--f-ui); }
.dir-lisse-a .dla-light { --fg: var(--ink); --mut: #4a423d; --line: rgba(28, 26, 24, .16); background: var(--ivory); }
.dir-lisse-a .dla-sec :focus-visible { outline: 2px solid var(--candle); outline-offset: 3px; }
.dir-lisse-a .dla-light :focus-visible { outline-color: var(--rose-d); }
.dir-lisse-a .dla-sec .th-hd { gap: 18px 56px; }
.dir-lisse-a .dla-sec .th-hd__eyebrow { color: var(--mut); font-size: 12px; letter-spacing: .1em; }
.dir-lisse-a .dla-sec .th-hd__title { font-family: var(--f-disp); font-weight: 300; font-size: clamp(44px, 6.2vw, 88px); line-height: .98; letter-spacing: -.025em; color: var(--fg); text-wrap: balance; }
.dir-lisse-a .dla-sec .th-hd__aside { max-width: 46ch; font-size: 17px; line-height: 1.55; color: var(--mut); }
.dir-lisse-a .dla-define, .dir-lisse-a .dla-opt, .dir-lisse-a .dla-design, .dir-lisse-a .dla-tests { padding: var(--dla-pad); gap: clamp(28px, 3.4vw, 48px); }

/* =====================================================================================================================
   01 Discover: a night still, the bedside note under it, three portraits that wipe from night to morning
   ===================================================================================================================== */
.dla-still { position: relative; margin: 0; height: clamp(340px, 33vw, 460px); overflow: hidden; }
.dla-still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.dla-still::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 10, 8, .92), rgba(14, 10, 8, .15) 62%), linear-gradient(90deg, rgba(14, 10, 8, .55), transparent 60%); }
.dla-still .dla-hd { position: absolute; z-index: 1; left: var(--dla-pad); right: var(--dla-pad); bottom: clamp(104px, 9vw, 128px); }
.dir-lisse-a .dla-still .th-hd__title { font-size: clamp(56px, 8vw, 120px); }

.dla-note { position: relative; z-index: 2; margin: calc(-1 * clamp(84px, 8vw, 112px)) var(--dla-pad) 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 8px clamp(28px, 4vw, 64px); padding: clamp(24px, 3vw, 40px) clamp(24px, 3.4vw, 48px) clamp(26px, 3vw, 40px); border-radius: 6px 6px 18px 6px;
  color: var(--ink); background: linear-gradient(180deg, rgba(28, 26, 24, .05) 1px, transparent 1px) 0 0 / 100% 34px, var(--ivory); box-shadow: 0 30px 50px -28px rgba(0, 0, 0, .8), 0 0 0 1px rgba(28, 26, 24, .08); }
.dla-note__k { grid-column: 1 / -1; margin: 0 0 6px; font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--warm); }
.dla-note__goal { margin: 0; font-family: var(--f-disp); font-weight: 300; font-size: clamp(24px, 2.5vw, 34px); line-height: 1.22; letter-spacing: -.012em; text-wrap: pretty; }
.dla-note__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; align-self: center; }
.dla-note__list li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; font-size: 16px; line-height: 1.5; color: #3a3430; }
.dla-note__n { display: grid; place-items: center; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; font: 500 12px/1 var(--mono); color: var(--ivory); background: var(--rose-d); }

.dla-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px clamp(14px, 2vw, 28px); padding: clamp(36px, 4vw, 56px) var(--dla-pad) var(--dla-pad); }
.dla-legend { grid-column: 1 / -1; display: flex; justify-content: space-between; margin: 0; font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mut); }
.dla-legend span:last-child { color: var(--candle); }

.dla-wipe { --p: 1; margin: 0; display: flex; flex-direction: column; gap: 16px; min-width: 0; container-type: inline-size; }
.th-js .dla-wipe { --p: 0; }
.dla-wipe__frame { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #0c0907; isolation: isolate; }
.dla-wipe__night, .dla-wipe__morn { position: absolute; inset: 0; }
.dla-wipe__morn { clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); }
.dla-wipe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dla-wipe__say { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 84px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.dla-wipe__k { font: 500 12px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.dla-wipe__say--night { background: linear-gradient(0deg, rgba(10, 7, 5, .94) 14%, rgba(10, 7, 5, 0)); color: var(--ivory); font-family: var(--f-disp); font-style: italic; font-weight: 300; font-size: clamp(22px, 2.1vw, 28px); line-height: 1.2; }
.dla-wipe__say--night .dla-wipe__k { font-family: var(--mono); font-style: normal; color: var(--candle); }
.dla-wipe__say--morn { background: linear-gradient(0deg, rgba(246, 241, 234, .96) 18%, rgba(246, 241, 234, 0)); color: var(--ink); font-size: 15px; line-height: 1.45; font-weight: 500; }
.dla-wipe__say--morn .dla-wipe__k { color: var(--rose-d); font-weight: 500; }
.dla-wipe__edge { position: absolute; z-index: 3; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: var(--ivory); box-shadow: 0 0 18px 2px rgba(246, 241, 234, .75); transform: translateX(calc(var(--p) * 100cqw)); opacity: calc(clamp(0, var(--p) * 30, 1) * clamp(0, (1 - var(--p)) * 30, 1)); }
.dla-wipe__cap { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 6px 10px; align-items: baseline; font-size: 15px; line-height: 1.5; color: var(--mut); }
.dla-wipe__cap b { font-family: var(--f-disp); font-weight: 400; font-size: 22px; line-height: 1.15; color: var(--ivory); }
.dla-wipe__cap > span:last-child { grid-column: 2; }
.dla-wipe__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }

/* =====================================================================================================================
   02 Define: five slim panels, one wipe sweeping left to right
   ===================================================================================================================== */
.dla-legend2 { display: flex; align-items: center; gap: 12px; margin: 0; font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.dla-legend2__bar { flex: 0 0 72px; height: 2px; background: linear-gradient(90deg, var(--night), var(--rose)); }
.dla-define .th-hd__aside.dla-legend2 { max-width: none; color: var(--warm); }

.dla-day { --p: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.th-js .dla-day { --p: 0; }
.dla-dp { box-shadow: 0 0 0 1px rgba(28, 26, 24, .18); --q: clamp(0, calc(var(--p) * 5.5 - var(--i)), 1); position: relative; height: clamp(500px, 40vw, 540px); border-radius: 18px; overflow: hidden; container-type: inline-size; isolation: isolate; background: var(--night); }
.dla-dp__night, .dla-dp__morn { position: absolute; inset: 0; display: flex; flex-direction: column; }
.dla-dp__night { background: var(--night); color: var(--ivory); }
.dla-dp__morn { background: var(--ivory); color: var(--ink); clip-path: inset(0 calc((1 - var(--q)) * 100%) 0 0); }
.dla-dp img { flex: none; width: 100%; height: 46%; object-fit: cover; }
.dla-dp__t { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 20px; min-height: 0; }
.dla-dp__no { font: 500 12px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--candle); }
.dla-dp__morn .dla-dp__no { color: var(--rose-d); }
.dla-dp__name { margin: 0; font-family: var(--f-disp); font-weight: 300; font-size: clamp(28px, 2.5vw, 36px); line-height: 1; letter-spacing: -.02em; }
.dla-dp__say { margin: 0; font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.dla-dp__say--night { font-family: var(--f-disp); font-style: italic; font-weight: 300; font-size: 19px; line-height: 1.3; color: #f1ebe2; }
.dla-dp__edge { position: absolute; z-index: 3; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: var(--rose); box-shadow: 0 0 16px 2px rgba(180, 98, 94, .5); transform: translateX(calc(var(--q) * 100cqw)); opacity: calc(clamp(0, var(--q) * 30, 1) * clamp(0, (1 - var(--q)) * 30, 1)); }

/* =====================================================================================================================
   03 Design: the unpacked morning. The ten home sections are tissue-wrapped layers, unwrapped one per scroll step; the cut-out of each lifts out
   beside it. Left = the night (the checklist, ticking gold as each layer opens), right = the morning (an ivory table, the 01 bedroom softened
   behind it). Class prefix dla2-; behaviour: e2-dir-lisse-a.js (writes --p live, --pm furthest, on [data-dir-scrub="unpack"]; the CSS does the
   motion with calc() of them, transform / opacity / clip-path only). Base rules are the FINISHED, FLAT state (reduced motion, phone, short
   screen, no JS); everything that moves sits in the one motion block, gated on html.th-js. The tissue is ONE custom property, --dla2-tissue.
   ===================================================================================================================== */
.dla-design { overflow: visible; }
/* the tissue background, in one place: the ivory tissue photograph under a cool dark wash (A's night ink), so an unopened layer reads as night; the
   wash is what the sheet loses when it lifts. The 560px twin under 700px. */
.dir-lisse-a { --dla2-tissue: linear-gradient(rgba(22, 18, 30, .56), rgba(22, 18, 30, .56)), url(/assets/img/case/lisse/dir/a/tissue.webp); }
@media (max-width: 699px) { .dir-lisse-a { --dla2-tissue: linear-gradient(rgba(22, 18, 30, .56), rgba(22, 18, 30, .56)), url(/assets/img/case/lisse/dir/a/tissue-sm.webp); } }
.dir-lisse-a .dla2-lbl { margin: 0; display: flex; align-items: center; gap: 14px; font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--candle); }
.dir-lisse-a .dla2-lbl::before { content: ""; width: 34px; height: 1px; background: var(--rose); }

.dir-lisse-a .dla2-track { --p: 1; --pm: 1; --sh: clamp(520px, calc(100vh - 190px), 720px); }
.dir-lisse-a .dla2-stage { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); border-radius: 28px; overflow: clip; isolation: isolate; background: var(--night);
  box-shadow: 0 40px 70px -36px rgba(0, 0, 0, .85), 0 0 0 1px rgba(246, 241, 234, .1); }

/* ---- left: the night, A's checklist ---- */
.dir-lisse-a .dla2-night { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; padding: clamp(18px, 2vw, 28px) clamp(16px, 2vw, 26px); color: var(--ivory);
  background: radial-gradient(120% 70% at 0% 0%, rgba(232, 182, 114, .08), transparent 60%), linear-gradient(180deg, var(--night-2), var(--night)); box-shadow: inset -1px 0 0 rgba(246, 241, 234, .1); }
.dir-lisse-a .dla2-count { margin: 0 0 10px; font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--candle); }
.dir-lisse-a .dla2-list { list-style: none; margin: 0; padding: 0; }
.dir-lisse-a .dla2-li { position: relative; border-top: 1px solid rgba(246, 241, 234, .1); }
.dir-lisse-a .dla2-li:first-child { border-top: 0; }
.dir-lisse-a .dla2-btn { display: grid; grid-template-columns: 34px minmax(0, 1fr) 24px; column-gap: 8px; align-items: center; width: 100%; min-height: 44px; padding: 4px 0; border: 0; border-radius: 0; background: transparent; text-align: left; font: inherit; color: #e9e0d4; cursor: pointer; transition: color .3s ease; }
.dir-lisse-a .dla2-no { font: 500 12px/1 var(--mono); letter-spacing: .06em; color: var(--candle); }
.dir-lisse-a .dla2-nm { font-family: var(--f-disp); font-weight: 400; font-size: 21px; line-height: 1.2; letter-spacing: -.01em; }
.dir-lisse-a .dla2-tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--night); background: var(--candle); transition: background-color .3s ease, color .3s ease, box-shadow .3s ease; }
.dir-lisse-a .dla2-btn[aria-current="true"]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--rose); }
@media (hover: hover) { .dir-lisse-a .dla2-btn:hover .dla2-nm { color: #fff; } }
.dir-lisse-a .dla2-note { display: grid; grid-template-rows: 1fr; margin: 0; padding-left: 42px; transition: grid-template-rows .4s var(--ease); }
.dir-lisse-a .dla2-note > span { min-height: 0; overflow: hidden; padding: 0 0 10px; font-size: 15px; line-height: 1.5; color: var(--ivory); }

/* ---- right: the morning, the unpacking table on ivory ---- */
.dir-lisse-a .dla2-morn { position: relative; isolation: isolate; min-width: 0; display: grid; align-content: center; justify-items: center; overflow: clip; container-type: inline-size; background: var(--ivory); }
.dir-lisse-a .dla2-morn::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(0deg, rgba(90, 81, 75, .05) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(90, 81, 75, .04) 0 1px, transparent 1px 4px); }
.dir-lisse-a .dla2-bed { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; opacity: .35; }
.dir-lisse-a .dla2-table { --tw: clamp(120px, min(290px, calc((100cqw - 190px) / 2), calc((var(--sh) - 100px) / 2.2)), 290px);
  display: grid; grid-template-columns: repeat(2, var(--tw)); justify-content: center; align-items: start; column-gap: 34px; padding: 30px 76px; max-width: 100%; }
.dir-lisse-a .dla2-col { position: relative; left: auto; top: auto; width: var(--tw); height: auto; transform: none; display: flex; flex-direction: column; gap: 5px; }
.dir-lisse-a .dla2-tile { --u: clamp(0, calc(var(--pm) * (var(--n) + 1) - var(--i) - .5), 1); --ue: calc(var(--u) * var(--u) * (3 - 2 * var(--u)));
  position: relative; width: 100%; aspect-ratio: 1440 / var(--h); background: #E9DFD0; box-shadow: 0 0 0 1px rgba(28, 26, 24, .12), 0 12px 22px -12px rgba(28, 26, 24, .55); }
.dir-lisse-a .dla2-tile > img:not(.dla2-cut) { position: absolute; left: 0; top: 0; display: block; width: 100%; height: 100%; max-width: none; }
.dir-lisse-a .dla2-tile__ink { clip-path: inset(0 calc((1 - var(--ue)) * 100%) 0 0); }
/* the tissue is the night: the photograph under the wash; it lifts off and the layer is morning. Each sheet sits at its own offset and scale (var(--i)) */
.dir-lisse-a .dla2-tis { display: block; position: absolute; inset: -3px; z-index: 2; transform-origin: 0 100%; pointer-events: none;
  background: var(--dla2-tissue) calc(var(--i) * 37%) calc(var(--i) * 53%) / calc(125% + var(--i) * 7%) auto no-repeat;
  box-shadow: inset 0 0 14px 1px rgba(10, 8, 14, .4), 0 4px 10px -6px rgba(28, 26, 24, .6);
  opacity: calc(.97 * (1 - var(--ue))); transform: rotate(calc((mod(var(--i), 3) - 1) * .8deg)) translate(calc(var(--ue) * 10%), calc(var(--ue) * -22%)) rotate(calc(var(--ue) * 6deg)); }
.dir-lisse-a .dla2-tile .dla2-cut { position: absolute; z-index: 3; top: 50%; width: var(--cw); height: auto; pointer-events: none; filter: drop-shadow(0 9px 8px rgba(28, 26, 24, .4));
  translate: 0 calc(-50% + (1 - var(--ue)) * 34px); rotate: calc(var(--cr) + (1 - var(--ue)) * -12deg); opacity: var(--ue); }
.dir-lisse-a .dla2-col:first-child .dla2-cut { right: calc(100% - 26px); }
.dir-lisse-a .dla2-col:last-child .dla2-cut { left: calc(100% - 26px); }

/* ---- motion: pinned, one layer unwraps per scroll step ---- */
@media (prefers-reduced-motion: no-preference) and (min-width: 700px) and (min-height: 600px) {
  .th-js .dir-lisse-a .dla2-track { --p: 0; --pm: 0; height: calc(var(--sh) + 140vh); }
  .th-js .dir-lisse-a .dla2-stage { position: sticky; top: 84px; height: var(--sh); }
  .th-js .dir-lisse-a .dla2-night { overflow: hidden; }
  .th-js .dir-lisse-a .dla2-btn { color: #c4baae; }
  .th-js .dir-lisse-a .dla2-tick { color: transparent; background: transparent; box-shadow: inset 0 0 0 1.5px rgba(246, 241, 234, .38); }
  .th-js .dir-lisse-a .dla2-li.is-done .dla2-btn { color: #e9e0d4; }
  .th-js .dir-lisse-a .dla2-li.is-done .dla2-tick { color: var(--night); background: var(--candle); box-shadow: none; }
  .th-js .dir-lisse-a .dla2-li.is-cur .dla2-btn { color: var(--ivory); }
  .th-js .dir-lisse-a .dla2-li:not(.is-cur) .dla2-note { grid-template-rows: 0fr; }
  .th-js .dir-lisse-a .dla2-li:not(.is-cur) .dla2-note > span { padding-bottom: 0; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 700px) and (min-height: 600px) and (max-height: 860px) {
  .th-js .dir-lisse-a .dla2-night { padding-block: 14px; }
  .th-js .dir-lisse-a .dla2-count { margin-bottom: 4px; }
  .th-js .dir-lisse-a .dla2-nm { font-size: 19px; }
  .th-js .dir-lisse-a .dla2-note > span { font-size: 14px; line-height: 1.42; }
}

/* ---- narrower ---- */
@media (max-width: 1099px) {
  .dir-lisse-a .dla2-stage { grid-template-columns: minmax(250px, 300px) minmax(0, 1fr); }
  .dir-lisse-a .dla2-nm { font-size: 19px; }
}
@media (max-width: 699px) {
  .dir-lisse-a .dla2-stage { grid-template-columns: 1fr; border-radius: 22px; }
  .dir-lisse-a .dla2-night { padding: 18px 16px; box-shadow: none; }
  .dir-lisse-a .dla2-btn[aria-current="true"]::before { left: -8px; }
  .dir-lisse-a .dla2-table { --tw: 100%; width: 100%; box-sizing: border-box; grid-template-columns: minmax(0, 1fr); row-gap: 5px; padding: 18px 16px; }
  .dir-lisse-a .dla2-col { width: 100%; }
  .dir-lisse-a .dla2-col:first-child .dla2-cut, .dir-lisse-a .dla2-col:last-child .dla2-cut { left: auto; right: 6px; top: auto; bottom: 6px; width: calc(var(--cw) * .82); translate: 0 0; }
}

/* ---- still: reduced motion, phone, short screen. Every layer unwrapped (no tissue), every note stacked, nothing pinned ---- */
@media (prefers-reduced-motion: reduce), (max-width: 699px), (max-height: 599px) {
  .dir-lisse-a .dla2-tis { display: none; }
  .dir-lisse-a .dla2-track { height: auto !important; }
  .dir-lisse-a .dla2-stage { position: static !important; height: auto !important; }
  .dir-lisse-a .dla2-note { transition: none; grid-template-rows: 1fr !important; }
  .dir-lisse-a .dla2-btn, .dir-lisse-a .dla2-tick { transition: none; }
}

/* short and wide (a landscape phone, or a window under 600px tall): the checklist gets wider so every stacked note is two lines, and the pinned run is not needed */
@media (max-height: 599px) and (min-width: 700px) {
  .dir-lisse-a .dla2-stage { grid-template-columns: minmax(300px, 540px) minmax(0, 1fr); }
  .dir-lisse-a .dla2-nm { font-size: 19px; }
  .dir-lisse-a .dla2-note { padding-left: 42px; }
  .dir-lisse-a .dla2-note > span { padding-bottom: 6px; font-size: 14px; line-height: 1.4; }
  .dir-lisse-a .dla2-night { padding-block: 14px; }
  .dir-lisse-a .dla2-un .th-hd__title { font-size: clamp(40px, 5vw, 60px); }
}

/* =====================================================================================================================
   04 Optimise: the comparison diptych
   ===================================================================================================================== */
.dla-opt__grid { display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 1fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.dla-cmp { --pos: 50; display: flex; flex-direction: column; gap: 12px; transition: --pos .45s var(--ease); }
.dla-cmp.is-drag { transition: none; }
.dla-cmp__lab { display: flex; justify-content: space-between; margin: 0; font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.dla-cmp__br { border-radius: 18px; background: var(--ivory); box-shadow: 0 30px 60px -34px rgba(28, 26, 24, .55), 0 0 0 1px rgba(28, 26, 24, .12); }
.dla-cmp__vp { background: var(--ivory); touch-action: pan-y; cursor: ew-resize; }
.dla-cmp__ghost { position: absolute; inset: 0; background: radial-gradient(60% 22% at 18% 6%, rgba(232, 182, 114, .22), transparent 70%), radial-gradient(50% 18% at 70% 96%, rgba(232, 182, 114, .14), transparent 70%), linear-gradient(180deg, #2a1f18, #130e0b); }
.dla-cmp__wire { position: absolute; inset: 0; width: 100%; height: 100%; }
.dla-cmp__wire rect, .dla-cmp__wire circle { fill: none; stroke: rgba(240, 226, 212, .46); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.dla-cmp__wire .wf { fill: rgba(240, 226, 212, .14); }
.dla-cmp__inkwrap { position: absolute; inset: 0; background: var(--ivory); clip-path: inset(0 0 0 calc(var(--pos) * 1%)); }
.dla-cmp .th-artboard { --k: tan(atan2(100cqw, 620px)); width: 620px; }
.dla-cmp__row { position: absolute; width: 524px; max-width: none; height: auto; }
.dla-hl { position: absolute; z-index: 2; border-radius: 4px; box-shadow: 0 0 0 2px var(--rose), 0 0 0 5px rgba(180, 98, 94, .22); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.dla-hl.is-on { opacity: 1; }
.dla-handle { position: absolute; z-index: 4; top: 0; bottom: 0; left: 0; width: 44px; margin-left: -22px; translate: calc(var(--pos) * 1cqw) 0; display: block; cursor: ew-resize; touch-action: pan-y; outline-offset: -2px; }
.dla-handle__line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--ivory); box-shadow: 0 0 0 1px rgba(28, 26, 24, .3), 0 0 16px rgba(246, 241, 234, .55); }
.dla-handle__grip { position: sticky; top: calc(50vh - 22px); margin: 0 auto; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--ink); background: var(--ivory); box-shadow: 0 0 0 2px var(--ink), 0 10px 22px rgba(0, 0, 0, .4); }
.dla-handle:focus-visible .dla-handle__grip { box-shadow: 0 0 0 2px var(--ink), 0 0 0 5px var(--rose); }
.dla-pin { position: absolute; z-index: 5; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; font: 400 21px/1 var(--f-disp); color: var(--ink); background: var(--ivory); box-shadow: 0 0 0 2px var(--ink), 0 8px 16px rgba(0, 0, 0, .32); cursor: pointer; touch-action: manipulation; transition: transform .2s var(--ease), background-color .2s ease; }
.dla-pin:hover { transform: scale(1.06); }
.dla-pin.is-on { color: #fff; background: var(--rose-d); box-shadow: 0 0 0 2px var(--ivory), 0 0 0 4px var(--ink), 0 8px 16px rgba(0, 0, 0, .32); }
.dla-cmp__hint { margin: 0; font: 500 12px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--warm); text-align: center; }

.dla-dec { list-style: none; margin: 0; padding: 0; position: sticky; top: 100px; display: flex; flex-direction: column; }
.dla-dec__li { border-top: 1px solid var(--line); }
.dla-dec__li:last-child { border-bottom: 1px solid var(--line); }
.dla-dec__h { display: flex; align-items: center; gap: 18px; width: 100%; min-height: 64px; padding: 12px 4px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; touch-action: manipulation; }
.dla-dec__n { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font: 400 18px/1 var(--f-disp); box-shadow: inset 0 0 0 1.5px var(--ink); transition: background-color .2s ease, color .2s ease; }
.dla-dec__t { font-family: var(--f-disp); font-weight: 400; font-size: clamp(21px, 2vw, 27px); line-height: 1.15; letter-spacing: -.01em; }
.dla-dec__li.is-on .dla-dec__n { color: #fff; background: var(--rose-d); box-shadow: none; }
.dla-dec__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.dla-dec__body > p { min-height: 0; overflow: hidden; margin: 0; padding: 0 4px 0 58px; font-size: 17px; line-height: 1.55; color: #3a3430; text-wrap: pretty; }
.dla-dec__li.is-on .dla-dec__body { grid-template-rows: 1fr; }
.dla-dec__li.is-on .dla-dec__body > p { padding-bottom: 22px; }

/* =====================================================================================================================
   Tokens: the vanity tray
   ===================================================================================================================== */
.dir-lisse-a .dla-tray { --th-ink: var(--ink); --th-line: rgba(28, 26, 24, .14); --th-spring: cubic-bezier(.3, 1.4, .5, 1); padding: var(--dla-pad); gap: clamp(24px, 3vw, 40px); background: var(--blush); color: var(--ink); --fg: var(--ink); --mut: var(--warm); font-family: var(--f-ui); }
.dla-tray :focus-visible { outline: 2px solid var(--rose-d); outline-offset: 3px; }
.dla-tray__bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid rgba(28, 26, 24, .16); }
.dla-tray__cap { margin: 0; font-family: var(--f-disp); font-weight: 300; font-size: clamp(30px, 3.4vw, 44px); line-height: 1; letter-spacing: -.02em; }
.dla-tray__sub, .dla-tray__lab { margin: 0; font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--warm); }
.dla-tray__top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 3.4vw, 48px); align-items: start; }
.dla-tray__tray { position: relative; display: flex; flex-direction: column; gap: 18px; padding: clamp(18px, 2.4vw, 30px); border-radius: 26px; background: linear-gradient(180deg, #f3e6dd, #e4cdc2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), inset 0 -10px 24px rgba(120, 70, 56, .14), 0 18px 30px -22px rgba(80, 40, 30, .55); }
.dla-sw { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 18px 14px; }
.dla-sw .th-swatch { gap: 0; align-items: center; text-align: center; }
.dla-sw .th-swatch__chip { width: min(100%, 118px); aspect-ratio: 1; margin: 0 auto 10px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .45), transparent 42%), var(--sw); box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .42), inset 0 0 0 6px color-mix(in srgb, var(--th-ink) 14%, transparent), 0 14px 18px -10px color-mix(in srgb, var(--th-ink) 62%, transparent); }
.dla-sw .th-swatch__name { font-family: var(--f-disp); font-weight: 400; font-size: 20px; line-height: 1.1; }
.dla-sw .th-swatch__hex { font: 500 12px/1.3 var(--mono); letter-spacing: .04em; color: var(--warm); }
@media (hover: hover) { .dla-sw .th-swatch:hover .th-swatch__chip { transform: translateY(-4px) rotate(-3deg); } }

.dla-mirror { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.dla-mirror__lab { align-self: flex-start; }
.dla-mirror__glass { position: relative; display: grid; place-items: center; width: min(100%, 360px); aspect-ratio: 1; border-radius: 50%; padding: 14%; background: radial-gradient(circle at 28% 22%, #fffaf3, #efe0d3 58%, #dcc5b8); box-shadow: 0 0 0 10px #c9a07e, 0 0 0 12px #8e6a4e, inset 0 0 40px rgba(120, 80, 60, .18), 0 24px 36px -20px rgba(70, 40, 30, .6); }
.dla-mirror__stem { width: 30px; height: 96px; margin-top: 10px; border-radius: 0 0 16px 16px; background: linear-gradient(90deg, #8e6a4e, #d2ab88 40%, #8e6a4e); box-shadow: 0 10px 14px -8px rgba(70, 40, 30, .6); }
.dla-types { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; text-align: center; }
.dla-type__meta { display: block; font: 500 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #4a423d; }
.dla-type__sample { margin: 4px 0 0; font-size: 22px; line-height: 1.15; color: var(--ink); }

.dla-drawers { display: flex; flex-direction: column; gap: 12px; }
.dla-drawer { display: flex; flex-direction: column; }
.dla-drawer__panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .4s var(--ease), visibility 0s linear .4s; }
.dla-drawer.is-open .dla-drawer__panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .4s var(--ease), visibility 0s; }
.dla-drawer__in { min-height: 0; overflow: hidden; }
.dla-drawer__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px 22px 20px; margin-bottom: 8px; border-radius: 18px; background: rgba(255, 255, 255, .5); box-shadow: inset 0 0 0 1px rgba(28, 26, 24, .1); }
.dla-drawer__h { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; padding: 0 22px; border: 0; border-radius: 16px; font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); background: linear-gradient(180deg, #f6ece4, #e9d6ca); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 1px 0 rgba(28, 26, 24, .16), 0 8px 14px -10px rgba(80, 40, 30, .5); cursor: pointer; touch-action: manipulation; }
.dla-drawer__knob { width: 44px; height: 14px; border-radius: 8px; background: linear-gradient(180deg, #d9b793, #a67d5c); box-shadow: 0 2px 4px rgba(60, 30, 20, .35); transition: transform .3s var(--ease); }
.dla-drawer__h[aria-expanded="true"] .dla-drawer__knob { transform: translateY(2px) scaleX(.82); }
.dla-b { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; font: 500 15px/1 var(--f-ui); letter-spacing: .02em; border-radius: 0; }
.dla-b--fill { color: var(--ivory); background: var(--ink); }
.dla-b--line { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.dla-chip { min-width: 44px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 0; font: 500 15px/1 var(--f-ui); color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px rgba(28, 26, 24, .35); cursor: pointer; touch-action: manipulation; }
.dla-chip[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.dla-chip__p { margin-left: 8px; color: var(--warm); font-weight: 400; }
.dla-price { font: 500 30px/1 var(--f-ui); letter-spacing: -.01em; }
.dla-price__note { font-size: 15px; color: var(--warm); }
.dla-tray .th-toast { position: absolute; z-index: 5; font-family: var(--f-ui); }

/* =====================================================================================================================
   Tests: three mornings after
   ===================================================================================================================== */
.dir-lisse-a .dla-tests { background: linear-gradient(180deg, var(--night) 0, #2a1d17 38%, #6b4a3e 78%, #b99484 100%); }
.dir-lisse-a .dla-mornings { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; gap: clamp(14px, 1.8vw, 24px); }
.dir-lisse-a .th-test.dla-mo { display: flex; flex-direction: column; grid-row: auto; grid-template-rows: none; border-radius: 18px 18px 22px 22px; color: var(--ink); background: var(--ivory); box-shadow: 0 30px 44px -26px rgba(0, 0, 0, .75); overflow: hidden; }
.dir-lisse-a .th-test.dla-mo:hover { background: var(--ivory); }
.dla-mo__sky { position: relative; height: 92px; background: linear-gradient(180deg, #1b1411 0, #5a3e33 46%, #e8c0a0 80%, #f6e6d4 100%); }
.dla-mo:nth-child(2) .dla-mo__sky { background: linear-gradient(180deg, #1b1411 0, #6a4a3b 30%, #e2b28f 66%, #f6e6d4 100%); }
.dla-mo:nth-child(3) .dla-mo__sky { background: linear-gradient(180deg, #1b1411 0, #7a5646 18%, #ecc3a2 50%, #f9eddf 100%); }
.dla-mo__sun { position: absolute; left: 50%; bottom: calc(-26px + var(--i) * 24px); width: 52px; height: 52px; margin-left: -26px; border-radius: 50%; background: radial-gradient(circle at 40% 36%, #fff6e2, #f2c47c 70%); box-shadow: 0 0 36px 10px rgba(242, 196, 124, .55); }
.dla-mo__no { margin: 0; padding: 18px clamp(22px, 2.4vw, 30px) 0; font: 500 12px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--warm); }
.dla-mo__rows { flex: 1; margin: 0; padding: 6px clamp(22px, 2.4vw, 30px) clamp(20px, 2.4vw, 28px); }
.dla-mo__row { display: flex; flex-direction: column; gap: 6px; padding: 16px 0; border-top: 1px solid rgba(28, 26, 24, .12); }
.dla-mo__row:first-child { border-top: 0; }
.dir-lisse-a .dla-mo dt { font: 500 12px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--rose-d); }
.dir-lisse-a .dla-mo__row--why dt { color: #4a423d; }
.dir-lisse-a .dla-mo dd { margin: 0; text-wrap: pretty; }
.dla-mo__row dd { font-family: var(--f-disp); font-weight: 400; font-size: clamp(20px, 1.7vw, 23px); line-height: 1.28; letter-spacing: -.01em; }
.dla-mo__row--why dd { font-family: var(--f-ui); font-size: 16px; line-height: 1.5; color: #4a423d; letter-spacing: 0; }
.dla-mo__foot { min-height: 116px; display: grid; grid-template-columns: 1fr 1fr; margin: 0; background: var(--lace); border-top: 1px solid rgba(28, 26, 24, .1); }
.dla-mo__foot > div { display: flex; flex-direction: column; gap: 6px; padding: 16px clamp(22px, 2.4vw, 30px) 20px; }
.dla-mo__foot > div + div { border-left: 1px solid rgba(28, 26, 24, .1); }
.dla-mo__foot dd { font-size: 15px; line-height: 1.4; color: var(--ink); }

/* ---------- reveals ---------- */
.th-js .dir-lisse-a [data-dir-reveal] { opacity: 0; translate: 0 22px; rotate: none; transition: opacity .6s ease, translate .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.th-js .dir-lisse-a [data-dir-reveal].dla-in { opacity: 1; translate: 0 0; }

/* =====================================================================================================================
   Widths
   ===================================================================================================================== */
@media (max-width: 1099px) {
  .dla-day { grid-template-columns: 1fr; gap: 14px; }
  .dla-dp { height: auto; aspect-ratio: auto; display: block; }
  .dla-dp__night, .dla-dp__morn { position: relative; inset: auto; display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); }
  .dla-dp__night { position: relative; }
  .dla-dp__morn { position: absolute; inset: 0; }
  .dla-dp img { height: 100%; min-height: 300px; }
  .dla-dp__t { justify-content: center; padding: 22px clamp(18px, 3vw, 32px); }
  .dla-dp__say--night { font-size: 22px; }
  .dla-dp__say { font-size: 16px; }
}
@media (max-width: 959px) {
  .dla-note { grid-template-columns: 1fr; }
  .dla-opt__grid { grid-template-columns: minmax(0, 1fr); }
  .dla-cmp { width: min(100%, 620px); margin-inline: auto; }
  .dla-dec { position: static; }
  .dla-tray__top { grid-template-columns: 1fr; }
  .dir-lisse-a .dla-mornings { grid-template-columns: 1fr; }
}
@media (max-width: 699px) {
  .dla-people { grid-template-columns: 1fr; }
  .dla-legend { display: none; }
  .dla-still { height: clamp(300px, 90vw, 380px); }
  .dla-still .dla-hd { bottom: 96px; }
  .dla-note { margin-inline: 12px; padding: 22px 20px; }
  .dla-wipe__frame { aspect-ratio: 4 / 5; }
  .dla-dp__night, .dla-dp__morn { grid-template-columns: minmax(0, 34%) minmax(0, 1fr); }
  .dla-dp img { min-height: 260px; }
  .dla-dp__t { padding: 16px 14px; gap: 8px; }
  .dla-dp__name { font-size: 26px; }
  .dla-dp__say--night { font-size: 18px; }
  .dla-dp__say { font-size: 14.5px; }

  .dla-opt__grid { gap: 28px; }
  .dla-dec__body > p { padding-left: 54px; }
  .dla-sw { gap: 16px 10px; }
  .dla-sw .th-swatch__name { font-size: 17px; }
  .dla-mirror__glass { width: min(100%, 320px); }
  .dla-mo__foot { grid-template-columns: 1fr; }
  .dla-mo__foot > div + div { border-left: 0; border-top: 1px solid rgba(28, 26, 24, .1); }
}

/* =====================================================================================================================
   Calm: reduced motion, or a screen under 600px tall. Every finished state, static: the wipes become a night panel over a morning one, the
   03's layers are unwrapped and its notes all shown, nothing is pinned, nothing animates.
   ===================================================================================================================== */
@media (prefers-reduced-motion: reduce), (max-height: 599px) {
  .dir-lisse-a [data-dir-reveal] { opacity: 1 !important; translate: none !important; transition: none !important; }
  .dir-lisse-a *, .dir-lisse-a *::before, .dir-lisse-a *::after { animation: none !important; }
  .dla-cmp, .dla-dec__body, .dla-drawer__panel { transition: none !important; }

  .dla-wipe__frame { aspect-ratio: auto; display: grid; gap: 10px; overflow: visible; background: none; }
  .dla-wipe__night, .dla-wipe__morn { position: relative; inset: auto; clip-path: none !important; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; }
  .dla-wipe__edge { display: none; }
  .dla-wipe__say { padding-top: 56px; }

  .dla-dp { height: auto; display: flex; flex-direction: column; gap: 0; border-radius: 18px; }
  .dla-dp__night, .dla-dp__morn { position: relative; inset: auto; clip-path: none !important; display: flex; flex-direction: column; }
  .dla-dp img { height: 120px; min-height: 0; }
  .dla-dp__edge { display: none; }
  .dla-dp__t { flex: none; }
  .dla-dp__morn { flex: 1; }

  .dla-dp, .dla-dp__night, .dla-dp__morn { transition: none !important; }
}
@media (prefers-reduced-motion: reduce) and (min-width: 1100px) {
  .dla-day { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media ((prefers-reduced-motion: reduce) or (max-height: 599px)) and (min-width: 1100px) {
  .dla-dp img { height: 110px; }
}
