/* 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 .am-note { color: rgb(255 255 255 / .88); }
.scene .op-chip { color: #fff; background: rgb(7 9 16 / .94); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16); font-size: 15px; line-height: 1.25; transition: opacity .45s; }
.scene .op-chip.is-off { opacity: 0; }
.scene .op-chip--o { color: #FFC08F; box-shadow: inset 0 0 0 1px rgb(255 127 50 / .5); }
.scene .op-chip--aqua { color: #B5F2EA; box-shadow: inset 0 0 0 1px rgb(156 231 221 / .4); }
.scene .op-chip--warm { color: #FFE6C6; box-shadow: inset 0 0 0 1px rgb(255 214 160 / .32); }
.scene .op-chip--group { font-size: 16px; color: #fff; }
.scene:not(.is-active) .op-chip { transition: none; }
/* the side text over 3D sits on its own soft scrim */
.op-w .am--full .am-side { position: relative; }
.op-w .am--full .am-side::before { content: ""; position: absolute; z-index: -1; inset: -14px -22px; border-radius: 10px; background: radial-gradient(120% 120% at 30% 40%, rgb(5 6 10 / .7), rgb(5 6 10 / 0) 75%); pointer-events: none; }

/* ---------- 1 cover: the big name and the promise, clear of the brand lockup ---------- */
.op-cover .am-scrim--left { background: linear-gradient(90deg, rgb(4 5 9 / .94) 0, rgb(4 5 9 / .8) 26%, rgb(4 5 9 / .35) 46%, transparent 60%); }
.scene .op-cover .am--full { grid-template-rows: auto auto minmax(0, 1fr); row-gap: clamp(12px, 2vh, 22px); }
.op-cover .op-head { grid-column: 1; grid-row: 1; margin: 0; max-width: 8.4em; font-size: clamp(60px, 7.2vw, 128px); line-height: .95; letter-spacing: -.045em; font-weight: 500; color: #fff; position: relative; z-index: 2; text-wrap: balance; }
.op-cover .am-t { grid-row: 2; max-width: min(100%, 15em); font-size: clamp(22px, 2.1vw, 36px); line-height: 1.2; color: rgb(255 255 255 / .88); }
.op-cover .am-side { display: none; }

@media (max-width: 959px), (max-height: 599px) {
  .op-cover .op-head { font-size: clamp(40px, 11vh, 76px); max-width: 8.6em; }
  .op-cover .am-t { font-size: clamp(18px, 2.6vw, 24px); max-width: 16em; }
}
@media (max-height: 439px) {
  .op-cover .op-head { font-size: 42px; }
  .op-cover .am-t { font-size: 18px; }
}
@media (max-width: 759px) and (orientation: portrait) {
  .op-cover .op-head { font-size: clamp(44px, 13.5vw, 64px); }
  .op-cover .am-t { font-size: 20px; }
  .op-cover .am-scrim--left { background: linear-gradient(180deg, rgb(4 5 9 / .92) 0, rgb(4 5 9 / .7) 38%, transparent 58%); }
}

/* ---------- compact landscape: 3D scenes keep the title full width and the side text in a right column under it, so the 3D gets the left side ---------- */
@media (max-width: 959px) and (orientation: landscape), (max-height: 599px) and (orientation: landscape) {
  .scene.op-rc .am--full { grid-template-columns: minmax(0, 1fr) minmax(0, 15.5em); }
  .op-rc .am--full .am-t { grid-column: 1 / -1; max-width: 100%; }
  .op-rc .am--full .am-side { grid-column: 2; grid-row: 2 / 4; max-width: none; }
}

/* ---------- 3 es-risk: the quote and the rose / aqua chips ---------- */
.scene .op-chip--rose { color: #F2C2B6; box-shadow: inset 0 0 0 1px rgb(225 140 120 / .5); }
.op-quote { margin: 0; padding-left: 14px; border-left: 2px solid rgb(225 181 168 / .7); font-size: clamp(16px, 1.32vw, 21px); line-height: 1.45; color: #fff; max-width: 26em; }
@media (max-width: 959px), (max-height: 599px) { .op-quote { font-size: 15px; line-height: 1.38; padding-left: 10px; } }
.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 / .55); stroke-width: 1; transition: opacity .3s; }

/* ---------- 4 levers: the bell names (legend on small frames) ---------- */
.op-bleg { display: none; grid-template-columns: repeat(2, max-content); gap: 2px 16px; }
.op-bells.op-bl .op-bleg { display: grid; }
.op-bleg__r { display: flex; align-items: center; gap: 7px; font-size: 14px; line-height: 1.3; color: #FFE6C6; }
.op-bleg__r::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #FFE2B4; box-shadow: 0 0 8px rgb(255 226 180 / .7); }
.op-bleg__r.is-o { color: #FFC08F; }
.op-bleg__r.is-o::before { background: #FF8A3C; box-shadow: 0 0 8px rgb(255 138 60 / .8); }

@media (max-height: 439px) {
  .op-bleg { gap: 0 14px; }
  .op-bleg__r { line-height: 1.2; }
  .op-bells .am-side { gap: 6px; }
}
@media (max-width: 759px) and (orientation: portrait) {
  .op-w .am--full .am-side::before { inset: -10px -12px; }
}

/* levers (audit fix): numbered legend and the legend by group on small frames */
.op-bleg__r b { font-weight: 700; margin-right: 2px; font-variant-numeric: tabular-nums; }
.op-bleg--g { display: none; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.op-bells.op-bl .op-bleg--g { display: grid; }
.op-bleg__g { margin: 0; font-size: 14px; line-height: 1.3; color: rgb(255 255 255 / .88); }
.op-bleg__g i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.op-bleg__g b { font-weight: 600; color: #fff; }
/* week (audit fix): the days as a legend on small frames; the lamps carry the day numbers */
.op-dleg { display: none; gap: 1px; grid-template-columns: max-content; }
.op-terr.op-dl .op-dleg { display: grid; }
.op-dleg__r { font-size: 14px; line-height: 1.3; color: #FFE6C6; }
@media (max-height: 439px) {
  .op-bleg__g { line-height: 1.2; }
  .op-bleg--g { gap: 1px; }
  .op-dleg { grid-auto-flow: column; grid-template-rows: repeat(3, auto); grid-template-columns: none; gap: 0 14px; }
  .op-dleg__r { line-height: 1.22; }
}
