/* Product demonstration: fixed optics, page recognition, a spoken hint, independent work. */
.hero-heading { grid-column: 1 / -1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 28px; container-type: inline-size; }
.hero-heading .motto { align-self: center; margin-top: 0; grid-column: auto; font-size: clamp(24px, 4.4vw, 60px); font-size: clamp(24px, 5.1cqw, 60px); }
.hero-motion { min-width: 0; margin: -12px -12px -8px 0; }
.hm-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 12px 0 20px; color: var(--graphite); font-size: 10px; }
.hm-heading span:first-child { font-weight: 600; letter-spacing: .1em; color: var(--ink); }
.hm-scene { width: 100%; overflow: visible; fill: none; stroke: var(--ink); stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.hm-desk-edge { stroke: #ded9ce; }
.hm-page-stack { fill: #e7e2d6; stroke: #b6b3a8; }
.hm-paper-left { fill: #f6f4ed; stroke: #bdbbb1; }
.hm-paper-right { fill: #fffefa; stroke: #bdbbb1; }
.hm-binding { stroke: #d4d0c5; }
.hm-printed-lines { stroke: #b9bcb5; }
.hm-page-heading { fill: var(--graphite); stroke: none; font: 500 10px var(--sans); letter-spacing: 1px; }
.hm-triangle { stroke: #646d67; stroke-width: 1.25; }
.hm-measures { fill: var(--graphite); stroke: none; font: 12px var(--sans); }
.hm-equation { fill: var(--ink); stroke: none; font: 18px Georgia, serif; }
.hm-stalled, .hm-answer { fill: #424a43; stroke: none; font: 24px var(--hand); }
.hm-answer { font-size: 23px; }
.hm-scan-sweep { opacity: 0; }
.hm-read-line { stroke: var(--vermilion); stroke-width: 1.4; }
.hm-read-band { fill: var(--vermilion); fill-opacity: .09; stroke: none; }
.hm-scan-coverage { opacity: 0; }
.hm-recognise { stroke: var(--vermilion); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 0; opacity: 0; }
.hm-focus { stroke: var(--vermilion); stroke-width: 1.4; stroke-dasharray: 1; opacity: 0; }
/* Neutral anodized sections, chamfered planes and a recessed optical assembly. */
.hm-device { stroke: #26343E; stroke-opacity: .3; stroke-width: .25; stroke-linejoin: miter; }
.hm-contact-shadow { fill: #29343B; fill-opacity: .16; stroke: none; filter: url(#hm-contact-blur); }
.hm-base-foot { fill: #202A31; stroke: none; }
.hm-base-top { fill: url(#hm-base-metal); }
.hm-base-side { fill: url(#hm-metal-side); }
.hm-post-seat { fill: #687780; stroke: none; }
.hm-frame-front { fill: url(#hm-metal-face); }
.hm-frame-side { fill: url(#hm-metal-side); }
.hm-arm-top { fill: url(#hm-metal-top); }
.hm-head-top { fill: url(#hm-optical-shell); }
.hm-head-front { fill: #35424C; }
.hm-head-side { fill: #222E37; }
.hm-head-under { fill: #101C24; stroke: none; }
.hm-base-edge, .hm-frame-highlight, .hm-head-highlight { fill: none; stroke: #E5EBEE; stroke-width: .4; stroke-opacity: .6; }
.hm-head-highlight { stroke-opacity: .3; }
.hm-frame-seam { fill: none; stroke: #17252F; stroke-width: .4; stroke-opacity: .5; }
.hm-optical-recess { fill: #091219; stroke: #4E5D67; stroke-width: .3; stroke-opacity: .5; }
.hm-lens { fill: url(#hm-optical-glass); stroke: none; }
.hm-lens-edge { fill: none; stroke: #78838B; stroke-width: .25; stroke-opacity: .35; }
.hm-lens-reflection { fill: none; stroke: #7D929F; stroke-width: .55; stroke-opacity: .18; }
.hm-device-mark { fill: none; stroke: #A8B4BD; stroke-width: .4; stroke-opacity: .55; }
.hm-status-light { stroke: var(--vermilion); stroke-width: .8; stroke-opacity: 1; }
.hm-control-rim { fill: #73818B; stroke: #586771; stroke-width: .25; }
.hm-control { fill: #2D3D48; stroke: none; }
.hm-speaker { stroke: #263741; stroke-width: .55; stroke-opacity: .8; }
.hm-direction { stroke: #959d91; stroke-dasharray: 2 5; stroke-width: .8; }
.hm-direction-leader { stroke-dasharray: none; stroke: #bdc1b6; }
.hm-direction text { stroke: none; fill: #677063; font: 11px var(--sans); }
.hm-hint { fill: var(--ink); stroke: none; }
.hm-hint-rule { stroke: var(--vermilion); stroke-width: 2; }
.hm-hint-label { font: 500 9px var(--sans); letter-spacing: .7px; fill: var(--graphite); }
.hm-hint-text { font: 500 14px var(--sans); }
.hm-voice { stroke: var(--vermilion); stroke-width: 1.8; transform-origin: 406px 145px; }
.hm-pencil-body { fill: #596354; stroke: #343d31; stroke-width: .7; }
.hm-pencil-tip { stroke: #30382a; fill: #d3c6a6; }
.hm-pencil-edge { stroke: #99a18f; stroke-width: .55; }
.hm-pencil-band { stroke: #b4bbab; stroke-width: 1; }
.hm-pencil-point { stroke: #30382a; stroke-width: 1.1; }
.hm-stages { margin: 0 12px 0 20px; padding: 12px 0 0; border-top: 1px solid var(--hairline); display: flex; justify-content: space-between; gap: 12px; list-style: none; font-size: 11px; color: var(--ink); }
.hm-stages li { display: flex; align-items: center; gap: 6px; }
.hm-stages span { font-size: 9px; color: var(--vermilion); font-variant-numeric: tabular-nums; }
.hero-motion figcaption { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; font-size: 17px; letter-spacing: -.025em; }
.hero-motion figcaption em { font: italic 24px var(--voice); color: var(--vermilion); white-space: nowrap; }
.hm-replay { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; margin: -8px; color: var(--graphite); background: none; border: 0; border-radius: 50%; cursor: pointer; }
.hm-replay[hidden] { display: none; }
.hm-replay:hover { color: var(--vermilion); background: var(--image-ground); }
.hm-replay svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Three coordinated examples share one clock; the page lifts from the binding. */
.hm-example { opacity: 0; }
.hm-example[data-lesson="0"] { opacity: 1; }
.hm-page-heading { font-size: 8px; letter-spacing: .45px; }
.hm-page-copy { fill: var(--graphite); stroke: none; font: 9px var(--sans); }
.hm-english { fill: var(--ink); stroke: none; font: 11px Georgia, serif; }
.hm-equation { font-size: 15px; }
.hm-stalled { font-size: 19px; }
.hm-answer { font-size: 22px; }
.hm-answer-small { font-size: 18px; }
.hm-diagram { stroke: #646d67; stroke-width: 1.1; }
.hm-diagram-guide { stroke: #a7ada2; stroke-dasharray: 2 3; }
.hm-handwriting-ready .hm-handwriting-fallback { display: none; }
.hm-ink-stroke { fill: none; stroke: #424a43; stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.hm-voice { transform-origin: 469px 148px; }
.hm-page-turn { pointer-events: none; }
.hm-turn-shadow { fill: #535c4e; stroke: none; opacity: .08; }
.hm-replay:focus-visible { outline: 1px solid var(--vermilion); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .hm-replay { display: none; } }
@media (max-width: 1079px) {
  .hero-heading { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero-heading .motto { margin-top: 0; font-size: clamp(24px, 8vw, 86px); font-size: clamp(24px, 9.1cqw, 86px); }
  .hero-motion { width: min(100%, 490px); margin: 0 auto; }
}
@media (max-width: 719px) {
  .hero-heading { gap: 32px; }
  .hero-motion { width: 100%; }
  .hero-motion figcaption { font-size: 15px; gap: 10px; margin-top: 16px; }
  .hero-motion figcaption em { font-size: 22px; }
  .hm-stages { font-size: 10px; gap: 8px; margin-left: 0; margin-right: 0; }
  .hm-stages li { gap: 4px; }
  .hm-heading { margin: 0; font-size: 9px; }
  .hero-lead { margin-top: 0; }
}

/* One pinned stage keeps the brand, reading plane and live signup together. */
.hero-focus { grid-column: 1 / -1; position: relative; margin-top: 12px; }
.hero-focus-stage { position: relative; display: flex; flex-direction: column; gap: 20px; }
.hero-focus-brand { position: absolute; top: -56px; left: 0; visibility: hidden; opacity: 0; }
.hero-focus-brand .logo { margin: 0; }
.hero-focus-layout { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.is-scroll-focus .hero-focus-stage { position: sticky; top: var(--focus-top, 64px); min-height: 0; justify-content: flex-start; }
.hero-focus-layout .hero-motion { position: relative; width: 100%; margin: 0; min-width: 0; }
/* Pull only the SVG's empty upper area under its label, keeping the artwork intact. */
.hero-focus-layout .hm-scene { display: block; margin-top: -36px; }
.hero-copy { position: relative; z-index: 1; max-width: 32em; }
.hero-copy .hero-lead { margin-top: 0; }
.hero-copy .hero-desc { max-width: none; }
.hero-text { width: min(100%, 520px); margin: 4px auto 0; }
.hero-text .signup { margin-top: 0; }
.hero-text .signup .consent { margin-top: 10px; }
.hero-ex { grid-column: 1 / -1; width: min(100%, 760px); justify-self: center; margin: 80px auto 0; }
.hm-device-motion { transform-origin: 0 0; }
.hm-reading-optics { position: absolute; top: 0; left: 0; overflow: visible; pointer-events: none; opacity: 0; }
.hm-reading-ray { fill: none; stroke: url(#hm-reading-ray); stroke-width: 1; }
.hm-reading-focus { fill: none; stroke: var(--vermilion); stroke-width: 1.2; stroke-opacity: 1; stroke-linejoin: miter; }
.hm-reading-row { fill: var(--vermilion); fill-opacity: .08; }
.hm-reading-scan { fill: none; stroke: var(--vermilion); stroke-width: 1.5; stroke-opacity: .9; stroke-linecap: butt; }
.hm-reading-underline { fill: none; stroke: var(--vermilion); stroke-width: 1.2; stroke-opacity: .8; stroke-linecap: butt; }
.hm-reading-cursor { fill: var(--vermilion); }
@media (max-width: 1079px) {
  .hero-focus-layout { gap: 32px; }
  .hero-copy { font-size: 18px; line-height: 1.5; }
}
@media (max-width: 719px) {
  .hero-focus-stage { gap: 16px; }
  .hero-text { margin-top: 0; }
  .hero-text .signup .row { flex-direction: row; align-items: flex-end; gap: 12px; }
  .hero-text .signup .btn { padding: 0 14px; font-size: 15px; }
  .hero-text .signup .consent { font-size: 12px; line-height: 1.4; min-height: 34px; margin-top: 8px; }
  .hero-focus-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hero-focus-layout .hero-motion { max-width: 390px; margin: 0 auto; }
  .hero-focus-layout .hm-scene { margin-top: -12px; height: var(--focus-scene-height, clamp(150px, 25svh, 220px)); }
  .hero-focus-layout .hm-stages { display: none; }
  .hero-focus-layout .hm-heading span:last-child { display: none; }
  .hero-focus-layout figcaption { margin-top: 6px; font-size: 13px; }
  .hero-focus-layout figcaption em { font-size: 18px; }
  .hero-focus-layout .hm-replay { position: absolute; top: -12px; right: 0; margin: 0; }
  .hero-copy { font-size: 17px; line-height: 1.48; }
  .hero-copy .hero-lead { font-size: 26px; }
}
@media (max-width: 719px) and (max-height: 740px) {
  .hero-focus-stage { gap: 12px; }
  .hero-focus-brand .logo { padding: 6px 0; }
  .hero-focus-layout { gap: 14px; }
  .hero-focus-layout .hm-scene { height: 108px; }
  .hero-copy { font-size: 16px; line-height: 1.45; }
  .hero-copy .hero-lead { font-size: 24px; line-height: 1.2; }
  .hero-copy .hero-desc { margin-top: 12px; }
  .hero-copy .hero-exams { font-size: 15px; }
}
