/* Idea 2, "Build. Market. Scale.": their tagline, played as one product's life in three acts (2.js).
   Layers, back to front: the midnight ground, the city (Scale: Dubai in points of light, WebGL, with Signal's
   shade over it), the stage (the blueprint grid, a canvas that shares the stage's camera, and the 3D world: one
   product and its campaign), the copy, and the proof row, where the tagline's three words double as the act
   indicator. Everything in the world is drawn in world units: 1 unit is 1 css px at --hx-2-k = 1, and 2.js scales
   the world to fit the room right of the copy. ?scale=field keeps the previous Scale (a field of screens). */

.hx-2 {
  --hx-2-tech: var(--teal-light);   /* technology: the right peak, lifted for midnight */
  --hx-2-mkt: #2FA8A1;              /* marketing: the left peak's deep teal, lifted to read on midnight */
  --hx-2-wire: rgba(127, 211, 207, .58);
  --hx-2-wire-2: rgba(127, 211, 207, .2);
  --hx-2-page: #0A2256;             /* the product's own page: a step above midnight, so it reads as a screen */
  --hx-2-chrome: #0F2C68;
  --hx-2-k: 1; --hx-2-ik: 1;        /* world scale and its inverse, set by 2.js */
  --hx-2-hair: calc(1px * var(--hx-2-ik));   /* one css pixel on screen, whatever the world's scale */
  display: flex; flex-direction: column;
  min-height: var(--hx-h);
  padding-top: var(--hx-top);
  overflow: hidden;
  /* a faint pool of light where the product stands, so it never floats on a dead flat ground */
  background:
    radial-gradient(56% 64% at 74% 48%, rgba(13, 40, 96, .62) 0%, rgba(0, 18, 61, 0) 72%),
    var(--midnight);
}

/* ---------- the stage ---------- */
.hx-2__stage {
  position: absolute; inset: 0; z-index: -1; overflow: hidden;
  /* the copy's side stays clear: the stage fades out before it reaches the lede (edges set by 2.js) */
  -webkit-mask: linear-gradient(90deg, transparent var(--hx-2-m0, 40%), #000 var(--hx-2-m1, 50%));
          mask: linear-gradient(90deg, transparent var(--hx-2-m0, 40%), #000 var(--hx-2-m1, 50%));
}
.hx-2__grid { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hx-2__stage svg { max-width: none; }   /* the world hangs off 0×0 anchors, so the reset's max-width would collapse it */
.hx-2__fit {
  position: absolute; left: var(--hx-2-ox, 70%); top: var(--hx-2-oy, 50%); width: 0; height: 0;
  transform: scale(var(--hx-2-k));
}
/* the camera: perspective from the world's origin, so the canvas grid can share the same projection */
.hx-2__cam { position: absolute; left: 0; top: 0; width: 0; height: 0; perspective: 1300px; perspective-origin: 0 0; }
.hx-2__world, .hx-2__field, .hx-2__origin { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; }
.hx-2__world { will-change: transform; }
/* horizon: once the floor tips back, the far screens dissolve into midnight instead of ending at a hard line */
.hx-2__fog {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background:
    linear-gradient(180deg, var(--midnight) 0%, rgba(0, 18, 61, .86) 16%, rgba(0, 18, 61, 0) 46%),
    linear-gradient(0deg, var(--midnight) 0%, rgba(0, 18, 61, .94) 12%, rgba(0, 18, 61, 0) 30%);
}

/* ---------- the city (Scale): Dubai in points of light, Signal's engine and framing ---------- */
.hx-2__city, .hx-2__city-in { position: absolute; inset: 0; pointer-events: none; }
.hx-2__city { z-index: -1; overflow: hidden; }
.hx-2__city[hidden] { display: none; }
.hx-2__city-in { opacity: 0; visibility: hidden; }
.hx-2__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* without WebGL (or until the cloud is ready): the same photograph, framed exactly like the cloud by 2.js and
   printed as Signal prints it, a fine dot screen, with the mint window marked where the cloud draws it */
.hx-2__plate { position: absolute; inset: 0; }
.hx-2--gl .hx-2__plate { display: none; }
/* the dot screen stays put at screen scale while the photograph zooms beneath it, so a zoom never fattens the dots */
.hx-2__screen {
  position: absolute; inset: 0;
  -webkit-mask: radial-gradient(circle, #000 1.05px, transparent 1.55px) 0 0 / 4px 4px;
          mask: radial-gradient(circle, #000 1.05px, transparent 1.55px) 0 0 / 4px 4px;
}
.hx-2__photo {
  position: absolute; max-width: none; will-change: transform;
  -webkit-mask:
    linear-gradient(90deg, transparent, #000 16%, #000 93%, transparent),
    linear-gradient(180deg, rgba(0, 0, 0, .15) 8%, #000 52%);
  -webkit-mask-composite: source-in;
          mask:
    linear-gradient(90deg, transparent, #000 16%, #000 93%, transparent),
    linear-gradient(180deg, rgba(0, 0, 0, .15) 8%, #000 52%);
          mask-composite: intersect;
  filter: saturate(.75) contrast(1.35) brightness(1.15);
}
.hx-2__photo:not([src]) { visibility: hidden; }
.hx-2__marker {
  position: absolute; background: var(--mint); will-change: transform;
  box-shadow: 0 0 6px 1px rgba(101, 186, 182, .7), 0 0 22px 6px rgba(101, 186, 182, .28);
}
/* Signal's shade: the copy column, the proof row and the header stay legible over the city */
.hx-2__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 18, 61, .9) 0%, rgba(0, 18, 61, .72) 26%, rgba(0, 18, 61, .18) 46%, rgba(0, 18, 61, 0) 58%),
    linear-gradient(0deg, rgba(0, 18, 61, .88) 0%, rgba(0, 18, 61, .5) 13%, rgba(0, 18, 61, 0) 28%),
    linear-gradient(180deg, rgba(0, 18, 61, .55) 0%, rgba(0, 18, 61, 0) 20%);
}
/* the dive: the window as a pane of mint that opens onto the blueprint (2.js sizes it and clips the stage to it) */
.hx-2__pane {
  position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; visibility: hidden;
  box-sizing: border-box; border: 1px solid rgba(160, 226, 222, .9);
  /* the inner glow as four edge gradients: it is repainted at a new size every frame, and a blurred inset
     shadow costs the GPU a long first raster right as the window opens */
  background:
    linear-gradient(180deg, rgba(101, 186, 182, .3), rgba(101, 186, 182, 0) 18px),
    linear-gradient(0deg, rgba(101, 186, 182, .3), rgba(101, 186, 182, 0) 18px),
    linear-gradient(90deg, rgba(101, 186, 182, .3), rgba(101, 186, 182, 0) 18px),
    linear-gradient(270deg, rgba(101, 186, 182, .3), rgba(101, 186, 182, 0) 18px);
}
.hx-2__pane i { position: absolute; inset: -1px; background: var(--mint); }
/* the product lighting up as it recedes: a mint pane over the page, and the glow it will carry into the city */
.hx-2__lit { position: absolute; inset: 0; border-radius: var(--hx-2-r, 10px); background: var(--mint); opacity: 0; visibility: hidden; }
.hx-2__halo {
  position: absolute; left: -128px; top: -128px; width: 256px; height: 256px; opacity: 0; visibility: hidden;
  will-change: transform, opacity; pointer-events: none;
  background: radial-gradient(closest-side, rgba(101, 186, 182, .42), rgba(101, 186, 182, .31) 25%, rgba(101, 186, 182, .14) 50%, rgba(101, 186, 182, .035) 75%, rgba(101, 186, 182, 0));
}

/* ---------- a device: window, phone, tablet. Wire layer (Build) over fill layer (Market) ---------- */
.hx-2__dev { position: absolute; }
.hx-2__wire, .hx-2__fill, .hx-2__band { position: absolute; inset: 0; }
.hx-2__fill {
  overflow: hidden; background: var(--hx-2-page);
  border-radius: var(--hx-2-r, 10px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13);
}
.hx-2__band { background: var(--mint); }
/* the sweep re-clips these every frame: on their own layers only the clip mask is redrawn, not the drawing under it */
.hx-2__win > .hx-2__wire, .hx-2__win > .hx-2__fill, .hx-2__win > .hx-2__band,
.hx-2__phn > .hx-2__wire, .hx-2__phn > .hx-2__fill, .hx-2__phn > .hx-2__band { will-change: transform; }
/* the drawing's paper: hides the grid inside a device once its outline closes, so it reads as an object */
.hx-2__paper { position: absolute; inset: 0; border-radius: var(--hx-2-r, 10px); background: rgba(0, 14, 50, .8); }
/* (--hx-2-sh: the city's Scale lifts the shadow away as the product turns into a lit pane) */
.hx-2__shadow { position: absolute; inset: 0; border-radius: var(--hx-2-r, 10px); box-shadow: 0 46px 80px -36px rgba(0, 4, 22, calc(.95 * var(--hx-2-sh, 1))); opacity: 0; }
.hx-2__glow { position: absolute; opacity: 0; background: radial-gradient(closest-side, rgba(101, 186, 182, .2), rgba(101, 186, 182, .07) 45%, rgba(101, 186, 182, 0)); }
.hx-2__marks { position: absolute; left: 0; top: 0; width: 0; height: 0; }

/* every layout item: positioned in device units */
.hx-2__it { position: absolute; display: block; }
/* wire items: hairline boxes, images crossed out the way a wireframe marks a picture */
.hx-2__wire .hx-2__it { border: 1px solid var(--hx-2-wire); border-width: var(--hx-2-hair); border-radius: 2px; }
.hx-2__wire .hx-2__it--c, .hx-2__wire .hx-2__it--dot { border-radius: 50%; }
.hx-2__wire .hx-2__it.hx-2__it { background: none; box-shadow: none; }
.hx-2__wire .hx-2__it--cut { border: 0; background: rgba(127, 211, 207, .04); }
/* a hairline at any angle: one css pixel thick on screen, rotated about its start */
.hx-2__hl {
  position: absolute; height: var(--hx-2-hair); margin-top: calc(var(--hx-2-hair) / -2);
  transform-origin: 0 50%; background: var(--hx-2-wire);
}
.hx-2__hl--x { background: var(--hx-2-wire-2); }
.hx-2__hl--tech { background: var(--hx-2-tech); }
.hx-2__hl--dash { background: repeating-linear-gradient(90deg, rgba(127, 211, 207, .55) 0 3px, transparent 3px 6px); }

/* the device outline the nib draws: straight edges scale out from where the nib starts, corners fade in */
.hx-2__edge { position: absolute; background: var(--hx-2-tech); transform: scale(0); }
.hx-2__edge--h { height: var(--hx-2-hair); }
.hx-2__edge--v { width: var(--hx-2-hair); }
.hx-2__corner { position: absolute; opacity: 0; border: 0 solid var(--hx-2-tech); }
.hx-2__corner--tl { border-top-width: var(--hx-2-hair); border-left-width: var(--hx-2-hair); border-top-left-radius: var(--hx-2-r); }
.hx-2__corner--tr { border-top-width: var(--hx-2-hair); border-right-width: var(--hx-2-hair); border-top-right-radius: var(--hx-2-r); }
.hx-2__corner--br { border-bottom-width: var(--hx-2-hair); border-right-width: var(--hx-2-hair); border-bottom-right-radius: var(--hx-2-r); }
.hx-2__corner--bl { border-bottom-width: var(--hx-2-hair); border-left-width: var(--hx-2-hair); border-bottom-left-radius: var(--hx-2-r); }

/* fill items */
.hx-2__fill .hx-2__it { border-radius: 2px; }
.hx-2__it--w { background: rgba(255, 255, 255, .92); }
.hx-2__it--w2 { background: rgba(255, 255, 255, .78); }
.hx-2__it--f { background: rgba(169, 182, 204, .38); }
.hx-2__it--f2 { background: rgba(255, 255, 255, .5); }
.hx-2__it--shadeL { background: linear-gradient(90deg, rgba(0, 11, 41, .88), rgba(0, 11, 41, .55) 55%, rgba(0, 11, 41, 0)); border-radius: 0; }
.hx-2__it--t { background: var(--hx-2-tech); }
.hx-2__it--m { background: var(--mint); }
.hx-2__it--o { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.hx-2__it--c { border-radius: 50%; }
.hx-2__fill .hx-2__it--c { background: var(--mint); }
.hx-2__it--chrome { background: var(--hx-2-chrome); border-radius: 0; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .1); }
.hx-2__it--dot { background: rgba(255, 255, 255, .22); border-radius: 50%; }
.hx-2__it--addr { background: rgba(0, 18, 61, .55); border-radius: 6px; }
.hx-2__it--notch { background: #000B29; border-radius: 6px; }
.hx-2__it--home { background: rgba(255, 255, 255, .5); border-radius: 2px; }
.hx-2__it--img { background: var(--midnight-3); overflow: hidden; border-radius: 3px; }
.hx-2__it--img img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }

/* ---------- engineering marks (Build) ---------- */
.hx-2__mark { position: absolute; }
.hx-2__guide { position: absolute; }
.hx-2__guide--h { height: var(--hx-2-hair); background: linear-gradient(90deg, rgba(127, 211, 207, 0), rgba(127, 211, 207, .42) 22%, rgba(127, 211, 207, .42) 78%, rgba(127, 211, 207, 0)); }
.hx-2__guide--v { width: var(--hx-2-hair); background: linear-gradient(180deg, rgba(127, 211, 207, 0), rgba(127, 211, 207, .42) 22%, rgba(127, 211, 207, .42) 78%, rgba(127, 211, 207, 0)); }
.hx-2__tick { position: absolute; border: 0 solid var(--hx-2-tech); }
.hx-2__tick--h { height: 7px; border-left-width: var(--hx-2-hair); border-right-width: var(--hx-2-hair); }
.hx-2__tick--h::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: var(--hx-2-hair); background: var(--hx-2-tech); }
.hx-2__tick--v { width: 7px; border-top-width: var(--hx-2-hair); border-bottom-width: var(--hx-2-hair); }
.hx-2__tick--v::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: var(--hx-2-hair); background: var(--hx-2-tech); }
.hx-2__angle { position: absolute; }
.hx-2__deg { position: absolute; width: 0; height: 0; }
.hx-2__deg span { /* right-aligned on its anchor, so the label hangs off the arc */
  position: absolute; right: 0; top: -.6em; white-space: nowrap;
  font-size: calc(11.5px * var(--hx-2-ik)); font-weight: 600; line-height: 1.2; letter-spacing: .01em; font-variant-numeric: tabular-nums;
  color: var(--hx-2-tech);
}
.hx-2__dia { position: absolute; width: 8px; height: 11px; margin: -5.5px 0 0 -4px; fill: var(--mint); overflow: visible; }

/* the nib: the overlap diamond with a crosshair, drawing in light */
.hx-2__nib { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.hx-2__nib-in { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.hx-2__nib-in::before { /* glow */
  content: ""; position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(101, 186, 182, .55), rgba(101, 186, 182, 0));
}
.hx-2__nib-in::after { /* crosshair, open at the centre so the diamond stays a diamond */
  content: ""; position: absolute; left: -17px; top: -17px; width: 34px; height: 34px;
  background:
    linear-gradient(90deg, var(--hx-2-tech) 0 9px, transparent 9px 25px, var(--hx-2-tech) 25px) center / 100% var(--hx-2-hair) no-repeat,
    linear-gradient(180deg, var(--hx-2-tech) 0 9px, transparent 9px 25px, var(--hx-2-tech) 25px) center / var(--hx-2-hair) 100% no-repeat;
  opacity: .6;
}
.hx-2__nib-in svg { position: absolute; left: -5px; top: -6.5px; width: 10px; height: 13px; fill: var(--mint); z-index: 1; }

/* ---------- the tab: a frame's name, the way a design tool labels a selection ---------- */
.hx-2__tab {
  position: absolute; left: 0; bottom: 100%;
  margin-bottom: calc(7px * var(--hx-2-ik));
  display: inline-flex; align-items: center; gap: .5em;
  height: 1.95em; padding: 0 .7em 0 .5em;
  font-size: calc(12px * var(--hx-2-ik)); font-weight: 560; line-height: 1; letter-spacing: .005em; white-space: nowrap;
  color: var(--white);
  background: #071D4F;
  box-shadow: inset 0 0 0 var(--hx-2-hair) var(--hx-2-hue);
  border-radius: calc(3px * var(--hx-2-ik));
  transform-origin: 0 100%;
}
.hx-2__tab--below { bottom: auto; top: 100%; margin: calc(7px * var(--hx-2-ik)) 0 0; transform-origin: 0 0; }
/* a tab wider than its piece, at the stage's right edge, hangs from the piece's right edge so it stays on screen */
.hx-2__tab--end { left: auto; right: 0; transform-origin: 100% 100%; }
.hx-2__tab svg { width: 1.3em; height: 1.3em; flex: none; fill: var(--hx-2-hue); --ic-accent: var(--mint); }
.hx-2__tab--tech { --hx-2-hue: var(--hx-2-tech); }
.hx-2__tab--mkt { --hx-2-hue: var(--hx-2-mkt); }

/* ---------- marketing pieces (Market) ---------- */
.hx-2__card { position: absolute; }
.hx-2__card-in {
  position: absolute; inset: 0; overflow: hidden;
  background: #0B2459; border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 26px 50px -22px rgba(0, 4, 22, .95);
}
.hx-2__card .hx-2__it { border-radius: 2px; }
.hx-2__card .hx-2__it--img { border-radius: 0; }
.hx-2__it--field { background: rgba(0, 18, 61, .6); border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.hx-2__it--lens { border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 50%; }
.hx-2__it--lens::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 4px; height: 1.5px; background: rgba(255, 255, 255, .7); transform: rotate(45deg); }
.hx-2__it--fav { background: var(--hx-2-mkt); border-radius: 3px; }
.hx-2__it--ring { border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 50%; }
.hx-2__it--seg { background: rgba(255, 255, 255, .35); border-radius: 1px; }
.hx-2__it--seg-on { background: rgba(255, 255, 255, .95); border-radius: 1px; }
.hx-2__it--shade { background: linear-gradient(180deg, rgba(0, 11, 41, 0) 40%, rgba(0, 11, 41, .82)); border-radius: 0; }
.hx-2__play {
  position: absolute; border-radius: 50%;
  background: rgba(0, 18, 61, .45); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .85);
}
.hx-2__play::after { /* the play mark: a triangle, nudged right so it looks centred */
  content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff;
}
.hx-2__pulse { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--mint); opacity: 0; }

/* ---------- the field (Scale): copies of the product, each with an industry ---------- */
.hx-2__cp { position: absolute; border-radius: var(--hx-2-r, 10px); }
.hx-2__fshadow { /* a soft contact shadow on the floor: a gradient, so it costs nothing to raster */
  position: absolute;
  background: radial-gradient(closest-side, rgba(0, 5, 22, .62), rgba(0, 5, 22, .38) 62%, rgba(0, 5, 22, 0));
}
.hx-2__cp .hx-2__it--w { background: rgba(255, 255, 255, .6); }
.hx-2__cp .hx-2__it--w2 { background: rgba(255, 255, 255, .46); }
.hx-2__cp .hx-2__fill { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }

/* ---------- the copy ---------- */
.hx-2__inner { flex: 1; display: grid; align-items: center; padding-block: clamp(32px, 6vh, 80px) clamp(24px, 4vh, 48px); }
.hx-2__copy { max-width: 620px; }
.hx-2__title {
  font-size: clamp(2.65rem, 1.05rem + 4.5vw, 5.5rem);
  font-weight: 640; letter-spacing: -0.035em; line-height: .96;
}
.hx-2__line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.hx-2__line-in { display: block; }
.hx-2__lede { margin-top: 26px; max-width: 31em; font-size: var(--fs-lede); line-height: 1.5; color: rgba(255, 255, 255, .84); }
.hx-2__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- the proof row: real numbers, then the tagline as the act indicator ---------- */
.hx-2__proof {
  position: relative;
  display: flex; align-items: stretch; justify-content: space-between; gap: 24px;
  padding: 0 0 clamp(22px, 3.2vh, 34px);
}
.hx-2__proof::before { /* the hairline, its own element so it can be drawn in */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: rgba(255, 255, 255, .16); transform-origin: left center;
}
.hx-2__facts { display: flex; gap: clamp(28px, 4.4vw, 72px); padding-top: 22px; }
.hx-2__facts > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; }
.hx-2__facts dd {
  font-size: clamp(1.45rem, 1.05rem + 1vw, 2.05rem); font-weight: 620; font-stretch: var(--wide);
  letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums;
}
.hx-2__facts dt { font-size: var(--fs-small); color: var(--fog); line-height: 1.3; }

.hx-2__acts { display: flex; align-items: flex-end; gap: clamp(20px, 2.4vw, 36px); }
.hx-2__steps { display: flex; align-self: stretch; gap: clamp(18px, 2.2vw, 32px); margin: 0; padding: 0; list-style: none; }
.hx-2__steps li { display: flex; }
/* each word sits under its own run of the row's hairline, which fills in mint as the act plays */
.hx-2__step {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  width: clamp(104px, 9.4vw, 140px); padding: 22px 0 1px; margin: 0;
  border: 0; background: none; cursor: pointer; text-align: left;
  font: inherit; font-size: clamp(1rem, .9rem + .3vw, 1.1875rem); font-weight: 600; font-stretch: var(--wide);
  letter-spacing: -0.015em; line-height: 1.1; color: rgba(169, 182, 204, .78);
  transition: color 300ms var(--ease-out);
}
.hx-2__step[aria-current] { color: var(--white); }
.hx-2__bar { position: absolute; left: 0; right: 0; top: -.5px; height: 2px; overflow: hidden; }
.hx-2__bar i { display: block; height: 100%; background: var(--mint); transform-origin: left center; transform: scaleX(var(--p, 0)); }
.hx-2__step:focus-visible { outline-offset: 6px; border-radius: 2px; }
@media (hover: hover) and (pointer: fine) { .hx-2__step:hover { color: var(--white); } }

.hx-2__pause {
  position: relative; display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; padding: 0; margin-bottom: -10px; border: 0; border-radius: 50%;
  background: transparent; color: var(--white); cursor: pointer;
}
.hx-2__pause[hidden] { display: none; }
.hx-2__ring { position: absolute; inset: 2px; width: 36px; height: 36px; transform: rotate(-90deg); }
.hx-2__ring circle { fill: none; stroke-width: 1; }
.hx-2__ring-track { stroke: rgba(255, 255, 255, .3); transition: stroke 200ms var(--ease-out); }
/* in the city's hold the ring fills toward the dive back into the window, so the pause explains itself */
.hx-2__ring-run { stroke: var(--mint); stroke-dasharray: 100; stroke-dashoffset: var(--hx-2-run, 100); }
.hx-2__glyph { width: 12px; height: 12px; fill: currentColor; }
.hx-2__glyph-play { display: none; }
.hx-2__pause[aria-pressed="true"] .hx-2__glyph-pause { display: none; }
.hx-2__pause[aria-pressed="true"] .hx-2__glyph-play { display: block; }
.hx-2__pause[aria-pressed="true"] .hx-2__ring-track { stroke: var(--mint); }
.hx-2__pause[aria-pressed="true"] .hx-2__ring-run { opacity: .45; }
.hx-2__pause:focus-visible { outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .hx-2__pause:hover .hx-2__ring-track { stroke: rgba(255, 255, 255, .7); }
}

/* ---------- entrance: the headline is readable inside a second; the proof settles while Build plays ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hx-2:not(.hx-2--still) .hx-2__line-in { animation: hx-2-rise 900ms var(--ease-out) both; }
  .js .hx-2:not(.hx-2--still) .hx-2__line + .hx-2__line .hx-2__line-in { animation-delay: 90ms; }
  .js .hx-2:not(.hx-2--still) .hx-2__lede,
  .js .hx-2:not(.hx-2--still) .hx-2__actions { animation: hx-2-up 800ms var(--ease-out) both; }
  .js .hx-2:not(.hx-2--still) .hx-2__lede { animation-delay: 260ms; }
  .js .hx-2:not(.hx-2--still) .hx-2__actions { animation-delay: 380ms; }
  .js .hx-2:not(.hx-2--still) .hx-2__proof::before { animation: hx-2-draw 1200ms var(--ease-out) 700ms both; }
  .js .hx-2:not(.hx-2--still) .hx-2__facts > div,
  .js .hx-2:not(.hx-2--still) .hx-2__acts { animation: hx-2-up 700ms var(--ease-out) both; }
  .js .hx-2:not(.hx-2--still) .hx-2__facts > div:nth-child(1) { animation-delay: 1000ms; }
  .js .hx-2:not(.hx-2--still) .hx-2__facts > div:nth-child(2) { animation-delay: 1080ms; }
  .js .hx-2:not(.hx-2--still) .hx-2__facts > div:nth-child(3) { animation-delay: 1160ms; }
  .js .hx-2:not(.hx-2--still) .hx-2__acts { animation-delay: 600ms; }
}
/* on the homepage the hero waits behind the loader: the entrance holds on its first frame until main.js reveals it */
.hx-2--held, .hx-2--held *, .hx-2--held ::before, .hx-2--held ::after { animation-play-state: paused !important; }
@keyframes hx-2-rise { from { transform: translateY(104%); } to { transform: none; } }
@keyframes hx-2-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hx-2-draw { from { transform: scaleX(0); } to { transform: none; } }

/* ---------- tablet and phone: the stage on top, the act row under it, the copy below ---------- */
@media (max-width: 860px) {
  .hx-2 {
    --hx-2-band: clamp(236px, 35svh, 380px);
    background: radial-gradient(90% 40% at 50% 26%, rgba(13, 40, 96, .62) 0%, rgba(0, 18, 61, 0) 70%), var(--midnight);
  }
  /* the stage is its own band: nothing in the world may run behind the act row or the headline */
  .hx-2__stage {
    bottom: auto; height: calc(var(--hx-top) + var(--hx-2-band) + 4px);
    -webkit-mask: linear-gradient(180deg, #000 calc(100% - 44px), transparent);
            mask: linear-gradient(180deg, #000 calc(100% - 44px), transparent);
  }
  .hx-2__fog {
    background: linear-gradient(180deg, var(--midnight) 0%, var(--midnight) calc(var(--hx-top) - 24px), rgba(0, 18, 61, .55) calc(var(--hx-top) + 20px), rgba(0, 18, 61, 0) calc(var(--hx-top) + 90px));
  }
  /* the city shares the stage's band: the skyline stands over the act row, never behind the copy */
  .hx-2__city {
    bottom: auto; height: calc(var(--hx-top) + var(--hx-2-band) + 4px);
    -webkit-mask: linear-gradient(180deg, #000 calc(100% - 44px), transparent);
            mask: linear-gradient(180deg, #000 calc(100% - 44px), transparent);
  }
  .hx-2__shade { background: linear-gradient(180deg, rgba(0, 18, 61, .62) 0%, rgba(0, 18, 61, .3) 18%, rgba(0, 18, 61, 0) 34%); }
  .hx-2__inner { align-items: start; padding-top: calc(var(--hx-2-band) + 64px); padding-bottom: 26px; }
  .hx-2__proof { position: static; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .16); }
  .hx-2__proof::before { display: none; }
  .hx-2__facts { padding-top: 0; }
  /* the act row hangs under the stage, where it explains what is playing */
  .hx-2__acts {
    position: absolute; left: var(--gutter); right: var(--gutter); top: calc(var(--hx-top) + var(--hx-2-band));
    justify-content: space-between; align-items: center;
  }
  .hx-2__steps { flex: 1; gap: 14px; }
  .hx-2__steps li { flex: 1; }
  .hx-2__step { width: 100%; padding-top: 14px; }
  .hx-2__bar { top: 0; height: 2px; background: rgba(255, 255, 255, .16); }
  .hx-2__pause { margin-bottom: 0; margin-top: 8px; }
}
@media (max-width: 600px) {
  .hx-2__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; }
  .hx-2__facts dt { font-size: .75rem; }
  /* on a phone the tabs keep their icon and drop the name, which would be wider than the piece it labels */
  .hx-2__tab span { display: none; }
  .hx-2__tab { padding: 0 .4em; }
}
@media (max-width: 480px) {
  .hx-2__lede { margin-top: 16px; font-size: 1.0625rem; }
  .hx-2__actions { flex-wrap: nowrap; gap: 8px; margin-top: 24px; }
  .hx-2__actions .btn--lg { min-height: 48px; padding: 0 16px; font-size: .9375rem; }
  .hx-2__facts dd { font-size: 1.3rem; }
}
