/*
 * The "how it works" explainers: drawing styles for the .hiw blocks
 * (drawings in WEB-INF/hiw/*.xhtml, player assets/js/how-it-works.js).
 *
 * Every size inside the stage is in em, and 1em is 1% of the block's width (2% when the
 * two panes are stacked on a narrow screen), so one drawing serves a phone, a desktop
 * page and the 1920x1080 video. The player sets data-<name> on .hiw-stage; the rules
 * below draw each state. Pieces: a phone and a browser window (cards, buttons, a
 * stepper), the mail desk, two people talking, and a form being completed.
 *
 * Bump ?v= at every reference when this file changes. No HTML comments in here.
 */
.hiw-section { padding: 3.5rem 0; background: #f7f6f2; }
.hiw-section .hiw-head { max-width: 46rem; margin: 0 auto 1.5rem; text-align: center; }
.hiw-section .hiw-head h2 { font-family: var(--font-display, 'Source Serif 4', Georgia, serif); color: #0a2540; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .5rem; }
.hiw-section .hiw-head p { color: #5b6b80; margin: 0; }
.hiw-kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #8a6d14; margin-bottom: .4rem; }

.hiw { container-type: inline-size; max-width: 62rem; margin: 0 auto; background: #fff; border: 1px solid #e3ded0; border-radius: 16px; padding: 14px; box-shadow: 0 10px 30px rgba(10, 37, 64, .07); }
.hiw *, .hiw *::before, .hiw *::after { box-sizing: border-box; }
.hiw-stage { position: relative; font-size: 1cqw; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5em; padding: 1.5em; background: #efede4; border-radius: 10px; overflow: hidden; color: #1a1a2e; font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; line-height: 1.3; }
.hiw-pane { position: relative; height: 37em; border-radius: 1.2em; background: #fff; overflow: hidden; }
.hiw-where { position: absolute; left: 1.4em; top: 1.1em; font-size: 1.25em; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #8a6d14; z-index: 3; }
@container (max-width: 620px) {
    .hiw-stage { font-size: 2cqw; grid-template-columns: 1fr; }
    .hiw-pane { height: 36.6em; }
}

/* ---- caption, progress and buttons (built by the player) ---- */
.hiw-caption { padding: 14px 6px 4px; min-height: 6.6rem; }
.hiw-step { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a6d14; min-height: 1em; }
.hiw-title { font-family: var(--font-display, 'Source Serif 4', Georgia, serif); font-size: 1.3rem; font-weight: 600; color: #0a2540; margin: .15rem 0 .2rem; line-height: 1.25; }
.hiw-sub { color: #44506a; margin: 0; font-size: 1rem; line-height: 1.45; }
.hiw-bars { display: flex; gap: 5px; padding: 8px 6px 0; }
.hiw-bars button { flex: 1; border: 0; background: none; padding: 8px 0; cursor: pointer; }
.hiw-bars span { display: block; height: 4px; border-radius: 2px; background: #e3ded0; overflow: hidden; }
.hiw-bars i { display: block; height: 100%; width: 0; background: #C9A227; }
.hiw-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px; }
.hiw-ctl button { border: 1px solid #d9d5c7; background: #fff; color: #0a2540; border-radius: 999px; padding: .4rem 1rem; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; min-height: 40px; }
.hiw-ctl button:hover, .hiw-ctl button:focus-visible { border-color: #0a2540; }
.hiw-ctl button.main { background: #0a2540; border-color: #0a2540; color: #fff; }
.hiw-ctl button.hiw-sound[aria-pressed="true"] { background: #C9A227; border-color: #C9A227; color: #0a2540; }
.hiw-time { margin-left: auto; font-size: .82rem; color: #5b6b80; font-variant-numeric: tabular-nums; }
.hiw-words { max-width: 62rem; margin: 1rem auto 0; color: #44506a; }
.hiw-words summary { cursor: pointer; font-weight: 600; color: #0a2540; }
.hiw-words ol { margin: .75rem 0 0; padding-left: 1.3rem; }
.hiw-words li { margin-bottom: .4rem; }
.hiw-cta { text-align: center; margin-top: 1.5rem; }

/* ---- a phone and a browser window: the same insides ---- */
.hiw-phone { position: absolute; left: 50%; top: 4.2em; width: 21em; height: 31.3em; margin-left: -10.5em; border-radius: 2.4em; background: #0a2540; padding: .8em; }
.hiw-phone .hiw-screen { height: 100%; border-radius: 1.7em; background: #f7f6f2; overflow: hidden; padding: 1.5em 1em 1em; }
.hiw-browser { position: absolute; left: 2.2em; right: 2.2em; top: 4.6em; bottom: 1.8em; border-radius: .9em; border: .15em solid #d9d5c7; background: #f7f6f2; overflow: hidden; }
.hiw-browser .hiw-url { height: 2.6em; background: #e9e6da; display: flex; align-items: center; gap: .5em; padding: 0 .9em; }
.hiw-browser .hiw-url::before { content: ''; width: 2.6em; height: .7em; border-radius: .4em; background: radial-gradient(circle at .35em 50%, #c9a227 .32em, transparent .34em), radial-gradient(circle at 1.3em 50%, #b7b2a0 .32em, transparent .34em), radial-gradient(circle at 2.25em 50%, #b7b2a0 .32em, transparent .34em); }
.hiw-browser .hiw-url span { font-size: 1.05em; color: #5b6b80; background: #fff; border-radius: 1em; padding: .12em .9em; }
.hiw-browser .hiw-screen { padding: 1.1em 1.3em; }
.hiw-browser .hiw-card { font-size: 1.22em; }
.hiw-app { font-size: 1.55em; font-weight: 700; color: #0a2540; margin-bottom: .55em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hiw-stepper { display: flex; gap: .5em; margin-bottom: .9em; }
.hiw-stepper span { flex: 1; font-size: 1.05em; font-weight: 600; text-align: center; padding: .35em .1em; border-radius: .5em; background: #e9e6da; color: #5b6b80; white-space: nowrap; transition: background .4s, color .4s; }
.hiw-stage[data-wstep="1"] .hiw-stepper .s1, .hiw-stage[data-wstep="2"] .hiw-stepper .s2, .hiw-stage[data-wstep="3"] .hiw-stepper .s3,
.hiw-stage[data-wstep="4"] .hiw-stepper .s4, .hiw-stage[data-wstep="5"] .hiw-stepper .s5 { background: #0a2540; color: #fff; }
.hiw-stage[data-wstep="2"] .hiw-stepper .s1, .hiw-stage[data-wstep="3"] .hiw-stepper .s1, .hiw-stage[data-wstep="3"] .hiw-stepper .s2,
.hiw-stage[data-wstep="4"] .hiw-stepper .s1, .hiw-stage[data-wstep="4"] .hiw-stepper .s2, .hiw-stage[data-wstep="4"] .hiw-stepper .s3,
.hiw-stage[data-wstep="5"] .hiw-stepper .s1, .hiw-stage[data-wstep="5"] .hiw-stepper .s2, .hiw-stage[data-wstep="5"] .hiw-stepper .s3, .hiw-stage[data-wstep="5"] .hiw-stepper .s4,
.hiw-stage[data-wstep="6"] .hiw-stepper span { background: #dfeadf; color: #1d6b3a; }

.hiw-card { position: relative; background: #fff; border: .12em solid #e3ded0; border-radius: .8em; padding: .7em .85em; margin-bottom: .6em; opacity: 0; transform: translateY(1.2em); transition: opacity .45s, transform .45s, border-color .3s, box-shadow .3s; }
.hiw-card b { display: block; font-size: 1.3em; color: #0a2540; line-height: 1.25; }
.hiw-card span { display: block; font-size: 1.12em; color: #5b6b80; margin-top: .15em; line-height: 1.3; }
.hiw-card em { display: inline-block; font-style: normal; font-size: .95em; font-weight: 700; letter-spacing: .03em; border-radius: 1em; padding: .12em .7em; margin-top: .4em; background: #fbf3d6; color: #8a6d14; }
.hiw-card em:empty, .hiw-card span:empty { display: none; }
.hiw-stage[data-pcards="1"] .hiw-phone .c1, .hiw-stage[data-pcards="2"] .hiw-phone .c1, .hiw-stage[data-pcards="2"] .hiw-phone .c2,
.hiw-stage[data-pcards="3"] .hiw-phone .hiw-card,
.hiw-stage[data-wcards="1"] .hiw-browser .c1, .hiw-stage[data-wcards="2"] .hiw-browser .c1, .hiw-stage[data-wcards="2"] .hiw-browser .c2,
.hiw-stage[data-wcards="3"] .hiw-browser .hiw-card { opacity: 1; transform: none; }
.hiw-stage[data-phl="1"] .hiw-phone .c1, .hiw-stage[data-phl="2"] .hiw-phone .c2, .hiw-stage[data-phl="3"] .hiw-phone .c3,
.hiw-stage[data-whl="1"] .hiw-browser .c1, .hiw-stage[data-whl="2"] .hiw-browser .c2, .hiw-stage[data-whl="3"] .hiw-browser .c3 { border-color: #C9A227; box-shadow: 0 0 0 .3em rgba(201, 162, 39, .22); }
.hiw-thumb { display: none; float: right; width: 4.6em; height: 3.1em; margin: 0 0 .2em .6em; border-radius: .3em; background: #fff; border: .12em solid #c9c4b3; position: relative; }
.hiw-thumb::before { content: ''; position: absolute; left: .5em; top: 1.2em; width: 2.2em; height: .22em; background: #9aa3b2; box-shadow: 0 .5em 0 #9aa3b2; }
.hiw-thumb::after { content: ''; position: absolute; right: .35em; top: .35em; width: .8em; height: .9em; background: #C9A227; }
.hiw-stage[data-pthumb="on"] .hiw-phone .c1 .hiw-thumb { display: block; }

.hiw-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; opacity: 0; transition: opacity .4s; }
.hiw-btns.one { grid-template-columns: 1fr; }
.hiw-phone .hiw-btns { position: absolute; left: 1.8em; right: 1.8em; bottom: 2em; }
.hiw-phone .hiw-btn { font-size: 1.05em; white-space: nowrap; }
.hiw-stage[data-pbtns="on"] .hiw-phone .hiw-btns, .hiw-stage[data-wbtns="on"] .hiw-browser .hiw-btns { opacity: 1; }
.hiw-btn { font-size: 1.15em; font-weight: 700; text-align: center; padding: .6em .2em; border-radius: .6em; background: #fff; border: .12em solid #0a2540; color: #0a2540; transition: background .25s, color .25s, transform .25s, border-color .25s; }
.hiw-btn:empty { visibility: hidden; }
.hiw-stage[data-ppress="1"] .hiw-phone .b1, .hiw-stage[data-ppress="2"] .hiw-phone .b2, .hiw-stage[data-ppress="3"] .hiw-phone .b3, .hiw-stage[data-ppress="4"] .hiw-phone .b4,
.hiw-stage[data-wpress="1"] .hiw-browser .b1, .hiw-stage[data-wpress="2"] .hiw-browser .b2 { background: #C9A227; border-color: #C9A227; color: #0a2540; transform: scale(.95); }

/* ---- the mail desk ---- */
.hiw-desk { position: absolute; left: 0; right: 0; bottom: 0; height: 9em; background: #e9e6da; }
.hiw-scanner { position: absolute; left: 16em; top: 11em; width: 15.5em; height: 13em; border-radius: 1em; background: #0a2540; }
.hiw-scanner::before { content: ''; position: absolute; left: 1em; right: 1em; top: 1em; bottom: 2.4em; border-radius: .5em; background: #1a3a5c; }
.hiw-scanner::after { content: 'SCANNER'; position: absolute; left: 0; right: 0; bottom: .55em; text-align: center; font-size: .95em; font-weight: 700; letter-spacing: .18em; color: #9db3cc; }
.hiw-beam { position: absolute; left: 17em; top: 12em; width: .5em; height: 9.6em; background: #E8C766; box-shadow: 0 0 1.4em .5em rgba(232, 199, 102, .7); opacity: 0; z-index: 3; }
.hiw-stage[data-m="scan"] .hiw-beam { animation: hiw-sweep 2.4s ease-in-out 1s 2 both; }
@keyframes hiw-sweep { 0% { opacity: 0; transform: translateX(0); } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translateX(13em); } }
.hiw-tray { position: absolute; left: 33.6em; width: 12.6em; height: 10.5em; border-radius: .8em; border: .16em dashed #b7b2a0; background: #faf9f5; }
.hiw-tray b { position: absolute; left: 0; right: 0; bottom: .45em; text-align: center; font-size: 1.05em; color: #5b6b80; }
.hiw-tray.t1 { top: 5.2em; } .hiw-tray.t2 { top: 17.4em; }
.hiw-stage[data-m="forward"] .hiw-tray.t1, .hiw-stage[data-m="hold"] .hiw-tray.t2 { border-color: #C9A227; background: #fbf3d6; }
.hiw-env { position: absolute; left: 0; top: 0; width: 13em; height: 8.6em; border-radius: .4em; background: #fff; border: .14em solid #c9c4b3; box-shadow: 0 .5em 1.2em rgba(10, 37, 64, .16); z-index: 2; transform: translate(-16em, 13.2em) rotate(-6deg); transition: transform 1.2s cubic-bezier(.4, 0, .2, 1); }
.hiw-env i { position: absolute; right: .6em; top: .6em; width: 1.9em; height: 2.2em; background: #C9A227; border-radius: .15em; }
.hiw-env p { position: absolute; left: .9em; top: 3.6em; margin: 0; font-size: .84em; line-height: 1.35; color: #1a1a2e; font-weight: 600; white-space: nowrap; }
.hiw-env u { position: absolute; left: .8em; top: .7em; width: 3.4em; height: .22em; background: #b7b2a0; box-shadow: 0 .5em 0 #b7b2a0; text-decoration: none; }
.hiw-stage[data-m="arrive"] .hiw-env { transform: translate(1.6em, 13.2em) rotate(-3deg); }
.hiw-stage[data-m="scan"] .hiw-env, .hiw-stage[data-m="done"] .hiw-env { transform: translate(17.2em, 12.1em) rotate(0deg); }
.hiw-stage[data-m="forward"] .hiw-env { transform: translate(33.4em, 5.2em) scale(.78); }
.hiw-stage[data-m="hold"] .hiw-env { transform: translate(33.4em, 17.4em) scale(.78); }
.hiw-badge { position: absolute; left: 17.6em; top: 25.2em; font-size: 1.2em; font-weight: 700; padding: .25em .9em; border-radius: 1em; background: #dfeadf; color: #1d6b3a; opacity: 0; transform: translateY(.6em); transition: opacity .4s, transform .4s; white-space: nowrap; z-index: 3; left: 14.3em; }
.hiw-stage[data-badge="on"] .hiw-badge { opacity: 1; transform: none; }

/* ---- two people talking ---- */
.hiw-person { position: absolute; width: 7em; height: 7em; border-radius: 50%; background: #1a3a5c; }
.hiw-person::before { content: ''; position: absolute; left: 2.3em; top: 1.2em; width: 2.4em; height: 2.4em; border-radius: 50%; background: #f7f6f2; }
.hiw-person::after { content: ''; position: absolute; left: 1.3em; top: 4em; width: 4.4em; height: 3em; border-radius: 2.2em 2.2em 0 0; background: #f7f6f2; }
.hiw-person.p1 { left: 2.4em; top: 5.4em; }
.hiw-person.p2 { right: 2.4em; top: 21.4em; background: #C9A227; }
.hiw-person small { position: absolute; left: -2em; right: -2em; top: 7.4em; text-align: center; font-size: 1.05em; font-weight: 700; color: #5b6b80; white-space: nowrap; }
.hiw-stage[data-ring="on"] .hiw-person.p1 { animation: hiw-ring 1s ease-in-out infinite; }
@keyframes hiw-ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, .55); } 60% { box-shadow: 0 0 0 1.6em rgba(201, 162, 39, 0); } }
.hiw-bubble { position: absolute; max-width: 24em; font-size: 1.5em; line-height: 1.35; padding: .7em 1em; border-radius: 1em; opacity: 0; transform: translateY(.8em); transition: opacity .45s, transform .45s; }
.hiw-bubble.u1 { left: 6.6em; max-width: 22.5em; top: 4.4em; background: #e9e6da; color: #1a1a2e; border-bottom-left-radius: .2em; }
.hiw-bubble.u2 { right: 6.6em; top: 15.8em; background: #0a2540; color: #fff; border-bottom-right-radius: .2em; max-width: 20em; }
.hiw-stage[data-u1="on"] .hiw-bubble.u1, .hiw-stage[data-u2="on"] .hiw-bubble.u2 { opacity: 1; transform: none; }
.hiw-moon { position: absolute; right: 2.2em; top: 1.2em; font-size: 1.15em; font-weight: 700; padding: .25em .9em; border-radius: 1em; background: #0a2540; color: #E8C766; opacity: 0; transition: opacity .5s; z-index: 3; }
.hiw-stage[data-night="on"] .hiw-moon { opacity: 1; }
.hiw-stage[data-night="on"] .hiw-pane.talk { background: #eef1f6; }

/* ---- a form being completed ---- */
.hiw-doc { position: absolute; left: 50%; top: 4.6em; width: 25em; height: 30.6em; margin-left: -12.5em; background: #fff; border: .14em solid #c9c4b3; border-radius: .5em; box-shadow: 0 .6em 1.6em rgba(10, 37, 64, .13); padding: 1.3em 1.5em; }
.hiw-doc h4 { font-size: 1.3em; margin: 0 0 .15em; color: #0a2540; font-family: inherit; font-weight: 700; }
.hiw-doc h5 { font-size: .95em; margin: 0 0 1em; color: #5b6b80; font-weight: 500; font-family: inherit; }
.hiw-line { height: 1.75em; border-bottom: .12em solid #d9d5c7; margin-bottom: .55em; position: relative; }
.hiw-line s { position: absolute; left: 0; bottom: .25em; font-size: 1.1em; text-decoration: none; color: #0a2540; font-weight: 600; white-space: nowrap; overflow: hidden; width: 0; transition: width .9s steps(18); }
.hiw-stage[data-doc="1"] .hiw-line s, .hiw-stage[data-doc="2"] .hiw-line s, .hiw-stage[data-doc="3"] .hiw-line s, .hiw-stage[data-doc="4"] .hiw-line s, .hiw-stage[data-doc="5"] .hiw-line s { width: 100%; }
.hiw-line.l2 s { transition-delay: .5s; } .hiw-line.l3 s { transition-delay: 1s; }
.hiw-ids { display: flex; gap: .8em; margin: 1em 0 .9em; }
.hiw-ids span { flex: 1; height: 4.4em; border-radius: .5em; border: .14em dashed #b7b2a0; font-size: 1em; display: flex; align-items: flex-end; justify-content: center; padding-bottom: .3em; color: #5b6b80; font-weight: 600; position: relative; transition: border-color .4s, background .4s; }
.hiw-ids span::before { content: ''; position: absolute; left: .6em; top: .6em; width: 1.5em; height: 1.5em; border-radius: 50%; background: #d9d5c7; transition: background .4s; }
.hiw-stage[data-doc="2"] .hiw-ids span, .hiw-stage[data-doc="3"] .hiw-ids span, .hiw-stage[data-doc="4"] .hiw-ids span, .hiw-stage[data-doc="5"] .hiw-ids span { border: .14em solid #0a2540; background: #eef1f6; }
.hiw-stage[data-doc="2"] .hiw-ids span::before, .hiw-stage[data-doc="3"] .hiw-ids span::before, .hiw-stage[data-doc="4"] .hiw-ids span::before, .hiw-stage[data-doc="5"] .hiw-ids span::before { background: #0a2540; }
.hiw-ids span:nth-child(2) { transition-delay: .5s; } .hiw-ids span:nth-child(3) { transition-delay: 1s; }
.hiw-sign { position: relative; height: 4.2em; border-bottom: .12em solid #0a2540; }
.hiw-sign small { position: absolute; left: 0; bottom: -1.6em; font-size: .9em; color: #5b6b80; }
.hiw-sign svg { position: absolute; left: .5em; bottom: .1em; width: 11em; height: 4em; }
.hiw-sign path { fill: none; stroke: #0a2540; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 1.8s ease-in-out; }
.hiw-stage[data-doc="3"] .hiw-sign path, .hiw-stage[data-doc="4"] .hiw-sign path, .hiw-stage[data-doc="5"] .hiw-sign path { stroke-dashoffset: 0; }
.hiw-stamp { position: absolute; right: 1.2em; bottom: 3.6em; font-size: 1.2em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #1d6b3a; border: .2em solid #1d6b3a; border-radius: .5em; padding: .2em .7em; opacity: 0; transform: rotate(-9deg) scale(1.6); transition: opacity .35s, transform .35s; }
.hiw-stage[data-doc="4"] .hiw-stamp, .hiw-stage[data-doc="5"] .hiw-stamp { opacity: 1; transform: rotate(-9deg) scale(1); }
.hiw-filed { position: absolute; left: 0; right: 0; bottom: .9em; text-align: center; font-size: 1.15em; font-weight: 700; color: #1d6b3a; opacity: 0; transition: opacity .5s; }
.hiw-stage[data-doc="5"] .hiw-filed { opacity: 1; }
.hiw-call { position: absolute; right: .9em; top: 12em; width: 9.6em; height: 7.4em; border-radius: .8em; background: #0a2540; opacity: 0; transform: scale(.7); transform-origin: top right; transition: opacity .4s, transform .4s; z-index: 4; }
.hiw-call::before { content: ''; position: absolute; left: 3.6em; top: 1.3em; width: 2.4em; height: 2.4em; border-radius: 50%; background: #E8C766; box-shadow: 0 3.4em 0 1.2em #E8C766; clip-path: inset(0 -2em -3.6em -2em); }
.hiw-call b { position: absolute; left: 0; right: 0; bottom: .3em; text-align: center; font-size: .9em; color: #fff; }
.hiw-stage[data-vcall="on"] .hiw-call { opacity: 1; transform: none; }

/* ---- a photo tour: one wide pane, real photographs, a slow push in ---- */
.hiw-pane.wide { grid-column: 1 / -1; height: 46em; background: #0a2540; }
.hiw-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1); transition: opacity 1.1s ease, transform 14s linear; }
.hiw-stage[data-photo="1"] .hiw-photo.f1, .hiw-stage[data-photo="2"] .hiw-photo.f2, .hiw-stage[data-photo="3"] .hiw-photo.f3,
.hiw-stage[data-photo="4"] .hiw-photo.f4, .hiw-stage[data-photo="5"] .hiw-photo.f5, .hiw-stage[data-photo="6"] .hiw-photo.f6 { opacity: 1; transform: scale(1.09); }
.hiw-pane.wide .hiw-where { color: #fff; background: rgba(10, 37, 64, .72); padding: .3em .8em; border-radius: .5em; left: 1.2em; top: 1.2em; }
@container (max-width: 620px) { .hiw-pane.wide { height: 34em; } }
html.hiw-video .hiw.tour .hiw-caption { min-height: 168px; padding-top: 18px; }
html.hiw-video .hiw.tour .hiw-step { display: none; }
html.hiw-video .hiw.tour .hiw-title { font-size: 50px; margin: 0 0 8px; }
html.hiw-video.hiw-portrait .hiw.tour .hiw-pane.wide { height: 66em; }
html.hiw-video.hiw-portrait .hiw.tour .hiw-caption { min-height: 330px; padding-top: 30px; }

/* ---- the closing card (video only) ---- */
.hiw-end { position: absolute; inset: 0; z-index: 9; background: linear-gradient(135deg, #0a2540, #1a3a5c 55%, #0d3b66); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; opacity: 0; pointer-events: none; transition: opacity .7s; color: #fff; }
.hiw-stage[data-end="on"] .hiw-end { opacity: 1; }
.hiw-end b { font-family: 'Source Serif 4', Georgia, serif; font-size: 6em; font-weight: 600; letter-spacing: .01em; }
.hiw-end b::after { content: ''; display: block; width: 3.2em; height: .09em; background: #C9A227; margin: .28em auto .3em; }
.hiw-end span { font-size: 2.5em; color: #dfe6ef; max-width: 26em; line-height: 1.35; }
.hiw-end em { font-style: normal; font-size: 2.7em; font-weight: 700; color: #E8C766; margin-top: .9em; }

@media (prefers-reduced-motion: reduce) {
    .hiw-stage *, .hiw-stage *::before, .hiw-stage *::after { transition: none !important; animation: none !important; }
}

/* ---- the video frame (tools/how-it-works/render.js) ---- */
html.hiw-video, html.hiw-video body { margin: 0; height: 100%; }
html.hiw-video body { background: linear-gradient(135deg, #0a2540, #12304f 55%, #0d3b66); font-family: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif; overflow: hidden; }
html.hiw-video .hiw-frame { height: 100%; display: flex; flex-direction: column; align-items: center; padding: 26px 0 0; }
html.hiw-video .hiw-mark { font-family: 'Source Serif 4', Georgia, serif; font-size: 34px; font-weight: 600; color: #fff; letter-spacing: .02em; margin-bottom: 16px; }
html.hiw-video .hiw-mark i { font-style: normal; color: #E8C766; }
html.hiw-video .hiw { width: 1640px; max-width: none; background: none; border: 0; box-shadow: none; padding: 0; display: flex; flex-direction: column; }
html.hiw-video .hiw-stage { border-radius: 22px; }
html.hiw-video .hiw-ctl, html.hiw-video .hiw-words { display: none; }
html.hiw-video .hiw-caption { order: 2; text-align: center; padding: 26px 40px 0; min-height: 236px; }
html.hiw-video .hiw[data-hiw-last] .hiw-caption { visibility: hidden; }
html.hiw-video .hiw-step { font-size: 22px; color: #E8C766; }
html.hiw-video .hiw-title { font-size: 56px; color: #fff; margin: 8px 0 12px; }
html.hiw-video .hiw-sub { font-size: 34px; color: #dfe6ef; line-height: 1.35; max-width: 1380px; margin: 0 auto; }
html.hiw-video .hiw-bars { order: 3; padding: 0 120px; gap: 10px; }
html.hiw-video .hiw-bars span { height: 6px; background: rgba(255, 255, 255, .2); }
html.hiw-video.hiw-portrait .hiw-frame { padding-top: 40px; }
html.hiw-video.hiw-portrait .hiw { width: 900px; }
html.hiw-video.hiw-portrait .hiw-stage { font-size: 18px; grid-template-columns: 1fr; }
html.hiw-video.hiw-portrait .hiw-pane { height: 36.4em; }
html.hiw-video.hiw-portrait .hiw-caption { padding: 26px 0 0; min-height: 330px; }
html.hiw-video.hiw-portrait .hiw-title { font-size: 54px; }
html.hiw-video.hiw-portrait .hiw-sub { font-size: 36px; }
html.hiw-video.hiw-portrait .hiw-bars { padding: 0 20px; }
