/* EASE Approach: behaviour support training (service) page. Tokens from site.css / design-plan.md */

/* ===================== 1. Opener: split screen ===================== */
.op { position: relative; min-height: min(78svh, 820px); display: grid; grid-template-columns: minmax(0, 1fr) 46vw; align-items: stretch; overflow: clip; }
/* the text column runs from the site gutter to the photo, so headings use all the room beside it */
.op__wrap { grid-column: 1; grid-row: 1; position: relative; z-index: 2; display: flex; max-width: none; margin: 0; padding-left: max(var(--gut), (100vw - var(--wrap)) / 2); padding-right: clamp(32px, 4vw, 64px); }
.op__text { width: 100%; padding: clamp(28px, 5.5vh, 64px) 0 clamp(26px, 4.5vh, 48px); display: flex; flex-direction: column; justify-content: center; }
.op h1 { font-size: clamp(2.5rem, 4.5vw, 4.7rem); line-height: 1.04; margin-bottom: .38em; }
.op__lede { margin-bottom: clamp(20px, 3.4vh, 32px); }
.op__facts { list-style: none; margin: clamp(26px, 5vh, 52px) 0 0; padding: 18px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 22px; border-top: 1px solid rgba(5, 3, 70, .12); position: relative; }
.op__facts li { display: grid; gap: 10px; align-content: start; font-size: .95rem; line-height: 1.4; color: var(--ink); font-weight: 500; }
.op__facts svg { width: 30px; height: 30px; fill: none; stroke: var(--orange-d); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.op__media { grid-column: 2; grid-row: 1; position: relative; z-index: 1; min-height: 100%; background: var(--navy); overflow: hidden; }
.motion .op__media { clip-path: polygon(100% 0%, 100% 0%, 100% 100%, 100% 100%); }
.rv-safe .op__media { clip-path: none !important; }
.op__img { position: absolute; inset: -3%; }
.op__img img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; transform-origin: 50% 60%; }
.op__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4, 3, 52, .78) 0%, rgba(4, 3, 52, .2) 26%, rgba(4, 3, 52, 0) 42%); pointer-events: none; }
.op__line { position: absolute; z-index: 2; left: 0; right: 0; bottom: 3%; width: 100%; height: 80px; filter: drop-shadow(0 0 6px rgba(252, 103, 3, .55)); overflow: visible; pointer-events: none; }
.op__line path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.op__line .a { stroke: rgba(255, 255, 255, .92); stroke-width: 2.6; }
.op__line .b { stroke: var(--orange); stroke-width: 4; }
.op__chip { position: absolute; z-index: 3; left: 9%; bottom: calc(3% + 84px); margin: 0; display: inline-flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: var(--rb); background: rgba(255, 255, 255, .94); color: var(--navy); font-weight: 600; font-size: .92rem; }
.op__chip span { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(252, 103, 3, .6); }
.motion .op__chip span { animation: chipPulse 2.2s ease-out infinite; }
@keyframes chipPulse { to { box-shadow: 0 0 0 10px rgba(252, 103, 3, 0); } }
@media (max-width: 1100px) { .op__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .op { display: flex; flex-direction: column; min-height: 0; }
  .op__wrap, .op__text { display: contents; }
  .op h1, .op__lede, .op .btn-row, .op__facts { margin-left: var(--gut); margin-right: var(--gut); }
  .op h1 { order: 1; margin-top: 26px; }
  .op__lede { order: 2; }
  .op .btn-row { order: 3; }
  .op__media { order: 4; position: relative; min-height: 0; width: 100%; height: min(58svh, 500px); margin-top: 30px; }
  .motion .op__media { clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%); }
  .op__facts { order: 5; margin-top: 26px; margin-bottom: 30px; border-top: 0; padding-top: 0; }
  .op__chip { left: var(--gut); }
}

.op h1 .nw, main h2 em { white-space: nowrap; }
.steps-sec .drift { color: rgba(252, 103, 3, .15); height: 46%; }
.tabs-sec .drift { color: rgba(35, 48, 168, .13); height: 50%; }

/* ===================== 2. Modules: list + sticky pane ===================== */
.mods-sec { padding-bottom: clamp(70px, 8vw, 120px); }
.mods-sec .drift { height: 380px; }
.mod::after { content: ''; position: absolute; left: calc(-1 * clamp(40px, 4vw, 64px) + 1px); top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 3px; border: 2px solid var(--orange); opacity: 0; pointer-events: none; }
.motion .mod.is-on::after { animation: railPing 2s ease-out infinite; }
@keyframes railPing { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.mods__prog i::after { content: ''; position: absolute; top: 0; bottom: 0; width: 80px; right: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .8)); }
.motion .mods__prog i::after { animation: progGlint 2.4s ease-in-out infinite; }
@keyframes progGlint { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
@media (max-width: 900px) { .mod::after { display: none; } }
.mods__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px clamp(40px, 5vw, 90px); align-items: end; }
.mods__head h2 { margin: 0; }
.mods { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 90px); align-items: start; }
.mods__listwrap { position: relative; padding-left: clamp(40px, 4vw, 64px); }
.mods__rail { position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: rgba(255, 255, 255, .13); border-radius: 2px; }
.mods__rail i { position: absolute; inset: 0; background: linear-gradient(180deg, var(--orange), #FFB07A); transform-origin: 50% 0; transform: scaleY(0); border-radius: 2px; }
.mods__list { list-style: none; margin: 0; padding: 0; }
.mod { min-height: min(62vh, 560px); display: flex; flex-direction: column; justify-content: center; padding-block: 3vh; position: relative; }
.mod__img { display: none; }
.mod__n { font: italic 600 clamp(1.4rem, 1.8vw, 1.8rem)/1 var(--serif); color: var(--orange); margin: 0 0 14px; font-variant-numeric: tabular-nums; }
.mod__t { margin: 0 0 16px; font-size: clamp(1.6rem, 2.3vw, 2.15rem); line-height: 1.12; }
.mod__t button { all: unset; cursor: pointer; color: #fff; display: inline-flex; align-items: center; min-height: 44px; }
.mod__t button:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: 2px; }
.mod__p { color: rgba(232, 232, 248, .82); font-size: 1.08rem; margin: 0 0 18px; max-width: 40em; }
.mod__tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mod__tags li { font-size: .9rem; font-weight: 600; padding: 7px 12px; border-radius: var(--rb); border: 1px solid rgba(255, 255, 255, .22); color: #E8E8F8; }
.mod::before { content: ''; position: absolute; left: calc(-1 * clamp(40px, 4vw, 64px) + 1px); top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 3px; background: var(--navy); border: 2px solid rgba(255, 255, 255, .3); transition: background .5s, border-color .5s, transform .5s var(--ease-out); }
@media (min-width: 901px) {
  .motion .mod .mod__t button { color: #C4C4E4; transition: color .6s var(--ease-out); }
  .motion .mod .mod__p { color: #B9B9DC; transition: color .6s var(--ease-out); }
  .motion .mod.is-on .mod__t button { color: #fff; }
  .motion .mod.is-on .mod__p { color: rgba(232, 232, 248, .86); }
  .mod__t button:hover { color: #fff !important; }
  .mod.is-on::before { background: var(--orange); border-color: var(--orange); transform: scale(1.25); }
  .motion .mod .mod__tags li { transition: border-color .5s, background .5s; }
  .mod.is-on .mod__tags li { border-color: rgba(252, 103, 3, .55); background: rgba(252, 103, 3, .08); }
}
.mods__pane { position: sticky; top: calc(80px + 3vh); height: min(calc(100svh - 80px - 6vh), 76vh, 700px); }
.mods__frame { position: relative; height: 100%; border-radius: var(--r); overflow: hidden; background: #0b0a4a; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7); }
.mods__shot { position: absolute; inset: 0; visibility: hidden; }
.mods__shot.is-on { visibility: visible; z-index: 1; }
.mods__shot.is-in { visibility: visible; z-index: 2; }
.mods__br { position: absolute; inset: 0; }
.mods__br img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; }
.motion .mods__shot.is-on .mods__br { animation: breathe 14s ease-in-out infinite alternate; }
.mods__frame::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(0deg, rgba(4, 3, 52, .85) 0%, rgba(4, 3, 52, 0) 34%), linear-gradient(180deg, rgba(4, 3, 52, .45) 0%, rgba(4, 3, 52, 0) 20%); }
.mods__bar { position: absolute; z-index: 4; left: 0; right: 0; bottom: 0; padding: clamp(18px, 2.2vw, 28px); display: flex; align-items: baseline; gap: 18px; color: #fff; }
.mods__count { font: 600 .95rem/1 var(--sans); letter-spacing: .04em; font-variant-numeric: tabular-nums; flex: none; color: rgba(255, 255, 255, .8); }
.mods__count b { font: italic 600 2rem/1 var(--serif); color: var(--orange); letter-spacing: 0; display: inline-block; }
.mods__cap { font: 600 clamp(1.15rem, 1.5vw, 1.45rem)/1.2 var(--serif); }
.mods__prog { position: absolute; z-index: 4; left: 0; right: 0; top: 0; height: 3px; background: rgba(255, 255, 255, .15); }
.mods__prog i { position: absolute; inset: 0; background: var(--orange); transform-origin: left; transform: scaleX(.25); }
@media (max-width: 900px) {
  .mods__head { grid-template-columns: 1fr; }
  .mods { grid-template-columns: 1fr; }
  .mods__pane, .mods__rail { display: none; }
  .mods__listwrap { padding-left: 0; }
  .mods__list { display: grid; gap: 18px; }
  .mod { min-height: 0; padding: 0 20px 22px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r); overflow: hidden; }
  .mod::before { display: none; }
  .mod__img { display: block; aspect-ratio: 4 / 3; border-radius: var(--r) var(--r) 0 0; margin: 0 -20px 20px; }
  .mod__p { max-width: none; }
}

/* ===================== 3. Delivery steps ===================== */
.steps-sec { padding-block: clamp(76px, 8vw, 116px); }
.steps__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px clamp(40px, 5vw, 90px); align-items: end; }
.steps__head h2 { margin: 0; }
.steps-wrap { position: relative; --sg: clamp(16px, 2vw, 28px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 var(--sg); }
.step { display: grid; grid-template-rows: auto auto 1fr; align-content: start; }
.step__ph { aspect-ratio: 5 / 4; margin-bottom: 22px; }
.step__ph .br { animation: stepBreathe 7s ease-in-out infinite alternate; }
@keyframes stepBreathe { from { transform: scale(1.02) translateX(-1.5%); } to { transform: scale(1.12) translateX(1.5%); } }
.step:nth-child(2n) .step__ph .br { animation-delay: -6s; }
.step:nth-child(3n) .step__ph .br { animation-delay: -11s; }
.step__ph img { transition: filter .9s var(--ease-out); }
.motion .step:not(.is-on) .step__ph img { filter: grayscale(1) contrast(.9) brightness(1.05); }
.step__ph::after { content: ''; position: absolute; inset: 0; background: var(--shell); opacity: 0; transition: opacity .9s var(--ease-out); pointer-events: none; }
.motion .step:not(.is-on) .step__ph::after { opacity: .45; }
.step__n { position: relative; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r); background: #fff; color: var(--navy); border: 2px solid rgba(5, 3, 102, .18); font: 600 1.3rem/1 var(--serif); margin-bottom: 20px; transition: background .5s, color .5s, border-color .5s, transform .6s var(--ease-out); }
.step.is-on .step__n { background: var(--orange); color: var(--navy); border-color: var(--orange); transform: translateY(-3px); box-shadow: 0 10px 22px -10px rgba(226, 91, 0, .8); }
.step__txt h3 { font-size: clamp(1.15rem, 1.35vw, 1.35rem); line-height: 1.2; margin: 0 0 8px; }
.step__txt p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.steps__line { position: absolute; z-index: 1; overflow: visible; pointer-events: none;
  /* fallback before JS measures it: from the first marker's centre to the last one's */
  left: 24px; width: calc(100% - (100% - 4 * var(--sg)) / 5); top: 0; height: 4px; }
.steps__line line { fill: none; stroke-linecap: round; }
.steps__line .track { stroke: rgba(5, 3, 102, .16); stroke-width: 2; stroke-dasharray: 2 7; }
.steps__line .draw { stroke: var(--orange); stroke-width: 3; }
.steps__line .comet { stroke: #fff; stroke-width: 3; stroke-dasharray: 40 4000; stroke-dashoffset: 40; opacity: 0; }
.steps__line.is-done .comet { opacity: .95; animation: stepComet 4.8s linear infinite; }
@keyframes stepComet { from { stroke-dashoffset: 40; } to { stroke-dashoffset: var(--cl, -1200px); } }
@media (max-width: 1100px) and (min-width: 901px) { .step__txt h3 { font-size: 1.1rem; } .step__txt p { font-size: .95rem; } }
@media (max-width: 900px) {
  .steps__head { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .step { grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto; gap: 0 18px; }
  .step__n { grid-column: 1; grid-row: 1; margin: 0; align-self: start; }
  .step__ph { grid-column: 2; grid-row: 1; margin-bottom: 16px; aspect-ratio: 16 / 9; }
  .step__txt { grid-column: 2; grid-row: 2; }
  .steps__line { left: 0; top: 24px; width: 48px; height: calc(100% - 48px); }
}

/* ===================== 4. Settings tabs ===================== */
.tabs-sec { padding-block: clamp(76px, 8vw, 116px); }
.tabs__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px clamp(40px, 5vw, 90px); align-items: end; margin-bottom: clamp(28px, 3.4vw, 46px); }
.tabs__head h2 { margin: 0; }
.tabs__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: clamp(22px, 3vw, 40px); }
.no-js .tabs__list { display: none; }
.tab { position: relative; text-align: left; border: 0; border-radius: var(--rb); background: #fff; color: var(--navy); padding: 16px 20px 18px; display: grid; gap: 4px; overflow: hidden; transition: background .45s var(--ease-out), color .45s, transform .45s var(--ease-out); box-shadow: 0 1px 0 rgba(5, 3, 70, .06); }
.tab:hover { transform: translateY(-3px); }
.tab[aria-selected="true"] { background: var(--navy); color: #fff; }
.tab__l { font: 600 clamp(1.25rem, 1.6vw, 1.6rem)/1.1 var(--serif); }
.tab__s { font-size: .9rem; color: var(--muted); transition: color .45s; }
.tab[aria-selected="true"] .tab__s { color: rgba(232, 232, 248, .78); }
.tab__t { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; }
.tabs__panels { position: relative; }
.tabp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 5vw, 90px); align-items: center; }
.tabp:focus-visible { outline-offset: 8px; }
.js .tabp[hidden] { display: none; }
.no-js .tabp + .tabp { margin-top: 56px; }
.tabp__media { height: min(58vh, 540px); }
.tabp__frame { height: 100%; }
.tabp__frame .br img { object-position: 50% 30%; }
.tabp__tag { position: absolute; z-index: 2; top: 18px; left: 18px; background: rgba(255, 255, 255, .94); color: var(--navy); font: italic 600 1.1rem/1 var(--serif); padding: 9px 14px; border-radius: var(--rb); }
.tabp__text h3 { font-size: clamp(1.6rem, 2.3vw, 2.15rem); margin-bottom: 14px; }
.tabp__p { font-size: 1.1rem; color: var(--ink); margin-bottom: 26px; }
.tabp__k { font: 600 .95rem/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--royal); margin-bottom: 12px; }
.tabp__list { list-style: none; margin: 0 0 26px; padding: 0; border-top: 1px solid rgba(5, 3, 70, .12); }
.tabp__list li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(5, 3, 70, .12); font-weight: 500; }
.tabp__list svg { width: 40px; height: 14px; flex: none; fill: none; stroke: var(--orange-d); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabp .tlink svg { width: 18px; height: 12px; }
.tabp .tlink { min-height: 44px; }
@media (max-width: 900px) {
  .tabs__head { grid-template-columns: 1fr; }
  .tabs__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tab { padding: 12px 14px 14px; }
  .tab__s { display: none; }
  .tabp { grid-template-columns: 1fr; gap: 30px; }
  .tabp__media { height: min(52svh, 440px); }
}

/* ===================== 5. After the course ===================== */
.after { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 600px); justify-content: space-between; gap: clamp(40px, 5vw, 90px); align-items: center; }
.after__text h2 { margin-bottom: .4em; }
.after__list { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 4px; }
.after__list li { display: flex; gap: 16px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.after__list svg { width: 30px; height: 30px; flex: none; fill: none; stroke: #FFB07A; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; }
.after__list span { color: rgba(241, 241, 252, .82); }
.after__list strong { display: block; font: 600 1.2rem/1.25 var(--serif); color: #fff; margin-bottom: 2px; }
.vids { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); align-items: start; }
.vids__col { display: grid; gap: clamp(14px, 1.6vw, 22px); }
.vids__col:nth-child(2) { margin-top: clamp(30px, 4vw, 56px); }
.vid { position: relative; display: block; text-decoration: none; color: var(--ink); background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(2, 2, 40, .7); transition: box-shadow .5s; }
.vid__img { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.vid__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.vid:hover .vid__img img { transform: scale(1.06); }
.vid__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5, 3, 70, .4), rgba(5, 3, 70, 0) 55%); }
.vid__play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(255, 255, 255, .94); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(5, 3, 70, .35); transition: transform .5s var(--ease-out), background .4s; }
.vid__play svg { width: 22px; height: 22px; fill: var(--royal); margin-left: 3px; transition: fill .4s; }
.vid:hover .vid__play, .vid.is-playing .vid__play { transform: scale(1.12); background: var(--orange); }
.vid:hover .vid__play svg, .vid.is-playing .vid__play svg { fill: var(--navy); }
.vid__play::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); opacity: 0; }
.motion .vid.is-playing .vid__play::before { animation: playRing 1.8s ease-out infinite; }
@keyframes playRing { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.vid__meta { display: block; padding: 11px 16px 15px; }
.vid__meta small { display: block; font-size: .95rem; font-weight: 600; color: #B84A00; margin-bottom: 2px; }
.vid__meta strong { font: 600 1.15rem/1.25 var(--serif); color: var(--navy); }
.vid__prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(5, 3, 102, .08); }
.vid__prog i { position: absolute; inset: 0; background: var(--orange); transform-origin: left; transform: scaleX(0); }
@media (max-width: 960px) { .after { grid-template-columns: 1fr; } .vids { max-width: 640px; } }
@media (max-width: 520px) { .vid__meta { padding: 10px 12px 14px; } .vid__meta strong { font-size: 1rem; } .vid__play { width: 46px; height: 46px; margin: -23px 0 0 -23px; } }

/* ===================== 6. FAQ ===================== */
.faq-sec, .after-sec { padding-block: clamp(64px, 7vw, 104px); }
.after-sec .drift, .faq-sec .drift { height: 320px; }
.bst-cta .drift { height: 360px; }
.faqs { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 90px); align-items: start; }
.faqs__side .lede { margin-bottom: 30px; }
.faqs__media { margin-right: 18px; }
.faqs__frame { height: min(34vh, 320px); width: 100%; }
.faqs__frame .br img { object-position: 50% 45%; }
.faq { position: relative; }
.faq summary { transition: color .3s; }
.faq summary:hover { color: var(--royal); }
.faq summary i { transition: background .35s; }
.faq details[open] summary i { background: var(--orange); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: var(--navy); }
.faq__a { overflow: hidden; }
.faq__a p { margin: 0; }
.faq__a .tlink { min-height: 44px; margin-top: 8px; }
.faq__a .tlink svg { width: 18px; height: 12px; }
@media (max-width: 900px) { .faqs { grid-template-columns: 1fr; } .faqs__frame { max-height: 300px; } }

@media (max-width: 900px) { .after-sec .drift, .bst-cta .drift, .mods-sec .drift { inset: 0 0 auto 0; height: 300px; } }

/* ===================== 7. CTA ===================== */
@media (max-width: 900px) { .bst-cta__grid > .frame-wrap { order: 2; } }
