/* The home's scroll journey hero (Nov 2026, third version): five client sites, one mint line carried through the
   fades. Source: core-concepts-reels/reels/2026-11-18-hero-scroll-journey (direction-notes.md, motion-spec.md).
   v3 (19 Nov): each chapter's real footage plays full bleed; when it becomes the site's hero, the camera pulls back
   and the site sits in a monitor on a dark room tinted with that site's colours (--c1 glow, --c2 accent).
   The monitor (.hj-dev) is drawn in the sites' own 1920x1080 pixel space; hero-journey.js moves and scales it.
   At full bleed the bezel and stand are simply outside the viewport. */
#hj{position:relative;background:#000;color:#fff;--mint:#17FFC5}
#hj .hj-track{position:relative;height:1710vh}
#hj .hj-stick{position:sticky;top:0;height:100vh;height:100svh;width:100%;overflow:hidden;background:#040506;
  --c1:#1a2458;--c2:#8a93b8;--env:0}   /* the first site (Relentless) */

/* the room: near-black, lit by the screen and one soft window light from the top left */
#hj .hj-amb{position:absolute;inset:0;opacity:var(--env);
  background:
    radial-gradient(62% 58% at 50% 40%,color-mix(in srgb,var(--c1) 62%,transparent),transparent 74%),
    radial-gradient(30% 70% at 50% -10%,rgba(255,246,230,.07),transparent 70%),
    radial-gradient(45% 40% at 90% 95%,color-mix(in srgb,var(--c2) 22%,transparent),transparent 70%),
    radial-gradient(40% 35% at 8% 90%,color-mix(in srgb,var(--c1) 30%,transparent),transparent 70%),
    radial-gradient(40% 50% at 6% 4%,rgba(255,244,225,.07),transparent 70%),
    linear-gradient(180deg,#07090b 0%,#050607 62%,#0a0b0c 100%)}
#hj .hj-amb::after{content:"";position:absolute;inset:0;
  background:linear-gradient(112deg,rgba(255,240,215,.06) 0%,rgba(255,240,215,.025) 18%,transparent 38%)}

/* the monitor: screen at 0,0 1920x1080; everything else is around it */
#hj .hj-dev{position:absolute;left:0;top:0;width:1920px;height:1080px;transform-origin:0 0;will-change:transform;
  filter:saturate(.95) contrast(1.04)}
#hj .hj-env{position:absolute;inset:0;opacity:var(--env)}
#hj .hj-glow{position:absolute;left:-700px;top:-520px;width:3320px;height:2120px;pointer-events:none;
  background:radial-gradient(50% 50% at 50% 50%,color-mix(in srgb,var(--c1) 70%,transparent) 0%,color-mix(in srgb,var(--c1) 26%,transparent) 42%,transparent 70%)}
#hj .hj-floor{position:absolute;left:-1400px;top:1330px;width:4720px;height:900px;pointer-events:none;
  background:radial-gradient(38% 30% at 50% 6%,color-mix(in srgb,var(--c1) 40%,transparent),transparent 70%),
             radial-gradient(14% 7% at 50% 4%,rgba(0,0,0,.75),transparent 100%)}
#hj .hj-bezel{position:absolute;left:-54px;top:-54px;width:2028px;height:1188px;border-radius:46px;
  background:linear-gradient(180deg,#4a4d52 0%,#24262a 8%,#1a1c1f 55%,#2c2e32 100%);
  box-shadow:0 90px 160px rgba(0,0,0,.62),0 30px 60px rgba(0,0,0,.45),inset 0 1px 0 rgba(255,255,255,.18)}
#hj .hj-bezel::before{content:"";position:absolute;inset:7px;border-radius:39px;background:#030304;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}
#hj .hj-bezel::after{content:"";position:absolute;left:50%;top:22px;width:9px;height:9px;margin-left:-4.5px;border-radius:50%;
  background:radial-gradient(circle at 35% 35%,#2a3340,#07090c 70%)}
#hj .hj-stand{position:absolute;left:0;top:1120px;width:1920px;height:300px}
#hj .hj-stand i{position:absolute;left:790px;width:340px;top:0;height:232px;
  background:linear-gradient(90deg,#0d0e10 0%,#24272b 14%,#2f3237 50%,#24272b 86%,#0d0e10 100%)}
#hj .hj-stand i::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.7) 0,rgba(0,0,0,.15) 30%,transparent 60%,rgba(255,255,255,.04))}
#hj .hj-stand b{position:absolute;left:690px;width:540px;top:228px;height:22px;border-radius:4px 4px 10px 10px;
  background:linear-gradient(180deg,#5a5d63 0%,#2e3135 30%,#1b1d20 100%);box-shadow:0 18px 30px rgba(0,0,0,.7)}

/* the screen */
#hj .hj-frame{position:absolute;left:0;top:0;width:1920px;height:1080px;overflow:hidden;background:#000;border-radius:6px}
#hj .hj-inner{position:absolute;left:0;top:0;width:1920px;height:1080px}
#hj .hj-glass{position:absolute;left:0;top:0;width:1920px;height:1080px;pointer-events:none;opacity:var(--env);border-radius:6px;
  background:linear-gradient(118deg,rgba(255,255,255,.075) 0%,rgba(255,255,255,.02) 24%,transparent 42%,transparent 78%,rgba(255,255,255,.025) 100%)}
#hj .hj-ch{position:absolute;inset:0;visibility:hidden}
#hj .hj-ch img,#hj .hj-ch video{position:absolute;left:0;top:0;width:1920px;height:1080px;max-width:none;object-fit:cover;display:block;margin:0;border:0;border-radius:0}
#hj .hj-ui{--p:0%;-webkit-mask-image:linear-gradient(to bottom,#000 calc(var(--p) - 18%),transparent var(--p));mask-image:linear-gradient(to bottom,#000 calc(var(--p) - 18%),transparent var(--p))}
#hj [data-hj="rcSite"]{--r:0px;-webkit-mask-image:radial-gradient(circle at 1458px 495px,#000 var(--r),transparent calc(var(--r) + 140px));mask-image:radial-gradient(circle at 1458px 495px,#000 var(--r),transparent calc(var(--r) + 140px))}
#hj .hj-blk{position:absolute;inset:-12px;background:#000}
/* the mint line is off (19 Nov, Dinos: "distracting"); hero-journey.js still drives it, so turning it back on is this one rule */
#hj .hj-svg{position:absolute;left:0;top:0;overflow:visible;display:none}

/* a lower-third shade so the words read over light sites at full bleed; gone once the monitor is in the room */
#hj .hj-scrim{position:absolute;left:0;right:0;bottom:0;height:34%;pointer-events:none;opacity:calc(1 - var(--env));
  background:linear-gradient(0deg,rgba(0,0,0,.62) 0%,rgba(0,0,0,.32) 45%,transparent 100%)}
/* the grade: vignette, a cool-top / warm-bottom split and a little grain, over everything but the words */
#hj .hj-grade{position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(120% 95% at 50% 46%,transparent 52%,rgba(0,0,0,.5) 100%),
             linear-gradient(180deg,rgba(18,40,58,.16),transparent 45%,rgba(70,40,18,.12))}
#hj .hj-grade::after{content:"";position:absolute;inset:-60px;opacity:.07;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation:hjGrain 1s steps(6) infinite}
@keyframes hjGrain{0%{transform:translate(0,0)}20%{transform:translate(-22px,14px)}40%{transform:translate(18px,-26px)}60%{transform:translate(-12px,30px)}80%{transform:translate(28px,8px)}100%{transform:translate(0,0)}}

/* the one line of words, on a 1920x1080 canvas fitted to the viewport */
#hj .hj-canvas{position:absolute;left:50%;top:50%;width:1920px;height:1080px;transform-origin:0 0;pointer-events:none}
#hj .hj-line{position:absolute;left:0;width:1920px;top:985px;margin:0;text-align:center;font-family:"Mona Sans",sans-serif;font-size:40px;line-height:1.2;font-weight:500;letter-spacing:-.02em;white-space:nowrap;color:#fff;transform-origin:50% 50%;
  text-shadow:0 2px 24px rgba(0,0,0,.55)}
#hj .hj-line i{font-family:"Instrument Serif",serif;font-style:italic;font-weight:400;letter-spacing:0}
/* the bar at the bottom (ported from the film hero's journey.css): quote button, See our work, Scroll to play,
   one part per site as a rail that fills while that site plays, Skip. hero-journey.js keeps the tagline and monitor above it. */
#hj{--hj-mute:rgba(255,255,255,.56);--hj-line:rgba(255,255,255,.16);--hj-ease:cubic-bezier(.22,1,.36,1);--hj-gut:clamp(20px,4.2vw,72px)}
#hj .hj-bar{position:absolute;left:0;right:0;bottom:0;z-index:4;width:calc(100% - 2 * var(--hj-gut));max-width:1400px;margin:0 auto;
  padding-bottom:clamp(18px,3.2vh,32px);display:flex;flex-direction:column;gap:clamp(22px,3.6vh,40px);font-family:"Mona Sans",system-ui,sans-serif}
#hj .hj-act{display:flex;flex-wrap:wrap;align-items:center;gap:14px 30px}
#hj .cc-btn--primary{background:var(--mint);color:#062226;border-color:transparent}
#hj .hj-more{display:inline-flex;align-items:center;gap:10px;padding:10px 0;color:#fff;font-size:15px;font-weight:560;text-decoration:none}
#hj .hj-more span{border-bottom:1px solid rgba(255,255,255,.35);padding-bottom:2px;transition:border-color .25s}
#hj .hj-more svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .35s var(--hj-ease)}
#hj .hj-more:hover span{border-color:var(--mint)}
#hj .hj-more:hover svg{transform:translateX(4px)}
#hj .hj-more:focus-visible,#hj .hj-skip:focus-visible{outline:2px solid var(--mint);outline-offset:4px;border-radius:4px}
#hj .hj-hint{margin-left:auto;display:inline-flex;align-items:center;gap:10px;font-size:13px;font-weight:520;color:var(--hj-mute);transition:opacity .4s}
#hj .hj-hint i{position:relative;width:1px;height:26px;background:var(--hj-line);overflow:hidden}
#hj .hj-hint i::after{content:"";position:absolute;left:0;top:0;width:1px;height:10px;background:var(--mint);animation:hjDrop 1.8s cubic-bezier(.6,0,.3,1) infinite}
#hj .hj-hint.is-gone{opacity:0}
@keyframes hjDrop{0%{transform:translateY(-12px)}70%,100%{transform:translateY(28px)}}
#hj .hj-rail{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) auto;gap:clamp(10px,1.6vw,24px);align-items:end}
#hj .hj-r{all:unset;box-sizing:border-box;position:relative;display:flex;flex-direction:column;gap:12px;padding:6px 0 4px;cursor:pointer;-webkit-tap-highlight-color:transparent}
#hj .hj-r__t{display:flex;align-items:baseline;gap:10px;font-size:12px;font-weight:620;letter-spacing:.12em;text-transform:uppercase;color:var(--hj-mute);transition:color .3s}
#hj .hj-r__t b{font-weight:650;font-variant-numeric:tabular-nums;color:rgba(255,255,255,.4);transition:color .3s}
#hj .hj-r__l{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#hj .hj-r__bar{position:relative;display:block;height:2px;background:var(--hj-line);overflow:hidden;border-radius:2px}
#hj .hj-r__f{position:absolute;inset:0;background:#fff;transform:scaleX(0);transform-origin:0 50%}
#hj .hj-r.is-on .hj-r__t,#hj .hj-r:hover .hj-r__t{color:#fff}
#hj .hj-r.is-on .hj-r__t b{color:var(--mint)}
#hj .hj-r.is-on .hj-r__f{background:var(--mint)}
#hj .hj-r:focus-visible{outline:2px solid var(--mint);outline-offset:6px;border-radius:4px}
#hj .hj-skip{align-self:end;padding:6px 0 10px;font-size:12px;font-weight:620;letter-spacing:.12em;text-transform:uppercase;color:var(--hj-mute);text-decoration:none;white-space:nowrap;transition:color .25s}
#hj .hj-skip:hover{color:#fff}
/* the site's sound button sits in the bottom left corner: the rail starts to its right */
@media (min-width:768px) and (min-aspect-ratio:17/20){ #hj .hj-rail{padding-left:max(0px,calc(150px - max(var(--hj-gut),(100vw - 1400px) / 2)))} }
:root[data-theme="light"] body #hj .cc-site{--cc-ink:#FFFFFF;--cc-soft:rgba(255,255,255,.74);--cc-mute:rgba(255,255,255,.54);--cc-line:rgba(255,255,255,.12);--cc-mint:#17FFC5;--cc-on-mint:#04110D;color:#fff}
@media (max-width:767.98px), (max-aspect-ratio:17/20){
  #hj{--hj-gut:18px}
  #hj .hj-bar{gap:18px;padding-bottom:calc(max(10px,env(safe-area-inset-bottom)) + 44px)}
  #hj .hj-act{gap:10px 22px}
  #hj .hj-hint,#hj .hj-skip,#hj .hj-r__t{display:none}
  #hj .hj-rail{gap:6px;grid-template-columns:repeat(5,minmax(0,1fr))}
  #hj .hj-r{padding:10px 0 8px}
}
#hj .hj-vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
/* reduced motion: no scroll film, one still of the first site in its monitor with the line under it */
@media (prefers-reduced-motion: reduce){
  #hj .hj-track{height:100vh}
  #hj .hj-stick{--env:1}
  #hj [data-hj="c1"]{visibility:visible}
  #hj .hj-blk,#hj .hj-svg,#hj video{display:none}
  #hj .hj-ui{--p:120%}
  #hj .hj-grade::after,#hj .hj-hint i::after{animation:none}
}
