/* start.useharris.com hero, variation b "Watch it work" (14 Nov 2026).
   A film-led hero: three real screens stacked in depth (a "Meet Harris" window, the console playing a muted loop, the
   portal on a phone), tilted towards the headline. The round play button opens the film in the same place.
   Loaded after /v/c/c.css and uses its tokens. Without JS, and under reduced motion, the stage is a finished still. */

.hero.hx { min-height: 100svh; padding: 84px 0 28px; text-align: left; justify-content: flex-start; }
.hero.hx .hx-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; justify-items: start; }

.hero.hx h1 { max-width: none; font-size: clamp(31px, 10.4vw, 46px); line-height: 1; letter-spacing: -.035em; text-wrap: nowrap; }
.hx-l { display: block; white-space: nowrap; }
.hx-v { color: var(--violet); }
.hx-sub span { display: block; }
.hx-sub { margin-top: 12px; font-size: clamp(16px, 4.5vw, 19px); line-height: 1.4; color: var(--slate); }
.hero.hx .hx-ctas { margin-top: 24px; justify-content: flex-start; width: 100%; }
.hero.hx .hx-meta { margin-top: 14px; }
.hero.hx .cue { display: none; }

/* ---------- the stage ---------- */
.hx-stage { position: relative; width: 100%; margin-top: 18px; aspect-ratio: 1 / .86; container-type: inline-size; }
.hx-view { position: absolute; inset: 0; perspective: 1500px; perspective-origin: 40% 45%; transition: opacity .4s ease, transform .5s cubic-bezier(.2,.7,.2,1); }
.hx-rig { --rx: 5deg; --ry: -11deg; position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(var(--rx) + var(--px, 0deg))) rotateY(calc(var(--ry) + var(--py, 0deg) + var(--sy, 0deg))); }
.hx-layer { position: absolute; margin: 0; overflow: hidden; background: var(--card); }
.hx-layer img, .hx-layer video { display: block; width: 100%; height: auto; }

.hx-floor { position: absolute; left: 12%; top: 9%; width: 84%; height: 84%; border-radius: 12cqw; background: var(--tint); transform: translateZ(-240px); }

.hx-bar { display: flex; align-items: center; gap: 2cqw; height: 4.8cqw; padding: 0 2.2cqw; }
.hx-bar-light { background: #EFEEE9; box-shadow: inset 0 -1px 0 var(--rule); }
.hx-bar-dark { background: #1F1D2E; }
.hx-dots { display: flex; gap: .9cqw; flex: none; }
.hx-dots i { width: 1.45cqw; height: 1.45cqw; border-radius: 50%; background: #D3D2CA; }
.hx-bar-dark .hx-dots i { background: #4A4860; }
.hx-url, .hx-title { font-size: max(8px, 1.75cqw); line-height: 1; white-space: nowrap; }
.hx-url { padding: .7cqw 1.6cqw; border-radius: 999px; background: var(--card); color: var(--slate); box-shadow: inset 0 0 0 1px var(--rule); }
.hx-title { color: #C9C7DA; font-weight: 700; letter-spacing: .01em; }
.hx-url::after, .hx-title::after { content: attr(data-t); } /* decoration, like the page's own frame bars */

.hx-back { left: 27%; top: 0; width: 71%; border-radius: 2.6cqw; transform: translateZ(-120px);
  box-shadow: 0 0 0 1px rgba(22,21,31,.08), 0 40px 80px -46px rgba(22,21,31,.5); }
.hx-greet { padding: 2cqw 2cqw 2.4cqw; background: var(--paper); display: grid; gap: 1.6cqw; }
.hx-crop { position: relative; aspect-ratio: 1200 / 340; overflow: hidden; border-radius: 2.2cqw; background: var(--night); }
.hx-crop img { position: absolute; left: 0; bottom: 0; }

.hx-main { left: 2%; top: 27%; width: 76%; border-radius: 2.6cqw; background: #120F24;
  box-shadow: 0 0 0 1px rgba(22,21,31,.5), 0 50px 90px -40px rgba(22,21,31,.7), 0 26px 50px -30px rgba(76,31,209,.6); }
/* the clip is 960x720 with the console inset on paper; the screen shows only the console (x 36-924, y 52-626).
   A still of the same frame sits underneath, so the screen is never empty while the clip loads or wraps. */
.hx-screen { position: relative; aspect-ratio: 888 / 574; background: #120F24; overflow: hidden; }
.hx-screen img, .hx-screen video { position: absolute; left: -4.05%; top: -9.06%; width: 108.11%; max-width: none; height: auto; }
.hx-screen video { transition: opacity .28s ease; }

.hx-phone { right: 2%; bottom: 1%; width: 24%; aspect-ratio: 780 / 1300; padding: 1cqw; border-radius: 4.4cqw; background: var(--night); transform: translateZ(110px);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 40px 70px -30px rgba(22,21,31,.75), 0 20px 40px -24px rgba(76,31,209,.55); }
.hx-phone-in { position: relative; height: 100%; overflow: hidden; border-radius: 3.5cqw; background: var(--paper); }
.hx-phone-in img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hx-notch { position: absolute; left: 50%; top: 1.1cqw; width: 26%; height: 1.5cqw; margin-left: -13%; border-radius: 999px; background: var(--night); }

.hx-note { position: absolute; left: 3%; bottom: -8px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: var(--tint); color: var(--violet-down); font-size: 13px; line-height: 1.2; font-weight: 700; }
.hx-note i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }

/* ---------- the play button (a circle; its label rides underneath) ---------- */
.hx-play { position: absolute; left: 39%; top: 58%; z-index: 3; display: none; flex-direction: column; align-items: center; gap: 10px; margin: 0; padding: 6px; border: 0; background: none;
  transform: translate(-50%, -50%); color: #fff; font: 700 15px/1.2 var(--body); cursor: pointer; -webkit-tap-highlight-color: transparent; }
html.hx-js .hx-play { display: flex; }
.hx-play-disc { position: relative; display: grid; place-items: center; width: clamp(68px, 13.5cqw, 104px); aspect-ratio: 1; border-radius: 50%; background: var(--violet); color: #fff;
  box-shadow: 0 0 0 6px rgba(255,255,255,.16), 0 24px 44px -14px rgba(76,31,209,.95); transition: transform .2s ease, background .18s ease; }
.hx-play-disc svg { width: 38%; height: 38%; margin-left: 6%; }
.hx-play-disc::before, .hx-play-disc::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.75); opacity: 0; animation: hx-ring 2.8s cubic-bezier(.2,.6,.3,1) infinite; }
.hx-play-disc::after { animation-delay: 1.4s; }
@keyframes hx-ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.75); opacity: 0; } }
.hx-play-label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(22,21,31,.88); white-space: nowrap; }
.hx-play-label .mono { font-size: 13px; color: #C9C7DA; }
.hx-play:hover .hx-play-disc { transform: scale(1.07); background: var(--violet-down); }
.hx-play:active .hx-play-disc { transform: scale(.95); }
.hx-play:focus-visible { outline: none; }
.hx-play:focus-visible .hx-play-disc { outline: 3px solid #fff; outline-offset: 4px; }

/* ---------- the film, in the same place ---------- */
.hx-player { position: absolute; left: 0; right: 0; top: 50%; z-index: 4; aspect-ratio: 16 / 9; transform: translateY(-50%); border-radius: clamp(14px, 3.4cqw, 24px); overflow: hidden; background: var(--night);
  box-shadow: 0 50px 100px -40px rgba(22,21,31,.85), 0 24px 50px -30px rgba(76,31,209,.6); animation: hx-open .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes hx-open { from { opacity: 0; transform: translateY(-50%) scale(.9); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
.hx-film { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--night); }
.hx-close { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(22,21,31,.78); color: #fff; cursor: pointer;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.35); transition: background .18s ease, transform .15s ease; }
.hx-close:hover { background: var(--violet); }
.hx-close:active { transform: scale(.94); }
.hx-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; border-radius: 50%; }
/* fades are switched on only once the entrance has finished (GSAP and CSS transitions must not share a property) */
.hx-stage.hx-ready .hx-play, .hx-stage.hx-ready .hx-note { transition: opacity .3s ease; }
.hx-stage.is-film .hx-view { opacity: 0; transform: scale(.94); }
.hx-stage.hx-off .hx-play-disc::before, .hx-stage.hx-off .hx-play-disc::after { animation-play-state: paused; }
.hx-stage.is-film .hx-play, .hx-stage.is-film .hx-note { opacity: 0; pointer-events: none; }

/* short phones: keep the buttons in reach */
@media (max-width: 899px) and (max-height: 700px) {
  .hero.hx { padding-top: 74px; }
  .hero.hx h1 { font-size: clamp(29px, 9.4vw, 40px); }
  .hx-sub { margin-top: 8px; }
  .hx-stage { margin-top: 10px; aspect-ratio: 1 / .7; }
  .hx-back { left: 34%; width: 62%; }
  .hx-main { top: 15%; width: 70%; }
  .hx-phone { width: 21%; }
  .hx-play { top: 50%; left: 37%; gap: 6px; font-size: 14px; }
  .hx-play-disc { width: 58px; }
  .hx-play-label { padding: 6px 12px; }
  .hx-note { bottom: -4px; font-size: 12px; padding: 5px 10px 5px 8px; }
  .hero.hx .hx-ctas { margin-top: 14px; gap: 8px; }
  .hero.hx .hx-ctas .pill.big { min-height: 50px; padding: 10px 22px; font-size: 17px; }
}
@media (min-width: 560px) and (max-width: 899px) {
  .hero.hx .hx-grid { justify-items: center; text-align: center; }
  .hero.hx h1 { font-size: 56px; }
  .hx-sub { max-width: none; }
  .hx-stage { max-width: 620px; }
  .hero.hx .hx-ctas { justify-content: center; }
}

/* ---------- desktop: headline left, stage right, bleeding towards the edge ---------- */
@media (min-width: 900px) {
  .hero.hx { padding: 92px 0 56px; justify-content: center; }
  .hero.hx .hx-grid { --bleed: clamp(0px, (100vw - 1180px) / 2 - 24px, 110px);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-rows: 1fr auto auto auto auto 1fr; column-gap: 40px; }
  .hero.hx h1 { grid-column: 1; grid-row: 2; font-size: clamp(46px, 5.1vw, 74px); }
  .hx-sub { grid-column: 1; grid-row: 3; margin-top: 22px; font-size: clamp(19px, 1.6vw, 23px); max-width: none; }
  .hero.hx .hx-ctas { grid-column: 1; grid-row: 4; margin-top: 30px; }
  .hero.hx .hx-meta { grid-column: 1; grid-row: 5; margin-top: 18px; }
  .hx-stage { grid-column: 2; grid-row: 1 / -1; align-self: center; margin: 0 calc(-1 * var(--bleed)) 0 0; width: calc(100% + var(--bleed)); }
  .hx-rig { --rx: 6deg; --ry: -15deg; }
  .hx-note { font-size: 14px; bottom: 0; }
  .hx-play { font-size: 16px; }
  .hx-close { top: 14px; right: 14px; }
  .hero.hx .cue { display: flex; bottom: 14px; }
}
@media (min-width: 900px) and (max-height: 760px) { .hero.hx .cue { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .hx-play-disc::before, .hx-play-disc::after { animation: none; opacity: 0; }
  .hx-player { animation: none; }
  .hx-view, .hx-stage.hx-ready .hx-play, .hx-stage.hx-ready .hx-note, .hx-play-disc, .hx-close { transition: none; }
}
