/* ch-open: the short version, the ten levers and the plan (ch-open.js). Every class starts with op-. */

/* ---------- shared ---------- */
.op-stack { display: grid; }
.op-stack__i { display: grid; gap: 10px; align-content: start; }
.op-w .ig-note { color: rgb(255 255 255 / .86); }
.op-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.scene .op-lab { font-size: 15px; line-height: 1.25; font-weight: 500; color: #fff; transition: opacity .45s; text-shadow: 0 1px 12px rgb(0 0 0 / .85), 0 0 2px rgb(0 0 0 / .6); }
.scene .op-lab.is-off { opacity: 0; }
.scene .op-lab--chip { padding: 3px 9px; border-radius: 4px; background: rgb(6 8 14 / .9); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); text-shadow: none; }
.scene .op-lab--lilac { color: #E3D8F7; box-shadow: inset 0 0 0 1px rgb(205 189 235 / .3); }
.scene .op-lab--gold { color: #FFC58A; box-shadow: inset 0 0 0 1px rgb(255 127 50 / .45); }
.scene .op-lab--o { color: #FFB27A; box-shadow: inset 0 0 0 1px rgb(255 127 50 / .4); }
.scene .op-lab--warm { color: #FFEBD2; }
.scene .op-lab--group { font-size: 16px; padding: 4px 10px; border-radius: 4px; color: #fff; background: rgb(8 10 18 / .78); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); text-shadow: none; }
.op-lead { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.op-lead line { stroke: rgb(255 255 255 / .45); stroke-width: 1; transition: opacity .3s; }

/* legends that replace 3D labels on compact and phone frames */
.op-leg { display: none; gap: 4px 14px; }
.op-legmode .op-leg { display: grid; }
.op-leg--two { grid-template-columns: 1fr 1fr; }
.op-leg__r { display: flex; align-items: baseline; gap: 8px; font-size: 14px; line-height: 1.3; color: #FFEBD2; }
.op-leg__r i { flex: none; width: 8px; height: 8px; transform: translateY(-1px) rotate(45deg); background: #FFE6C4; box-shadow: 0 0 8px rgb(255 230 196 / .7); }
.op-leg--days { gap: 6px; }
.op-leg--days .op-leg__r { display: block; color: rgb(255 255 255 / .88); }
.op-leg--days .op-leg__r b, .scene .op-lab--day b { font-weight: 700; color: #FFC58A; margin-right: 6px; }
.op-legmode .op-lab--day { display: none; }

/* ---------- 1 cover: the big name and the promise, clear of the brand lockup, on a strong scrim ---------- */
.op-cover .ig-scrim--left { background: linear-gradient(90deg, rgb(5 5 6 / .95) 0, rgb(5 5 6 / .84) 32%, rgb(5 5 6 / .4) 50%, transparent 64%); }
.scene .op-cover .ig--full { grid-template-rows: auto auto minmax(0, 1fr); row-gap: clamp(10px, 1.8vh, 20px); }
.op-cover .op-brand { grid-column: 1; grid-row: 1; margin: 0; font-size: clamp(64px, 8vw, 144px); line-height: .94; letter-spacing: -.045em; font-weight: 500; color: #fff; position: relative; z-index: 2; max-width: 6.5em; }
.op-cover .ig-t { grid-row: 2; max-width: min(100%, 14em); font-size: clamp(24px, 2.3vw, 40px); line-height: 1.15; color: rgb(255 255 255 / .9); }
.op-cover .ig-side { display: none; }

/* ---------- 34 week: day labels under each panel ---------- */
.scene .op-lab--day { white-space: normal; font-size: 15px; line-height: 1.3; padding: 5px 9px; border-radius: 4px; background: rgb(6 6 10 / .86); box-shadow: inset 0 0 0 1px rgb(255 197 138 / .22); text-shadow: none; text-align: center; color: rgb(255 255 255 / .9); }
.scene .op-lab--day b { display: block; margin: 0 0 1px; }

/* ---------- compact landscape: the text in a right column, so the 3D keeps the room on the left ---------- */
@media (max-width: 959px) and (orientation: landscape), (max-height: 599px) {
  .op-cover .op-brand { font-size: clamp(48px, 13vh, 88px); }
  .op-cover .ig-t { font-size: clamp(20px, 2.8vw, 26px); max-width: 15em; }
  .scene.op-rc .ig--full { grid-template-columns: minmax(0, 1fr) minmax(0, 17em); }
  .op-rc .ig--full .ig-t { grid-column: 1 / -1; max-width: 100%; }
  .op-rc .ig--full .ig-side { grid-column: 2; grid-row: 2 / 4; position: relative; z-index: 3; padding: 8px 10px; margin: -8px -10px 0; border-radius: 6px; background: rgb(5 5 6 / .82); align-self: start; }
  .scene.op-garden .ig--full { grid-template-columns: minmax(0, 1fr) minmax(0, 22em); }
  .scene .op-lab--group { font-size: 14px; padding: 3px 7px; }
  .scene .op-lab--chip { padding: 2px 6px; }
  .op-leg--days { gap: 3px; }
  .op-leg--days .op-leg__r { line-height: 1.28; }
}
@media (max-height: 439px) {
  .op-cover .op-brand { font-size: 52px; }
  .op-cover .ig-t { font-size: 20px; }
}

/* ---------- phone ---------- */
@media (max-width: 759px) and (orientation: portrait) {
  .op-cover .op-brand { font-size: clamp(54px, 16vw, 78px); }
  .op-cover .ig-t { font-size: 22px; }
  .op-cover .ig-scrim--left { background: linear-gradient(180deg, rgb(5 5 6 / .92) 0, rgb(5 5 6 / .62) 42%, transparent 62%); }
  .scene .op-lab--group { font-size: 15px; padding: 3px 8px; }
  .op-leg--two { gap: 3px 10px; }
}

/* levers on small frames, beat 2: the three groups as a legend whose dots match the pools of light */
.op-leg--groups { gap: 6px; }
.op-legg { display: grid; gap: 1px; font-size: 14px; line-height: 1.3; color: rgb(255 255 255 / .84); }
.op-legg b { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; }
.op-legg b i { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.op-legg span { padding-left: 17px; }
/* levers (zen garden): opaque chips so a stone or the gravel never shows through a name */
.scene .op-lab--solid { background: #070910; }
.scene .op-lab--group.op-lab--solid { display: inline-flex; align-items: center; gap: 7px; }
.scene .op-lab--group i { flex: none; width: 8px; height: 8px; border-radius: 50%; }
/* week with two staggered label rows: the day and its task run inline, so a chip needs only two or three short lines */
.scene.op-stag .op-lab--day { text-align: left; padding: 3px 7px; line-height: 1.22; font-size: 14px; }
.scene.op-stag .op-lab--day b { display: inline; margin-right: 5px; }
/* week on short frames: the plan printed on the lit paper of each panel */
.op-print { display: none; position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; overflow: hidden; font-size: 14px; line-height: 1.2; font-weight: 500; color: #2a1a10; transition: opacity .4s; }
.op-printmode .op-print { display: block; }
.op-print b { display: block; font-weight: 700; color: #b4501a; margin-bottom: 2px; }
.op-printmode .op-lab--day { display: none; }
.scene:not(.is-active) .op-print { opacity: 0 !important; }
/* es-strangers on very short frames: a narrower text column gives the wire and the flock more width */
@media (max-height: 439px) and (orientation: landscape) {
  .scene.op-birds .ig--full, .scene.op-maze .ig--full { grid-template-columns: minmax(0, 1fr) minmax(0, 15em); }
}

/* levers legends on small frames: one name per line, never broken inside a name; beat 1 in two columns of names, beat 2 in two
 * columns of groups (first and third group on the left, the second on the right) */
.op-leg--names { grid-template-rows: repeat(4, auto); grid-auto-flow: column; grid-auto-columns: max-content; gap: 2px 14px; }
.op-legmode .op-leg--names { display: grid; }
.op-leg--names .op-leg__r { white-space: nowrap; gap: 6px; }
.op-leg--names .op-leg__r i { width: 7px; height: 7px; }
.op-leg--groups .op-legg { gap: 0; line-height: 1.24; }
.op-leg--groups .op-legg span { display: block; white-space: nowrap; padding-left: 17px; }
.op-leg--groups .op-legg b { white-space: nowrap; }
@media (max-width: 759px) and (orientation: portrait) {
  .op-leg--names { gap: 2px 10px; }
  .op-leg--groups { gap: 6px 10px; }
  .op-leg--groups .op-legg span { padding-left: 0; }
}
/* levers beat 2 legend (small frames): the three groups, one per line */
.op-leg--groups { grid-template-columns: max-content; gap: 4px; }
/* week: larger printed text on tall frames */
@media (min-height: 600px) { .op-print { font-size: 16px; line-height: 1.25; } }
.scene .op-lab--name { font-weight: 700; }
