/* ==========================================================================
   HUMANOID · V8, new design (19 Oct 2026)
   The table robot on the shop floor, chat to voice to humanoid, the four
   specialists, the visit path, one customer at a time, the team handoff
   and where it works.
   ========================================================================== */

/* --- Shared ------------------------------------------------------------------ */
.hm-head { max-width: 1060px; margin-inline: auto; text-align: center; }
.hm-head .lede { margin: 18px auto 0; max-width: 48em; text-wrap: pretty; }
.page-hm main .h2 { text-wrap: balance; }
[data-mascot] > svg, [data-hm-rolebot] > svg, [data-hm-attbot] > svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hm-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.hm-split__copy .lede { margin-top: 18px; }
.hm-th { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; margin: 28px 0 10px; padding: 0 16px; font: 700 12px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hm-watch .icon { margin: 0 2px 0 -4px; }

/* ==========================================================================
   1 · HERO
   ========================================================================== */
.hm-hero { overflow: hidden; padding-block: clamp(32px, 4vw, 56px) clamp(64px, 7vw, 104px); }
.hm-hero__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 4.5vw, 72px); align-items: center; }
.hm-hero__title { font-size: 48px; line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
.hm-hero__lede { margin: 22px 0 0; max-width: 30em; font: 500 clamp(17px, 1.4vw, 20px)/1.55 var(--font); color: var(--ink-2); }
.hm-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hm-film { position: relative; border-radius: 34px; overflow: hidden; aspect-ratio: 16 / 11; background: #E9EEF5; box-shadow: 0 40px 80px -40px rgba(23, 23, 43, .5); }
.hm-film__vid { position: absolute; inset: 0; margin: 0; }
.hm-film__vid img, .hm-film__vid video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--focal-x, 50%) var(--focal-y, 50%); }
.hm-film::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 20, 43, 0) 50%, rgba(21, 20, 43, .45) 100%); pointer-events: none; }
.hm-film__talk { position: absolute; left: 3%; right: 13%; top: 56px; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 12px; }
/* The bubbles sit side by side in the clear band above the robot, clear of the shopper's face on the right. */
.hm-film__talk .hm-say--r { margin-top: 18px; }
.hm-say { max-width: 100%; margin: 0; padding: 9px 12px; border-radius: 18px 18px 18px 5px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 500 13px/1.4 var(--font); color: var(--ink); box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .5); transition: opacity .4s, transform .45s var(--ease-soft); }
.hm-say small { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; font: 700 10.5px/1 var(--font); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.hm-say--r { border-radius: 18px 18px 18px 5px; background: rgba(72, 87, 194, .94); color: #fff; }
.hm-say--r small { color: #C9CEFF; }
.hm-say--r small i { display: flex; align-items: center; gap: 2px; height: 10px; }
.hm-say--r small i::before { content: ''; width: 18px; height: 8px; background: repeating-linear-gradient(90deg, #C9CEFF 0 2px, transparent 2px 4px); animation: hmTalk .5s ease-in-out infinite alternate; transform-origin: 50% 50%; }
@keyframes hmTalk { from { transform: scaleY(.4); } }
.hm-film.is-pre [data-s]:not(.is-in) { opacity: 0; transform: translateY(10px); }
.hm-film__live { position: absolute; left: 18px; top: 18px; z-index: 1; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .9); font: 700 12px/1 var(--font); color: var(--ink); }
.hm-film__live i { width: 8px; height: 8px; border-radius: 50%; background: #22C08F; }

/* ==========================================================================
   2 · BEYOND THE SCREEN
   ========================================================================== */
.hm-bey { position: relative; list-style: none; margin: clamp(40px, 5vw, 64px) auto 0; padding: 0; max-width: 1120px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.hm-bey li { --cc: var(--accent); position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hm-bey li:not(:last-child)::after { content: ''; position: absolute; right: -32px; top: 108px; width: 24px; height: 24px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6' fill='none' stroke='%234857C2' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: 0 6px 14px -8px rgba(23, 23, 43, .5); }
.hm-bey__vis { position: relative; display: grid; place-items: center; width: 100%; height: 230px; padding: 18px; border-radius: var(--card-r); overflow: hidden; background: #fff; box-shadow: var(--card-shadow); transition: box-shadow .4s, transform .45s var(--ease-soft); }
.hm-bey li.is-on .hm-bey__vis { box-shadow: 0 0 0 2.5px var(--cc), 0 24px 44px -28px color-mix(in srgb, var(--cc) 70%, transparent); transform: translateY(-4px); }
.hm-bey h3 { margin: 0; display: inline-flex; align-items: center; gap: 8px; font: 700 20px/1.2 var(--font); color: var(--ink); }
.hm-bey h3::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--cc); }
.hm-chat { display: grid; gap: 8px; width: 100%; }
.hm-chat i { justify-self: start; max-width: 88%; padding: 9px 12px; border-radius: 16px 16px 16px 5px; background: var(--paper); font: 500 13px/1.4 var(--font); font-style: normal; color: var(--ink); }
.hm-chat .hm-chat__me { justify-self: end; border-radius: 16px 16px 5px 16px; background: var(--accent); color: #fff; }
.hm-voice { display: grid; justify-items: center; gap: 14px; width: 100%; }
.hm-voice__wave { display: flex; align-items: center; gap: 4px; height: 56px; }
.hm-voice__wave i { width: 5px; height: 100%; border-radius: 3px; background: #7B5CF0; transform: scaleY(.3); animation: hmWave .6s ease-in-out infinite alternate; }
.hm-voice__wave i:nth-child(2n) { animation-delay: -.2s; } .hm-voice__wave i:nth-child(3n) { animation-delay: -.4s; }
@keyframes hmWave { to { transform: scaleY(1); } }
.hm-voice small { font: 500 13.5px/1.4 var(--font); font-style: italic; color: var(--ink-2); text-align: center; }
.hm-bey__vis--pic { padding: 0; }
.hm-bey__vis--pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-bey__tag { position: absolute; right: 14px; bottom: 14px; padding: 9px 12px; border-radius: 16px 16px 5px 16px; background: #14A578; font: 600 12.5px/1.3 var(--font); color: #fff; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .5); }

/* ==========================================================================
   3 · SPECIALISTS
   ========================================================================== */
.hm-roles { display: grid; gap: 8px; }
.hm-roles button { --cc: var(--accent); display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; align-items: center; padding: 15px 16px; border: 0; border-radius: 16px; background: var(--sand); text-align: left; cursor: pointer; transition: background-color .3s, box-shadow .3s; }
.hm-roles b { display: inline-flex; align-items: center; gap: 9px; font: 700 15.5px/1.25 var(--font); color: var(--ink); }
.hm-roles b::before { content: ''; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--cc); }
.hm-roles span { font: 500 14.5px/1.45 var(--font); color: var(--body); }
.hm-roles button[aria-selected="true"] { background: #fff; box-shadow: 0 0 0 2px var(--cc), 0 18px 32px -24px color-mix(in srgb, var(--cc) 70%, transparent); }
.hm-roles button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hm-role { position: relative; aspect-ratio: 5 / 4.4; border-radius: 30px; overflow: hidden; background: var(--sand-2); box-shadow: 0 40px 80px -48px rgba(23, 23, 43, .55); }
.hm-role__pv { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.hm-role__pv.is-on { opacity: 1; }
.hm-role__pv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-role__pv::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21, 20, 43, .1) 30%, rgba(21, 20, 43, .7) 100%); }
.hm-role__q { position: absolute; left: 18px; top: 18px; z-index: 1; max-width: 60%; padding: 10px 14px; border-radius: 18px 18px 18px 5px; background: rgba(255, 255, 255, .95); font: 600 14px/1.4 var(--font); color: var(--ink); }
.hm-role__a { position: absolute; left: 18px; right: 120px; bottom: 18px; z-index: 1; display: grid; gap: 4px; padding: 12px 14px; border-radius: 18px 18px 5px 18px; background: var(--cc); font: 500 14px/1.45 var(--font); color: #fff; box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .6); }
.hm-role__a b { font: 700 11px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.hm-role__pv.is-on .hm-role__q { animation: hmIn .45s var(--ease-soft) both .15s; }
.hm-role__pv.is-on .hm-role__a { animation: hmIn .45s var(--ease-soft) both 1.2s; }
@keyframes hmIn { from { opacity: 0; transform: translateY(10px); } }
.hm-role__bot { position: absolute; right: 8px; bottom: 6px; z-index: 2; width: 116px; height: 116px; }

/* ==========================================================================
   4 · FIVE SKILLS · THE VISIT PATH
   ========================================================================== */
.hm-path { position: relative; max-width: 1160px; margin: clamp(40px, 5vw, 64px) auto 0; }
.hm-path__line { position: absolute; left: 10%; right: 10%; top: 36px; height: 3px; border-radius: 2px; background: repeating-linear-gradient(90deg, #C9CEF0 0 8px, transparent 8px 14px); }
.hm-path__line i { display: block; height: 100%; border-radius: 2px; background: linear-gradient(90deg, #4857C2, #7B5CF0, #14A578, #E06A2B, #D9467F); transform-origin: 0 50%; transform: scaleX(var(--p, 1)); transition: transform .7s var(--ease-out); }
.hm-skills { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.hm-skills li { --cc: var(--accent); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; transition: opacity .45s, transform .5s var(--ease-out); }
.hm-skills__ic { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 6px var(--sand), inset 0 0 0 2px color-mix(in srgb, var(--cc) 30%, #fff); color: var(--cc); font-size: 30px; transition: background-color .4s, color .4s, box-shadow .4s; }
.hm-skills li.is-on .hm-skills__ic { background: var(--cc); color: #fff; box-shadow: 0 0 0 6px var(--sand), 0 16px 30px -12px var(--cc); }
.hm-skills h3 { margin: 6px 0 0; font: 700 19px/1.2 var(--font); color: var(--ink); }
.hm-skills p { margin: 0; max-width: 15em; font: 500 15px/1.45 var(--font); color: var(--body); }
.hm-path.is-pre .hm-skills li:not(.is-in) { opacity: .35; }

/* ==========================================================================
   5 · UNDIVIDED ATTENTION
   ========================================================================== */
.hm-conv { border-radius: 28px; overflow: hidden; background: #fff; box-shadow: var(--card-shadow); }
.hm-conv__bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.hm-conv__bot { display: block; width: 44px; height: 44px; flex: none; }
.hm-conv__bar b { display: block; font: 700 15px/1.2 var(--font); color: var(--ink); }
.hm-conv__bar small { display: flex; align-items: center; gap: 6px; margin-top: 3px; font: 600 12px/1.2 var(--font); color: var(--muted); }
.hm-conv__bar small i { width: 7px; height: 7px; border-radius: 50%; background: #22C08F; }
.hm-conv__one { margin-left: auto; padding: 6px 10px; border-radius: var(--r-pill); background: var(--accent-tint); font: 700 11.5px/1 var(--font); color: var(--accent-ink); }
.hm-conv__body { display: flex; flex-direction: column; gap: 8px; padding: 18px; min-height: 440px; justify-content: flex-end; }
.hm-c { align-self: flex-start; max-width: 84%; margin: 0; padding: 10px 13px; border-radius: 16px 16px 16px 5px; background: var(--paper); font: 500 14px/1.45 var(--font); color: var(--ink); transition: opacity .4s, transform .45s var(--ease-soft); }
.hm-c--me { align-self: flex-end; border-radius: 16px 16px 5px 16px; background: var(--accent); color: #fff; }
.hm-c--note { align-self: center; padding: 7px 12px; border-radius: var(--r-pill); background: var(--green-tint); font: 700 12px/1.2 var(--font); color: var(--green-ink); }
.hm-conv.is-pre [data-a]:not(.is-in) { opacity: 0; transform: translateY(8px); }
.hm-qual { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hm-qual li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; align-items: center; padding: 15px 16px; border-radius: 16px; background: var(--sand); transition: background-color .35s, box-shadow .35s; }
.hm-qual b { font: 700 15.5px/1.25 var(--font); color: var(--ink); }
.hm-qual span { font: 500 15px/1.45 var(--font); color: var(--body); }
.hm-qual li.is-on { background: #fff; box-shadow: 0 0 0 2px var(--accent), 0 18px 32px -24px rgba(72, 87, 194, .7); }

/* ==========================================================================
   6 · THE TEAM
   ========================================================================== */
.hm-flow { position: relative; list-style: none; margin: clamp(40px, 5vw, 64px) auto 0; padding: 0; max-width: 1080px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
.hm-flow li { --cc: var(--accent); position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 22px; border-radius: var(--card-r); background: #fff; box-shadow: var(--card-shadow); transition: opacity .45s, transform .5s var(--ease-out), box-shadow .4s; }
.hm-flow li:not(:last-child)::after { content: ''; position: absolute; right: -36px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.hm-flow__n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--cc); font: 800 14px/1 var(--font); color: #fff; }
.hm-flow h3 { margin: 0; font: 700 20px/1.2 var(--font); color: var(--ink); }
.hm-flow__eg { margin: 0; padding: 10px 13px; border-radius: 14px; background: color-mix(in srgb, var(--cc) 10%, #fff); font: 500 14px/1.45 var(--font); font-style: italic; color: var(--ink-2); }
.hm-flow__sum { display: flex; align-items: center; gap: 10px; padding: 10px 13px 10px 10px; border-radius: 14px; background: var(--green-tint); font: 500 12.5px/1.35 var(--font); color: var(--green-ink); }
.hm-flow__sum img { width: 30px; height: 30px; flex: none; border-radius: 50%; object-fit: cover; }
.hm-flow__sum b { display: block; font: 700 13px/1.2 var(--font); }
.hm-flow.is-pre li:not(.is-in) { opacity: 0; transform: translateY(14px); }
.hm-flow li.is-on { box-shadow: 0 0 0 2px var(--cc), 0 20px 40px -28px color-mix(in srgb, var(--cc) 70%, transparent); }

/* ==========================================================================
   7 · WHERE IT WORKS
   ========================================================================== */
.hm-wh { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.hm-wh li { --cc: var(--accent); display: flex; flex-direction: column; gap: 10px; padding: 22px 18px 24px; border-radius: var(--card-r); background: radial-gradient(80% 60% at 100% 0%, color-mix(in srgb, var(--cc) 16%, transparent) 0%, transparent 70%), var(--sand); }
.hm-wh__ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: #fff; color: var(--cc); font-size: 24px; box-shadow: 0 8px 18px -12px color-mix(in srgb, var(--cc) 70%, transparent); }
.hm-wh h3 { margin: 6px 0 0; font: 700 17px/1.25 var(--font); color: var(--ink); }
.hm-wh p { margin: 0; font: 500 14.5px/1.5 var(--font); color: var(--body); }

/* --- The film, full size --- */
.hm-modal { width: min(960px, 92vw); padding: 0; border: 0; border-radius: 24px; overflow: hidden; background: #000; }
.hm-modal::backdrop { background: rgba(21, 20, 43, .75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hm-modal__v { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.hm-modal__x { position: absolute; right: 12px; top: 12px; z-index: 1; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' stroke='%2317172B' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat; cursor: pointer; }
.page-hm .s10__copy .hm-watch { margin-top: 22px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .hm-hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hm-hero__copy, .hm-film { max-width: 760px; }
  .hm-wh { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .hm-split { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-inline: auto; }
  .hm-role { order: -1; }
  .hm-bey { grid-template-columns: minmax(0, 1fr); max-width: 460px; gap: 36px; }
  .hm-bey li:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -30px; margin-left: -12px; transform: rotate(90deg); }
  .hm-skills { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .hm-path__line { display: none; }
  .hm-flow { grid-template-columns: minmax(0, 1fr); max-width: 520px; gap: 40px; }
  .hm-flow li:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -34px; margin: 0 0 0 -14px; transform: rotate(90deg); }
}
@media (max-width: 600px) {
  .hm-hero__title { font-size: clamp(32px, 8.6vw, 48px); }
  .hm-hero__ctas .btn { width: 100%; justify-content: center; }
  .hm-film { aspect-ratio: 4 / 5; border-radius: 26px; }
  .hm-film__vid img { object-position: 42% 50%; }
  .hm-say { font-size: 13px; }
  .hm-film__talk { top: auto; bottom: 14px; left: 14px; right: 14px; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hm-film__talk .hm-say--r { margin-top: 0; }
  .hm-th { display: none; }
  .hm-roles button, .hm-qual li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hm-role { aspect-ratio: 4 / 5; }
  .hm-role__a { right: 90px; font-size: 13px; }
  .hm-role__bot { width: 84px; height: 84px; }
  .hm-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm-wh { grid-template-columns: minmax(0, 1fr); }
  .hm-conv__body { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hm-say--r small i::before, .hm-voice__wave i { animation: none; }
}
