/* Rooms by industry as opening panels (carousel.js), and the neutral still behind "Open to every agent".
   Loads after round3.css. */
.hm .rx { --ease: cubic-bezier(.65, 0, .2, 1); display: flex; gap: 12px; height: clamp(440px, 38vw, 560px); margin-top: 40px; outline: none; touch-action: pan-y; }
.hm .rx-card { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 32px; color: #fff; text-decoration: none; background: #c9d9ea; box-shadow: 0 30px 60px -36px rgba(30, 40, 80, .45); transition: flex-grow 1s var(--ease), box-shadow .6s ease; -webkit-tap-highlight-color: transparent; }
.hm .rx-card.is-on { flex-grow: 5.2; box-shadow: 0 40px 80px -40px rgba(30, 40, 80, .6); }
@media (hover: hover) and (pointer: fine) { .hm .rx-card:not(.is-on):hover { flex-grow: 1.25; } }
.hm .rx-media { position: absolute; inset: 0; }
.hm .rx-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; scale: 1.14; translate: 0 var(--py, 0); filter: saturate(.72) brightness(.92); transition: scale 7s cubic-bezier(.2, .6, .2, 1), filter .9s ease; }
.hm .rx-card.is-on .rx-media img { scale: 1.02; filter: none; }
/* a soft veil: deep at the foot of the open panel for its words, even on the folded strips for their names */
.hm .rx-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 12, 34, .22) 0%, rgba(14, 12, 34, .30) 100%); }
.hm .rx-card.is-on::after { background: linear-gradient(180deg, rgba(14, 12, 34, 0) 38%, rgba(14, 12, 34, .30) 62%, rgba(14, 12, 34, .74) 100%); }
.hm .rx-num { position: absolute; z-index: 1; top: 22px; left: 0; right: 0; text-align: center; font-size: 13px; letter-spacing: .08em; color: rgba(255, 255, 255, .86); transition: opacity .5s ease .35s; }
.hm .rx-side { position: absolute; z-index: 1; left: 50%; bottom: 30px; writing-mode: vertical-rl; rotate: 180deg; translate: -50% 0; white-space: nowrap; font-size: 17px; letter-spacing: -.005em; color: #fff; transition: opacity .45s ease .35s, translate .7s var(--ease) .25s; }
.hm .rx-card.is-on .rx-num, .hm .rx-card.is-on .rx-side { opacity: 0; transition-delay: 0s; }
.hm .rx-card.is-on .rx-side { translate: -50% 14px; }
.hm .rx-body { position: absolute; z-index: 1; left: 0; bottom: 0; display: grid; justify-items: start; gap: 10px; width: min(560px, 100%); box-sizing: border-box; padding: 0 clamp(26px, 3vw, 40px) clamp(34px, 3.2vw, 44px); }
.hm .rx-body > * { min-width: 0; opacity: 0; translate: 0 18px; transition: opacity .3s ease, translate .3s ease; }
.hm .rx-card.is-on .rx-body > * { opacity: 1; translate: 0 0; transition: opacity .8s ease, translate .9s var(--ease); }
.hm .rx-card.is-on .rx-body > :nth-child(1) { transition-delay: .45s; } .hm .rx-card.is-on .rx-body > :nth-child(2) { transition-delay: .55s; }
.hm .rx-card.is-on .rx-body > :nth-child(3) { transition-delay: .65s; } .hm .rx-card.is-on .rx-body > :nth-child(4) { transition-delay: .75s; }
.hm .rx-tag { display: grid; place-items: center; min-height: 36px; padding: 0 16px; border-radius: 999px; font-size: 14px; color: #12061a; background: linear-gradient(180deg, #d8f3ff, #a5dcff); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 6px 18px rgba(110, 190, 255, .28); }
.hm .rx-body b { font-family: var(--font-display); font-weight: 300; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.hm .rx-body small { max-width: 44ch; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .86); text-wrap: pretty; }
.hm .rx-body em { margin-top: 4px; font-style: normal; font-size: 14.5px; color: #aee5ff; }
@media (hover: hover) and (pointer: fine) { .hm .rx-card.is-on:hover em { text-decoration: underline; text-underline-offset: 4px; } }
/* time left before the next room */
.hm .rx-time { position: absolute; z-index: 2; left: clamp(26px, 3vw, 40px); right: clamp(26px, 3vw, 40px); bottom: 16px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .22); overflow: hidden; opacity: 0; transition: opacity .4s ease; }
.hm .rx-time::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .9); transform-origin: 0 50%; scale: 0 1; }
.hm .rx.is-timed .rx-card.is-on .rx-time { opacity: 1; }
.hm .rx-card.is-run .rx-time::after { animation: rx-time 6.5s linear forwards; }
@keyframes rx-time { to { scale: 1 1; } }
.hm .rx-card:focus-visible { outline: 2px solid #8fd3ff; outline-offset: 3px; }
:root[data-theme="dark"] .hm .rx-card { background: #241a33; box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .7); }
/* phone and small tablet: the panels stack, the open one tall, the others a strip each */
@media (max-width: 760px) {
  .hm .rx { flex-direction: column; height: auto; gap: 8px; margin-top: 26px; }
  .hm .rx-card { flex: none; height: 66px; border-radius: 24px; transition: height .9s var(--ease); }
  .hm .rx-card.is-on { height: min(520px, 128vw); }
  .hm .rx-num { top: 50%; left: 22px; right: auto; translate: 0 -50%; }
  .hm .rx-side { left: 60px; bottom: auto; top: 50%; writing-mode: horizontal-tb; rotate: none; translate: 0 -50%; font-size: 16px; }
  .hm .rx-card.is-on .rx-side { translate: 0 -30%; }
  .hm .rx-body { padding: 0 22px 34px; gap: 8px; }
  .hm .rx-body small { font-size: 14px; }
  .hm .rx-time { left: 22px; right: 22px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { .hm .rx-card, .hm .rx-media img, .hm .rx-body > *, .hm .rx-side, .hm .rx-num { transition: none !important; } .hm .rx-time { display: none; } }

/* open to every agent: the chalkboard film is back for now (positions come from round3.css) */
/* where each photo sits in its panel */
.hm .rx-card[data-i="3"] .rx-media img { object-position: 46% 82%; }
.hm .rx-card[data-i="0"] .rx-media img { object-position: 64% 50%; }
@media (max-width: 760px) { .hm .rx-card[data-i="3"] .rx-media img { object-position: 88% 70%; } }

/* ================= round 7 ================= */
/* the panel itself only opens; its name pill and its last line lead to the room's page */
.hm .rx-card { cursor: pointer; }
.hm .rx-card.is-on { cursor: default; }
.hm .rx-card:not(.is-on) .rx-body { pointer-events: none; }
.hm .rx-tag { text-decoration: none; cursor: pointer; transition: background .25s ease, box-shadow .25s ease, transform .25s ease; }
.hm .rx-link { margin-top: 4px; font-size: 14.5px; color: #aee5ff; text-decoration: none; cursor: pointer; transition: color .25s ease; }
@media (hover: hover) and (pointer: fine) {
  .hm .rx-tag:hover { background: linear-gradient(180deg, #ecf9ff, #bfe6ff); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 8px 24px rgba(140, 205, 255, .55), 0 0 0 3px rgba(174, 229, 255, .35); }
  .hm .rx-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
}
.hm .rx-tag:active { transform: scale(.96); }
.hm .rx-tag:focus-visible, .hm .rx-link:focus-visible { outline: 2px solid #8fd3ff; outline-offset: 3px; }
/* a bit smaller: the industries heading and the panels */
.hm #industries .rg-car-head h2 { max-width: 760px; font-size: clamp(26px, 3.3vw, 46px); }
.hm .rx { height: clamp(380px, 32vw, 480px); margin-top: 32px; }
.hm .rx-body b { font-size: clamp(23px, 2.1vw, 30px); }
.hm .rx-body small { font-size: 14px; }
@media (max-width: 760px) { .hm .rx-card.is-on { height: min(460px, 118vw); } }
/* a bit smaller: the story heading and its four charts */
.hm .rg-story h2 { font-size: clamp(30px, 3.8vw, 53px); }
.hm .st-lead { font-size: clamp(16px, 1.3vw, 17.5px); }
.hm .st-charts { gap: 14px; }
.hm .st-chart { padding: 18px 20px 14px; border-radius: 26px; }
.hm .st-chart b { font-size: 33px; }
.hm .st-chart h4 { font-size: 15px; }
.hm .st-plot { height: 150px; margin-top: 20px; --plot: calc(150px - 20px); }
@media (max-width: 760px) { .hm .rx { height: auto; margin-top: 26px; } }

/* ready to try it: no card, just the words, the buttons and the two number clouds on the page */
.hm-final { background: none; border: 0; box-shadow: none; overflow: visible; padding-block: clamp(48px, 7vw, 96px); }
:root[data-theme] .hm .hm-final h2 { color: var(--two-tone, #35104f); }
:root[data-theme="light"] .hm .hm-final h2 { color: #6a41a8; }
.hm-final-glow { background-image: linear-gradient(95deg, #8a4fd8 0%, #b15fd9 55%, #d07ad8 100%); }
:root[data-theme="dark"] .hm-final-glow { background-image: linear-gradient(95deg, #c3a2ff 0%, #e0a6f2 60%, #f2b8e8 100%); }
.hm .hm-final .lede { color: var(--body); }
.hm main .hm-final .btn-ghost { color: var(--ink); background: rgba(174, 229, 255, .20); border-color: rgba(60, 140, 210, .30); }
:root[data-theme="dark"] .hm main .hm-final .btn-ghost { color: #effaff; background: rgba(174, 229, 255, .08); border-color: rgba(174, 229, 255, .34); }
.hm main .hm-final .cta-row.has-glider[data-active="ghost"] .btn-primary, .hm main .hm-final .cta-row.has-glider[data-active="primary"] .btn-ghost { color: var(--ink); background-color: rgba(174, 229, 255, .20); border-color: rgba(60, 140, 210, .30); }
:root[data-theme="dark"] .hm main .hm-final .cta-row.has-glider[data-active="ghost"] .btn-primary, :root[data-theme="dark"] .hm main .hm-final .cta-row.has-glider[data-active="primary"] .btn-ghost { color: #effaff; background-color: rgba(174, 229, 255, .10); border-color: rgba(174, 229, 255, .34); }
.hm-field.is-final .cayley-field-front { filter: none; }

/* the four "superhuman" charts in the blue of the cost card: blue figures, ice-blue bars, a soft blue foot */
.hm .st-chart { --tone: #62b4f5; --num: #2783d0; background: radial-gradient(120% 46% at 50% 112%, color-mix(in srgb, var(--tone) 30%, transparent), transparent 100%), linear-gradient(180deg, #fff 0%, #fff 40%, color-mix(in srgb, var(--tone) 15%, #fff) 100%); }
.hm .st-chart > b { color: var(--num); }
.hm .st-bar::before { background: linear-gradient(180deg, rgba(98, 180, 245, .46), rgba(98, 180, 245, .16)); }
.hm .st-bar.is-now::before { background: linear-gradient(180deg, #7cc2f7, #2783d0); box-shadow: 0 8px 22px rgba(39, 131, 208, .26); }
.hm .st-base i { color: #2783d0; }
.hm .st-bar i.is-in { color: #1f6fb4; }
:root[data-theme="dark"] .hm .st-chart { --num: #8cc8ff; background: radial-gradient(120% 46% at 50% 112%, color-mix(in srgb, var(--tone) 30%, transparent), transparent 100%), linear-gradient(180deg, #2a1f36 0%, #2a1f36 40%, color-mix(in srgb, var(--tone) 20%, #22182e) 100%); }
:root[data-theme="dark"] .hm .st-bar.is-now::before { background: linear-gradient(180deg, #b6defc, #5aa9ec); }
:root[data-theme="dark"] .hm .st-base i { color: #fff; }
:root[data-theme="dark"] .hm .st-bar i.is-in { color: #e6f3ff; }

/* "Open to every agent": the table film (hand swipes Insurance into the room, taps Send, leaves; the camera rises)
   replaces the chalkboard film here. A soft white glow sits over the video at the sides and the top so the heading reads. */
.hm-band.is-table > .hv-hue { display: none; }
.hm-band.is-table .hm-band-bg { top: -4%; height: 108%; object-position: 50% 40%; -webkit-mask-image: none; mask-image: none; }
.hm-band.is-table::after { background:
  linear-gradient(90deg, rgba(250, 252, 255, .82) 0%, rgba(246, 250, 255, .46) 9%, rgba(246, 250, 255, 0) 22%, rgba(246, 250, 255, 0) 78%, rgba(246, 250, 255, .46) 91%, rgba(250, 252, 255, .82) 100%),
  linear-gradient(180deg, rgba(246, 250, 255, .78) 0%, rgba(246, 250, 255, .25) 26%, rgba(246, 250, 255, 0) 45%, rgba(246, 250, 255, 0) 70%, rgba(246, 250, 255, .5) 100%); }
.hm-band.is-table::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 90px 30px rgba(255, 255, 255, .55); }
@media (max-width: 1100px) { .hm-band.is-table { background: #eef4fb; } .hm-band.is-table .hm-band-bg { top: 0; height: 100%; object-position: 50% 30%; } }
@media (max-width: 640px) { .hm-band.is-table .hm-band-bg { object-position: 58% 40%; } .hm-band.is-table::before { box-shadow: inset 0 0 50px 16px rgba(255, 255, 255, .55); } }

/* The laptop film (a swipe on the trackpad, then agents, people, notes and tools fly out of the screen): the frame
   sits a little lower so the screen shows between the heading and the cards, and a soft white haze keeps the heading clear. */
.hm-band.is-laptop .hm-band-bg { top: 0; height: 100%; object-position: 50% 12%; }
.hm-band.is-laptop::after { background:
  radial-gradient(38% 22% at 50% 13%, rgba(248, 251, 255, .9) 0%, rgba(248, 251, 255, .6) 55%, rgba(248, 251, 255, 0) 100%),
  linear-gradient(90deg, rgba(250, 252, 255, .78) 0%, rgba(246, 250, 255, .36) 8%, rgba(246, 250, 255, 0) 18%, rgba(246, 250, 255, 0) 82%, rgba(246, 250, 255, .36) 92%, rgba(250, 252, 255, .78) 100%),
  linear-gradient(180deg, rgba(246, 250, 255, .5) 0%, rgba(246, 250, 255, 0) 30%, rgba(246, 250, 255, 0) 72%, rgba(246, 250, 255, .55) 100%); }
@media (max-width: 1100px) { .hm-band.is-laptop .hm-band-bg { object-position: 45% 20%; } }
/* Laptop film 10% larger (the "scale" property, so it stacks with the scroll drift that home.js sets as transform)
   and 38% opaque over a near-white ground. */
.hm-band.is-laptop { background: #f4f8fd; }
.hm-band.is-laptop .hm-band-bg { scale: 1.1; opacity: .38; }
/* The hand on the trackpad shows above the cards: the film sits higher in the band, the heading is smaller. */
.hm-band.is-laptop .hm-band-bg { object-position: 50% 62%; }
:root[data-theme] .hm .hm-band.is-laptop h2 { font-size: clamp(26px, 2.9vw, 42px); }
@media (min-width: 1101px) { .hm-band.is-laptop .hm-band-in { min-height: min(760px, calc(100svh - 120px)); } .hm-band.is-laptop .hm-band-bg { object-position: 50% 70%; } }

/* Night mode: the same light band as by day, dimmed a little (brightness .91, 30% lighter than the first try at .7). */
:root[data-theme="dark"] .hm-band.is-laptop { filter: brightness(.91); }
