@charset "utf-8";

/* ==========================================================================
   Motion Works — page-specific additions ONLY.
   Same discipline as hpm-video-band.css: this file does NOT redefine
   --bg-dark, --purple, .container, .card, .buttons, .btn-primary, etc. —
   those come from the site's own hpm2026-v113.css, loaded before this file.
   This is what was missing the first time: a whole separate chassis
   (different font, different tokens, bordered "exhibit" device chrome) that
   didn't read as the same site at all.
   ========================================================================== */

/* ---- hero LOGO band: the ACTUAL rendered BrandSpot animation (real
   letter assembly, real shine sweep, real tilt settle - not a CSS
   recreation, which was tried and wasn't it). video/motionworks-logo-hero.mp4
   comes from a second Remotion Composition ("BrandSpotHero" in the
   motion-works project) that renders the SAME component natively at
   1920x1080 instead of its usual 1080x1920, specifically so this band
   doesn't need to crop/stretch a vertical video into a wide one - verified
   via Remotion stills that neither the wordmark nor the descriptor line
   clip at that aspect ratio before rendering the full thing. */
.mw-hero-logo {
  position: relative; overflow: hidden;
  height: clamp(260px, 34vw, 520px);
  border-bottom: 1px solid var(--border);
  background: var(--bg-dark);
}
/* object-fit:cover defaults to a dead-center crop (object-position:50% 50%),
   but the wordmark itself isn't centered in the SOURCE frame - the byline
   and descriptor line sitting below it pull the visual center down, so a
   geometric-center crop showed almost no headroom above MOTION and a big
   empty gap below the descriptor. Measured directly against the rendered
   stills (crop-tested at several offsets before picking these) rather than
   eyeballed: 47.3% for the desktop source (1920x1080), 42.9% for the
   mobile one (1080x1350, see the media query below) - both nudge the crop
   window up just enough to balance top/bottom margins around the wordmark. */
.mw-hero-logo video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center 47.3%;
}
/* Taller than the desktop fallback, AND its own object-position - the
   mobile source (1080x1350) is proportionally taller than the desktop one,
   so it needs both more room and a different balance point. */
@media (max-width: 640px) {
  .mw-hero-logo { height: 440px; }
  .mw-hero-logo video { object-position: center 42.9%; }
}

/* ---- hero loader: covers the band (opaque, same bg) until the hero video is
   playing from frame 1; fades out. Video underneath is never hidden. ---- */
.mw-loader {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  background: var(--bg-dark);
  transition: opacity .5s ease;
}
.mw-loader.is-done { opacity: 0; pointer-events: none; }

/* ---- reel video: this is a 9:16 vertical/mobile clip (the FullReel,
   1080x1920). Left unconstrained it fills the full .container width at a
   16:9-scaled site, which stretches a phone-shaped video to ~2100px tall —
   capped to a width a phone video actually looks like. ---- */
.mw-hero-video {
  max-width: 340px;
  margin-inline: auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-panel);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
}
.mw-hero-video video { display: block; width: 100%; height: auto; background: var(--bg-dark); }

/* ---- hero copy below the logo band: 25% down from the site's own
   .hero-system sizes (2rem/4vw/2.8rem h1, .75rem eyebrow, 1.15rem p) —
   everything in the hero EXCEPT the logo video itself, which stays as
   rendered. ---- */
.mw-hero-copy .hero-eyebrow { font-size: .56rem; }
/* h1/p inherit max-width from the site's own .hero-system rule (900px /
   680px) without margin:auto, so their BOX sits left-aligned inside the
   container even with text-align:center on it - centering the text within
   an already-left-shifted box, not actually centering the heading. This is
   what made "Video that moves, not just plays." look left-aligned in the
   screenshot despite text-align:center technically being set. */
.mw-hero-copy h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-inline: auto; }
.mw-hero-copy p { font-size: .86rem; margin-inline: auto; }

/* ---- center-weighted copy, site-wide preference: short lines (eyebrows,
   headings, one-line intros) read centered; a paragraph long enough to
   wrap to multiple lines goes back to left-aligned (a centered ragged
   paragraph is harder to read) - the BLOCK still sits centered on the
   page via max-width+margin:auto, only the text itself goes left. Apply
   .mw-center to a section's intro wrapper, then add .mw-wraps to any
   specific <p> that's long enough to need the exception. ---- */
.mw-center { text-align: center; }
.mw-center p { max-width: 60ch; margin-inline: auto; }
.mw-center .mw-wraps { text-align: left; }
.mw-hero-copy { text-align: center; }
.mw-hero-copy p.mw-wraps { text-align: left; max-width: 60ch; margin-inline: auto; }

/* ---- video grids: range-of-styles (4up) and case study (3up) — same
   card look as .card (border/radius/gradient), video instead of text ---- */
.vgrid { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 48px; }
@media (min-width: 700px)  { .vgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1050px) { .vgrid { grid-template-columns: repeat(4, 1fr); } }
.vrow { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 48px; }
@media (min-width: 780px) { .vrow { grid-template-columns: repeat(3, 1fr); } }

.vclip {
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  transition: border-color 0.3s ease;
}
.vclip:hover { border-color: var(--purple-soft); }
.vclip video { display: block; width: 100%; height: auto; background: var(--bg-dark); }
.vclip-cap { padding: 18px 20px 22px; }
.vclip-cap b { display: block; color: var(--white); font-size: 1rem; margin-bottom: 4px; }
.vclip-cap span { color: var(--text-muted); font-size: .87rem; }

/* ---- the front desk: a panel in the same visual language as the site's
   own .problem-form, holding the interactive widget from frontdesk.js ---- */
.frontdesk-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(24px, 4vw, 40px);
  max-width: 560px;
  margin-inline: auto;
  text-align: left; /* the block sits centered on the page; form fields inside stay left-aligned */
}
.xq { display: flex; flex-direction: column; gap: 18px; }
.xq-panel { display: flex; flex-direction: column; gap: 14px; }
/* THE BUG: a plain .xq-panel{display:flex} and the browser's own
   [hidden]{display:none} UA rule tie on specificity, and author CSS always
   wins that tie - so every panel showed at once regardless of the hidden
   attribute frontdesk.js was setting correctly. This rule's specificity
   (class + attribute) is what actually re-hides it. */
.xq-panel[hidden] { display: none; }
.xq-q { font-size: 1.3rem; font-weight: 700; color: var(--white); line-height: 1.3; }
.xq-sub { font-size: .95rem; color: var(--text-muted); line-height: 1.55; }
.xq-toggles { display: flex; flex-wrap: wrap; gap: 8px; }
.xq-toggle {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255,255,255,.02); color: var(--text-muted); font-size: .88rem;
  cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.xq-toggle:hover { border-color: var(--purple-soft); color: var(--white); }
.xq-toggle[aria-pressed="true"] {
  border-color: var(--purple); background: var(--purple-soft); color: var(--white);
}
.xq-field { display: flex; flex-direction: column; gap: 8px; font-size: .85rem; color: var(--text-muted); margin-bottom: 14px; }
.xq-field span { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--purple); }
.xq-field input {
  min-height: 46px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--border);
  background: rgba(255,255,255,.03); color: var(--white); font-size: 1rem;
}
.xq-field input:focus-visible { outline: none; border-color: var(--purple); }
.xq-note { font-size: .85rem; color: #ff9d7a; }
.xq-back { background: none; border: 0; padding: 6px 0; font-size: .88rem; cursor: pointer; text-align: left; width: fit-content; color: var(--text-muted); }
.xq-back:hover { color: var(--white); }
.xq-send { margin-top: 4px; }
.xq-live { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); }
.xq-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--purple); display: inline-block; animation: mwdot 1.3s infinite; }
@keyframes mwdot { 0%,100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .xq-live i { animation: none; opacity: 1; } }
.xq-msg { padding: 14px 16px; border-radius: 8px; background: rgba(255,255,255,.03); border: 1px solid var(--border); font-size: .9rem; color: var(--text-muted); }
.xq-msg b { color: var(--white); }

/* A self-contained button for use inside the Front Desk panel, where it is
   not wrapped in the site's own .buttons (that class's padding/display
   rule is scoped to `.buttons a`, so a bare .btn-primary button outside it
   would render unstyled). */
.mw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 6px; font-size: .95rem; font-weight: 600;
  background: var(--purple); color: #fff; border: 1px solid var(--purple);
  text-decoration: none; cursor: pointer; transition: background .2s ease;
}
.mw-btn:hover { background: var(--purple-hover); }
.mw-btn:disabled { opacity: .6; cursor: default; }
