/* 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 .ga-note { color: rgb(255 255 255 / .86); }
.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--aqua { color: #A8F0E6; }
.scene .op-lab--gold { color: #FFD98A; }
.scene .op-lab--warm { color: #FFE9CC; }
.scene .op-lab--o { color: #FFB27A; }
.scene .op-lab--axis { color: rgb(255 255 255 / .7); }
.scene .op-lab--group { font-size: 16px; color: #fff; padding: 4px 10px; border-radius: 4px; background: rgb(10 12 20 / .55); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); }
.scene .op-lab--step b, .op-wleg__r b { font-weight: 700; color: #A8F0E6; }
.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 / .38); stroke-width: 1; transition: opacity .3s; }

/* ---------- 1 cover: the big name and the promise, clear of the brand lockup ---------- */
.op-cover .ga-scrim--left { background: linear-gradient(90deg, rgb(5 5 6 / .92) 0, rgb(5 5 6 / .72) 30%, rgb(5 5 6 / .25) 50%, transparent 62%); }
.scene .op-cover .ga--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, 8.4vw, 150px); line-height: .92; letter-spacing: -.045em; font-weight: 500; color: #fff; position: relative; z-index: 2; }
.op-cover .ga-t { grid-row: 2; max-width: min(100%, 15em); font-size: clamp(24px, 2.3vw, 40px); line-height: 1.15; color: rgb(255 255 255 / .88); }
.op-cover .ga-side { display: none; }

/* ---------- 33 week: the steps' labels (and the legend used on small frames) ---------- */
.scene .op-lab--step { font-size: 15px; }
.op-wleg { display: none; gap: 6px; }
.op-week.op-legend .op-wleg { display: grid; }
.op-wleg__r { font-size: 15px; line-height: 1.35; color: rgb(255 255 255 / .9); }

/* ---------- compact landscape ---------- */
@media (max-width: 959px) and (orientation: landscape), (max-height: 599px) {
  .op-cover .op-brand { font-size: clamp(48px, 13vh, 88px); }
  .op-cover .ga-t { font-size: clamp(20px, 2.8vw, 26px); max-width: 15em; }
  /* the week keeps its text in a right column so the staircase has room */
  .scene.op-week .ga--full { grid-template-columns: minmax(0, 1fr) minmax(0, 17em); }
  .op-week .ga--full .ga-t { grid-column: 1 / -1; max-width: 100%; }
  .op-week .ga--full .ga-side { grid-column: 2; grid-row: 2 / 4; }
  .op-wleg { gap: 4px; }
  .op-wleg__r { font-size: 14px; line-height: 1.3; }
}
@media (max-height: 439px) {
  .op-cover .op-brand { font-size: 52px; }
  .op-cover .ga-t { font-size: 20px; }
}

/* ---------- phone ---------- */
@media (max-width: 759px) and (orientation: portrait) {
  .op-cover .op-brand { font-size: clamp(56px, 17vw, 80px); }
  .op-cover .ga-t { font-size: 22px; }
  .op-cover .ga-scrim--left { background: linear-gradient(180deg, rgb(5 5 6 / .9) 0, rgb(5 5 6 / .6) 40%, transparent 60%); }
  .op-wleg__r { font-size: 15px; }
  .scene .op-lab--group { font-size: 15px; padding: 3px 8px; }
}
/* the ten lever names as a legend under the title on phones */
.op-kleg { display: none; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.op-kites.op-kl .op-kleg { display: grid; }
.op-kleg__r { display: flex; align-items: center; gap: 7px; font-size: 14px; line-height: 1.25; color: #FFE9CC; }
.op-kleg__r i { flex: none; width: 9px; height: 9px; transform: rotate(45deg); background: #FFE2B4; box-shadow: 0 0 8px rgb(255 226 180 / .7); }
.op-kleg__r.is-o { color: #FFB27A; }
.op-kleg__r.is-o i { background: #FF8A3C; box-shadow: 0 0 8px rgb(255 138 60 / .8); }
/* compact landscape: the short-version scenes keep their text in a right column so the 3D has room */
@media (max-width: 959px) and (orientation: landscape), (max-height: 599px) {
  .scene.op-roots .ga--full, .scene.op-ship .ga--full { grid-template-columns: minmax(0, 1fr) minmax(0, 17em); }
  :is(.op-roots, .op-ship) .ga--full .ga-t { grid-column: 1 / -1; max-width: 100%; }
  :is(.op-roots, .op-ship) .ga--full .ga-side { grid-column: 2; grid-row: 2 / 4; }
}
@media (max-height: 439px) {
  .scene.op-week .ga--full { grid-template-columns: minmax(0, 1fr) minmax(0, 21em); }
  .op-wleg { gap: 2px; }
  .op-wleg__r { font-size: 14px; line-height: 1.25; }
}

/* ---------- fix round (27 Nov) ---------- */
/* week: each day label sits on its own dark chip, so a glass step never runs through the words */
.scene .op-lab--step { padding: 3px 9px; border-radius: 4px; background: rgb(4 7 12 / .78); box-shadow: inset 0 0 0 1px rgb(156 231 221 / .22); text-shadow: none; }
/* es-auto and es-leaks on compact: the side column gets a dark backdrop so the ground line never runs through it */
@media (max-width: 959px) and (orientation: landscape), (max-height: 599px) {
  :is(.op-roots, .op-ship) .ga--full .ga-side { position: relative; z-index: 3; padding: 8px 10px; margin: -8px -10px 0; border-radius: 6px; background: rgb(5 5 6 / .82); align-self: start; }
}
/* audit fix round: kite names and the root-net label on dark chips */
.scene .op-lab--kchip, .scene .op-lab--chip { padding: 2px 8px; border-radius: 4px; background: rgb(6 8 14 / .8); text-shadow: none; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12); }
.op-col .op-lab--kchip { background: none; padding: 0; box-shadow: none; line-height: 1.2; text-shadow: 0 1px 10px rgb(0 0 0 / .85); }
.scene .op-lab--kchip, .scene .op-lab--chip { background: rgb(6 8 14 / .96); }
.op-lead line { stroke: rgb(255 255 255 / .5); }
