/* ch-open (ch-open.js): the cover, es-template, es-risk and levers. Every class starts with po-. */

/* ---------- shared ---------- */
.scene.po-w .ps-stack__i { display: grid; gap: 10px; justify-items: start; align-content: start; }
.scene.po-w .ps-note { color: rgb(255 255 255 / .88); }
.scene.po-w .ps-tag--line { color: rgb(255 255 255 / .84); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .28); }
/* labels over 3D: opaque chips, 15 px (14 on compact and phone) */
.scene .po-lab { font-size: 15px; line-height: 1.2; color: #fff; background: rgb(6 7 14 / .9); }
.scene .po-lab--o { box-shadow: inset 0 0 0 1px rgb(255 127 50 / .75), 0 0 18px -4px rgb(255 127 50 / .5); }
.scene .po-lab--w { box-shadow: inset 0 0 0 1px rgb(255 214 160 / .6), 0 0 16px -6px rgb(255 200 140 / .45); }
.scene .po-lab--a { box-shadow: inset 0 0 0 1px rgb(156 231 221 / .7), 0 0 18px -4px rgb(156 231 221 / .4); }
.scene .po-lab--g { box-shadow: inset 0 0 0 1px rgb(200 206 220 / .5); }
.scene .po-lab--grp { font-size: 16px; padding: 6px 12px; color: #FFE2C8; background: rgb(18 12 10 / .92); box-shadow: inset 0 0 0 1px rgb(255 178 122 / .55), 0 0 26px -2px rgb(255 140 70 / .45); }
.scene.po-w .ps-lead line { stroke: rgb(255 255 255 / .42); }

/* ---------- 1 cover: the big lesson name and the promise, at the left on a strong scrim, below the brand lockup ---------- */
.po-cover__scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgb(3 3 8 / .94) 0, rgb(3 3 8 / .8) 24%, rgb(3 3 8 / .42) 40%, transparent 54%); }
.scene .po-cover .ps--full { grid-template-rows: auto auto minmax(0, 1fr); row-gap: clamp(12px, 2vh, 24px); }
.po-cover .po-name { grid-column: 1; grid-row: 1; margin: 0; font-size: clamp(56px, 6.6vw, 120px); line-height: .94; letter-spacing: -.045em; font-weight: 500; color: #fff; position: relative; z-index: 2; text-shadow: 0 2px 30px rgb(0 0 0 / .6); }
.po-cover .po-name, .po-cover .po-name span { width: fit-content; }
.po-cover .po-name span { display: block; }
.po-cover .po-name span + span { color: #FFB27A; }
.po-cover .ps-t { grid-row: 2; max-width: min(100%, 14.5em); font-size: clamp(22px, 2.05vw, 36px); line-height: 1.2; color: rgb(255 255 255 / .88); text-shadow: 0 1px 18px rgb(0 0 0 / .7); }
.po-cover .ps-side { display: none; }

/* ---------- 4 levers: numbered chips (the number alone where the name does not fit), the scale's two words ---------- */
.scene .po-lab--lv { display: inline-flex; align-items: baseline; gap: 7px; }
.scene .po-lab--lv .po-n { font-weight: 700; font-variant-numeric: tabular-nums; color: #FFE2B4; }
.scene .po-lab--lv.po-lab--o .po-n { color: #FFB27A; }
.scene .po-lab--lv.is-num { min-width: 28px; justify-content: center; padding-left: 7px; padding-right: 7px; }
.scene .po-lab--lv.is-num .po-nm { display: none; }
.scene .po-sc { font-size: 15px; font-weight: 500; color: rgb(255 236 214 / .8); text-shadow: 0 1px 10px rgb(0 0 0 / .8); }
.scene .po-lab--grp.is-wrap { white-space: normal; max-width: 6.4em; padding: 4px 8px; text-align: center; line-height: 1.15; }

/* ---------- 3 es-risk: a soft dark scrim behind the text, so the bright horizon never runs under the source line ---------- */
.scene.po-geo .ps-side { position: relative; isolation: isolate; }
.scene.po-geo .ps-side::before { content: ""; position: absolute; inset: -40px -90px -56px -70px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgb(3 4 10 / .9), rgb(3 4 10 / .84) 62%, rgb(3 4 10 / .5) 82%, rgb(3 4 10 / 0) 100%); }

/* the 3D host clipped beside or below the text (compact and phone): a soft edge instead of a hard cut */
.scene .po-clipR { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.scene .po-clipR .ps-scrim, .scene .po-clipT .ps-scrim { display: none; }
.scene .po-clipT { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 26px); mask-image: linear-gradient(180deg, transparent 0, #000 26px); }

/* ---------- compact landscape ---------- */
@media (max-width: 959px) and (orientation: landscape), (max-height: 599px) and (orientation: landscape) {
  .scene.po-fern .ps--right { grid-template-columns: minmax(0, 1fr) minmax(0, 15em); }
  .scene .po-lab { font-size: 14px; }
  .scene .po-lab--grp { font-size: 14px; padding: 4px 9px; }
  .po-cover .po-name { font-size: clamp(44px, 12.5vh, 84px); }
  .po-cover .ps-t { font-size: clamp(18px, 2.6vw, 24px); max-width: 14em; }
  /* es-risk keeps its text in a right column so the shore has the height */
  .scene.po-geo .ps--full { grid-template-columns: minmax(0, 1fr) minmax(0, 17em); }
  .po-geo .ps--full .ps-t { grid-column: 1 / -1; max-width: 100%; }
  .po-geo .ps--full .ps-side { grid-column: 2; grid-row: 2 / 4; }
  /* levers: the sentence beside the title, so the ridge keeps the height */
  .scene.po-hills .ps--full { grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; }
  .po-hills .ps--full .ps-t { grid-column: 1; grid-row: 1; max-width: 100%; }
  .po-hills .ps--full .ps-side { grid-column: 2; grid-row: 1; align-self: end; max-width: 9em; }
  .scene .po-sc { font-size: 14px; }
}
@media (max-height: 439px) {
  .po-cover .po-name { font-size: 44px; }
  .po-cover .ps-t { font-size: 18px; }
  .scene .po-cover .ps--full { row-gap: 10px; }
}

/* ---------- phone ---------- */
@media (max-width: 759px) and (orientation: portrait) {
  .po-cover__scrim { background: linear-gradient(180deg, rgb(3 3 8 / .92) 0, rgb(3 3 8 / .7) 36%, rgb(3 3 8 / .2) 52%, transparent 62%); }
  .po-cover .po-name { font-size: clamp(52px, 16vw, 76px); }
  .po-cover .ps-t { font-size: 21px; max-width: 100%; }
  .scene .po-sc { font-size: 14px; }
}
