/* MICE home page - 12 small motion effects (hero reveal, word rotator, info pings, review shuffle,
   bento build, cursor tour, process draw, before/after, batch hop, compare ticks, click ripple).
   Everything is decoration only; with "reduce motion" on, the page shows the normal static content. */
:root { --hx-navy: var(--cine-text, #03045E); --hx-blue: var(--cine-gold, #023EBA); --hx-cyan: var(--cine-cyan, #00B4D8); --hx-cta: var(--cine-cta, #FBB02D); --hx-line: var(--cine-line, rgba(3, 4, 94, .14)); --hx-muted: var(--cine-muted, #4F6393); }
.hx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 01 hero reveal */
.hx-w, .hero-copy h1 .hx-w { display: inline-block !important; vertical-align: top; line-height: inherit; opacity: 0; transform: translateY(.55em); filter: blur(6px); animation: hxRise .75s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
.hero-copy h1 em .hx-w { font: inherit !important; color: inherit !important; text-transform: inherit !important; letter-spacing: inherit !important; text-shadow: inherit !important; -webkit-text-stroke: inherit !important; background: none !important; }
@keyframes hxRise { to { opacity: 1; transform: none; filter: none; } }
.hx-fade { opacity: 0; transform: translateY(14px); animation: hxRise .8s ease forwards; animation-delay: var(--d, 700ms); }

/* 02 word rotator */
.hx-rot { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .4em; width: fit-content; max-width: 100%; margin: 14px 0 0; padding: 7px 16px; border: 1px solid var(--hx-line); border-radius: 999px; background: rgba(255, 255, 255, .88); font: 800 .95rem "Manrope", system-ui, sans-serif; color: var(--hx-navy); }
.hx-rot-window { position: relative; display: inline-block; height: 1.4em; min-width: 12.5ch; overflow: hidden; vertical-align: bottom; }
.hx-rot-window b { position: absolute; left: 0; top: 0; color: var(--hx-blue); white-space: nowrap; transform: translateY(110%); opacity: 0; transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .4s; }
.hx-rot-window b.is-on { transform: none; opacity: 1; }
.hx-rot-window b.is-out { transform: translateY(-110%); opacity: 0; }

/* 03 info pings */
.hx-ping { position: fixed; left: 16px; bottom: 20px; z-index: 40; display: flex; align-items: flex-start; gap: 10px; max-width: 290px; padding: 12px 14px; border: 1px solid var(--hx-line); border-radius: 16px; background: rgba(255, 255, 255, .96); color: var(--hx-navy); box-shadow: 0 14px 34px rgba(3, 4, 94, .18); font: 600 .88rem/1.35 "Manrope", system-ui, sans-serif; opacity: 0; transform: translateY(16px) scale(.97); pointer-events: none; transition: opacity .35s, transform .35s; }
.hx-ping.is-on { opacity: 1; transform: none; pointer-events: auto; }
.hx-ping i { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: #12A35B; box-shadow: 0 0 0 0 rgba(18, 163, 91, .5); animation: hxDot 1.8s infinite; }
.hx-ping a { color: var(--hx-blue); font-weight: 800; white-space: nowrap; }
.hx-ping button { flex: none; margin: -4px -6px 0 0; width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: var(--hx-muted); font-size: 18px; line-height: 1; cursor: pointer; }
.hx-ping button:hover { background: #EEF4FF; }
@keyframes hxDot { 70% { box-shadow: 0 0 0 9px rgba(18, 163, 91, 0); } 100% { box-shadow: 0 0 0 0 rgba(18, 163, 91, 0); } }
@media (max-width: 640px) { .hx-ping { display: none; } }

/* 06 bento build */
.hx-pop { opacity: 0; transform: translateY(22px) scale(.92); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.hx-pop.is-in { opacity: 1; transform: none; }

/* 09 before / after */
.hx-ba { box-sizing: border-box; width: 100%; max-width: 760px; margin: 24px auto 0; }
.hx-ba-box { position: relative; overflow: hidden; border: 1px solid var(--hx-line); border-radius: 22px; background: #fff; box-shadow: 0 16px 40px rgba(3, 4, 94, .1); user-select: none; }
.hx-ba-pane { box-sizing: border-box; width: 100%; padding: clamp(18px, 4vw, 34px); min-height: 250px; }
.hx-ba-before > * { max-width: 46%; }
.hx-ba-pane.hx-ba-after > * { max-width: 46%; margin-left: 54%; }
.hx-ba-pane h3 { margin: 0 0 4px; font: 800 .8rem "Manrope", system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.hx-ba-pane p { margin: 0 0 14px; font: 800 clamp(1.15rem, 2.6vw, 1.5rem) "Manrope", system-ui, sans-serif; color: var(--hx-navy); }
.hx-ba-pane ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-weight: 700; color: #2C3E7A; }
.hx-ba-pane li::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 10px; border-radius: 50%; background: currentColor; opacity: .55; }
.hx-ba-before { background: #F1F3F8; }
.hx-ba-before h3 { color: #6B7699; }
.hx-ba-after { position: absolute; inset: 0; background: linear-gradient(135deg, #EAF6FF, #FFFFFF); clip-path: inset(0 0 0 var(--hx-split, 50%)); }
.hx-ba-after h3 { color: var(--hx-blue); }
.hx-ba-after li::before { background: #12A35B; opacity: 1; }
.hx-ba-handle { position: absolute; top: 0; bottom: 0; left: var(--hx-split, 50%); width: 3px; margin-left: -1.5px; background: var(--hx-blue); pointer-events: none; }
.hx-ba-handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--hx-blue); color: #fff; font-size: 18px; box-shadow: 0 8px 20px rgba(2, 62, 186, .4); }
.hx-ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.hx-ba-box:focus-within { outline: 3px solid rgba(2, 62, 186, .35); outline-offset: 3px; }
.hx-ba-note { margin: 12px 0 0; text-align: center; color: var(--hx-muted); font-weight: 700; font-size: .85rem; }

/* 10 batch hop */
.batch-timetable.hx-hop-on span { transition: transform .35s, box-shadow .35s, background-color .35s, color .35s; }
.batch-timetable.hx-hop-on span.is-hop { transform: translateY(-5px) scale(1.04); background: var(--hx-blue) !important; color: #fff !important; box-shadow: 0 14px 28px rgba(2, 62, 186, .3); }

/* 11 compare */
.hx-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; width: min(900px, 100%); margin: 24px auto 0; }
.hx-col { padding: clamp(18px, 3vw, 28px); border: 1px solid var(--hx-line); border-radius: 22px; background: #fff; }
.hx-col.us { border-color: var(--hx-blue); box-shadow: 0 16px 40px rgba(2, 62, 186, .14); }
.hx-col h3 { margin: 0 0 14px; font: 800 1.15rem "Manrope", system-ui, sans-serif; color: var(--hx-navy); }
.hx-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.hx-col li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; color: #2C3E7A; opacity: 0; transform: translateX(-12px); transition: opacity .5s, transform .5s; transition-delay: calc(var(--i, 0) * 140ms); }
.hx-col.is-in li { opacity: 1; transform: none; }
.hx-mark { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 14px; font-weight: 800; color: #fff; }
.hx-yes { background: #12A35B; }
.hx-no { background: #D6455D; }
.hx-col:not(.us) li { color: #5A6788; }
@media (max-width: 680px) { .hx-compare { grid-template-columns: 1fr; } }

/* 12 click ripple, CTA pulse, toast */
.btn { position: relative; overflow: hidden; }
.hx-ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .55); transform: scale(0); animation: hxRipple .6s ease-out forwards; pointer-events: none; }
@keyframes hxRipple { to { transform: scale(2.6); opacity: 0; } }
.hero-actions .btn.primary { animation: hxPulse 3.2s ease-in-out 2.5s infinite; }
@keyframes hxPulse { 0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(251, 176, 45, 0); } 80% { box-shadow: 0 0 0 12px rgba(251, 176, 45, .28); } }
.hx-toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: var(--hx-navy); color: #fff; font: 800 .92rem "Manrope", system-ui, sans-serif; box-shadow: 0 14px 34px rgba(3, 4, 94, .35); opacity: 0; transform: translate(-50%, 16px); transition: opacity .3s, transform .3s; pointer-events: none; }
.hx-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.hx-toast b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #12A35B; font-size: 13px; }

@media (prefers-reduced-motion: reduce) {
  .hx-w, .hx-fade { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; }
  .hx-pop, .hx-col li { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-actions .btn.primary { animation: none !important; }
}

/* Hero slideshow: keep the old photo fully visible until the next one has faded in (no white flash between photos) */
body.cinematic-home .hero-slide { transition: opacity 1.8s ease-in-out 1.8s; z-index: 0; }
body.cinematic-home .hero-slide.is-on { transition-delay: 0s; z-index: 1; }
@media (max-width: 768px) { .mo-top { display: none !important; } }

/* Home hero photo: clearer picture (lighter wash, sharper crop, sensible height) */
body.cinematic-home .hero::before {
  background:
    linear-gradient(0deg, var(--cine-bg) 0%, rgba(244, 251, 254, 0) 14%),
    linear-gradient(90deg, rgba(244, 251, 254, .93) 0%, rgba(244, 251, 254, .72) 38%, rgba(244, 251, 254, .06) 78%) !important;
}
@media (min-width: 861px) {
  body.cinematic-home .hero.hero-premium { min-height: min(700px, calc(100svh - 64px)) !important; height: auto !important; max-height: none !important; }
}
@media (max-width: 860px) {
  body.cinematic-home .hero::before {
    background: linear-gradient(180deg, rgba(244, 251, 254, .25) 0%, rgba(244, 251, 254, .78) 34%, rgba(244, 251, 254, .9) 62%, var(--cine-bg) 100%) !important;
  }
}
body.cinematic-home .hero-media img { filter: none !important; image-rendering: auto; }

/* Hero on desktop: heading sized so the text, buttons and the bottom info bar all fit inside the hero */
@media (min-width: 861px) {
  body.cinematic-home .hero h1 { font-size: clamp(2.8rem, 4.2vw, 4.3rem) !important; line-height: 1.04 !important; }
  body.cinematic-home .hero-grid { padding-top: 48px !important; padding-bottom: 56px !important; }
  body.cinematic-home .hero-copy { max-width: 760px; }
  .hx-rot { margin-top: 12px; }
}
/* the three highlight cards used to slide up over the hero's bottom info bar and hide it */
body.cinematic-home .home-proof-band { margin-top: 0 !important; }

/* Photo gallery: a plain straight strip of photos (the tilted film-strip look with perforation marks is removed) */
body.cinematic-home .institute-gallery { transform: none !important; background: transparent !important; width: 100% !important; margin-inline: 0 !important; padding: 8px 0 !important; border-radius: 0 !important; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
body.cinematic-home .institute-gallery::before, body.cinematic-home .institute-gallery::after { content: none !important; display: none !important; }
body.cinematic-home .gallery-item { border-radius: 14px !important; }