/* Open the Van — pinned shutter reveal and load planner. */
.lr.open { position: relative; height: var(--lr-open-h, 340vh); background: var(--lr-night); color: var(--lr-white); }
.lr .open__pin { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.lr .open__stage { position: absolute; left: 50%; top: 50%; width: max(100vw, 177.78vh); aspect-ratio: 16 / 9; transform: translate(-50%, -50%); background: var(--lr-dusk); }
.lr .open__stage .open__img,
.lr .open__stage .open__video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* Measured on the open photo: opening 33.3–67.4% across, 21.1–74.8% down. */
.lr .open__stage .open__img--open { clip-path: inset(var(--reveal, 74.8%) 32.6% 25.2% 33.3%); }
.lr .open__stage .open__video { opacity: 0; }
.lr.open.has-video .open__video { opacity: 1; }
.lr.open.has-video .open__img--open { opacity: 0; }
.lr.open.is-done .open__img--open { opacity: 1; clip-path: none; }
.lr.open.is-done .open__video { opacity: 0; transition: opacity .3s; }

.lr .open__shade { position: absolute; inset: 0; pointer-events: none; opacity: var(--shade, 0);
	background: linear-gradient(90deg, rgba(13,22,36,.92) 0%, rgba(13,22,36,.75) 26%, rgba(13,22,36,0) 36%, rgba(13,22,36,0) 64%, rgba(13,22,36,.75) 74%, rgba(13,22,36,.92) 100%); }

.lr .open__lines { position: absolute; left: var(--lr-gut); right: var(--lr-gut); bottom: 9vh; text-align: center; pointer-events: none; }
.lr .open__line { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; font-weight: 600; font-size: clamp(28px, 3.4vw, 52px); letter-spacing: -0.03em; line-height: 1.05; text-shadow: 0 2px 24px rgba(0,0,0,.45); opacity: 0; transform: translateY(16px); transition: opacity .5s, transform .5s; }
.lr .open__line.is-on { opacity: 1; transform: none; }

/* Back wall of the open photo: 38.9–61.4% across, 28.3–69.9% down. 6 × 6 boxes. */
.lr .open__hold { position: absolute; left: 38.9%; top: 28.3%; width: 22.5%; height: 41.6%; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(6, 1fr); gap: 2px; padding: 0 2px; transition: opacity .3s; }
.lr.open:not(.is-done) .open__hold { opacity: 0; }
.lr .bx { position: relative; border-radius: 3px; background: linear-gradient(180deg, #d7ab6c 0%, #c4945a 60%, #b5864e 100%); box-shadow: inset 0 0 0 1px rgba(110,75,35,.35), 0 2px 3px rgba(0,0,0,.25); opacity: 0; transform: translateY(-40px); transition: opacity .25s, transform .4s cubic-bezier(.3,1.3,.5,1); }
.lr .bx::after { content: ""; position: absolute; left: 0; right: 0; top: 28%; height: 9%; background: rgba(235,210,160,.6); }
.lr .bx.is-on { opacity: 1; transform: none; }

.lr .planner { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; padding: 0 var(--lr-gut); max-width: 1600px; margin: 0 auto; pointer-events: none; opacity: 0; transition: opacity .5s; }
.lr.open.is-done .planner { opacity: 1; pointer-events: auto; }
.lr .planner__ask { max-width: min(420px, 27vw); }
.lr .planner__title { margin: 0; font-weight: 600; font-size: clamp(30px, 3vw, 46px); line-height: 1.04; letter-spacing: -0.03em; color: inherit; }
.lr .planner__hint { margin: 10px 0 0; color: rgba(255,255,255,.62); font-size: 15px; }
.lr .chips { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 28px; }
.lr .chip { height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background-color: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); color: var(--lr-white); font-family: var(--lr-font); font-weight: 500; font-size: 16px; line-height: 1.2; cursor: pointer; transition: background-color .15s, box-shadow .15s; }
.lr .chip:hover, .lr .chip:focus { background-color: rgba(255,255,255,.14); color: var(--lr-white); }
.lr .chip[aria-checked="true"], .lr .chip[aria-checked="true"]:hover, .lr .chip[aria-checked="true"]:focus { background-color: var(--lr-amber); color: var(--lr-night); box-shadow: none; font-weight: 600; }

.lr .fit { justify-self: end; width: min(400px, 27vw); background: var(--lr-white); color: var(--lr-ink); border-radius: var(--lr-r); overflow: hidden; }
.lr .fit__photo { aspect-ratio: 16 / 8; overflow: hidden; background: #e6e8eb; }
.lr .fit__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }
.lr .fit__body { padding: 20px 24px 24px; }
.lr .fit__k { margin: 0; font-size: 13.5px; color: var(--lr-steel); }
.lr .fit__name { margin: 2px 0 0; font-weight: 600; font-size: 28px; letter-spacing: -0.02em; line-height: 1.1; color: var(--lr-ink); }
.lr .fit__fill { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.lr .fit__bar { flex: 1; height: 8px; border-radius: 99px; background: var(--lr-paper); overflow: hidden; }
.lr .fit__bar i { display: block; height: 100%; width: var(--pct, 0%); background: var(--lr-amber); border-radius: 99px; transition: width .6s cubic-bezier(.2,.8,.2,1); }
.lr .fit__note { margin: 12px 0 18px; color: var(--lr-ink-2); font-size: 15.5px; line-height: 1.5; }
.lr .fit__book { width: 100%; }

/* Editor: finished state, no pinning. */
.lr.open.is-static { height: auto; }
.lr.open.is-static .open__pin { position: relative; }

/* No pinning below 900px: the shutter plays once in view. */
@media (max-width: 900px) {
	.lr.open, .lr.open.is-static { height: auto; padding-bottom: 48px; }
	.lr .open__pin, .lr.open.is-static .open__pin { position: relative; height: auto; overflow: hidden; }
	.lr .open__stage { position: relative; left: -50%; top: 0; transform: none; width: 200%; }
	.lr .open__shade, .lr .open__lines { display: none; }
	.lr .planner { position: static; opacity: 1; pointer-events: auto; grid-template-columns: 1fr; gap: 24px; padding: 28px var(--lr-gut) 0; }
	.lr .planner__ask, .lr .fit { max-width: none; width: 100%; }
	.lr .chips { flex-direction: row; flex-wrap: wrap; margin-top: 18px; }
	.lr .chip { height: 42px; padding: 0 16px; font-size: 15px; }
	.lr .fit { justify-self: stretch; display: grid; grid-template-columns: 40% 1fr; }
	.lr .fit__photo { aspect-ratio: auto; }
}

@media (max-width: 640px) {
	.lr .fit { grid-template-columns: 1fr; }
	.lr .fit__photo { aspect-ratio: 16 / 7; }
}
