/* Hero j, full-bleed scroll-expand, What we do (pinned sideways), pricing a. Loads after home-r5.css. */
.hf { display: none; }
[data-hero="j"] .hf-j { display: grid; }
.sls { position: absolute; inset: 0; opacity: calc(1 - var(--p, 0) * .7); }
.sl { position: absolute; inset: 0; opacity: 0; overflow: hidden; transition: opacity 1.5s var(--ease); }
.sl.on { opacity: 1; }
.sl img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hh-main { display: flex; flex-direction: column; align-items: flex-start; gap: 30px; }
.hh-act { display: flex; align-items: center; gap: var(--gut); flex-wrap: wrap; }
.pb.tw { --c: #fff; --cb: transparent; border-color: transparent; padding-left: 0; padding-right: 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (hover: hover) { .pb.tw:hover { background: transparent; color: #fff; opacity: .6; } }

/* text button (View all in a heading row): same button, no fill */
.pb.t { --c: #010101; --cb: transparent; border-color: transparent; }
@media (hover: hover) { .pb.t:hover { background: #010101; color: #fff; border-color: #010101; } }

/* globe band (Populous's home): a dark frame the Earth rises into as you scroll; home-globe.js draws it and fades the words in */
.gb { margin-top: var(--sp-sec); }
.gb-s { position: relative; height: 100svh; overflow: hidden; background: #00000f; color: #fff; }
.gb.go { height: 150svh; }
.gb.go .gb-s { position: sticky; top: 0; }
.gb-c { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s var(--ease); }
.gb-c.on { opacity: 1; }
.gb-t { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: center; gap: var(--gut); padding: 0 var(--gm); text-shadow: 0 0 30px rgba(0, 0, 15, .6); }
.gb-t h2, .gb-r { will-change: opacity, transform; }
.gb-t h2 { max-width: 30rem; font-size: var(--fs-h4); line-height: 1.2; letter-spacing: -.05em; font-weight: 400; text-wrap: balance; }
.gb-r { max-width: 22rem; display: grid; justify-items: start; gap: 28px; }
.gb-r p { line-height: 1.5; }
.gb-r .pb { text-shadow: none; }
.gb-cr { position: absolute; right: var(--gm); bottom: 14px; font-size: 11px; color: rgba(255, 255, 255, .5); }
@media (max-width: 999px) { .gb-t { flex-direction: column; align-items: flex-start; padding: 100px var(--gm) 56px; } }

/* hero j: hero g with motion. Photo and site card change together every 5s. */
.hf-j .mh-bg::before { opacity: 1; background: linear-gradient(to bottom, rgba(1, 1, 1, .66) 0, rgba(1, 1, 1, .5) 24%, rgba(1, 1, 1, .5) 60%, rgba(1, 1, 1, .62) 100%); }
.hf-j .sl { transition: opacity 1.6s var(--ease); }
@media (prefers-reduced-motion: no-preference) { .hf-j .sl.on img { animation: jset 6.6s var(--ease) both; } }
@keyframes jset { from { transform: scale(1.06); } to { transform: scale(1); } }
.hf-j .mh-in { align-items: flex-end; }
.hf-j .hh-main { flex: 1; }
.hf-j .hh-sub { font-size: var(--fs); line-height: 1.5; max-width: 31.25rem; }
/* round 8 (24 Nov 2026, Deep approved): Populous headline low on the left, the buttons level with the card bottom, a short split proof card in the corner. Same side padding both sides (--hx). */
.hj-side { flex: none; width: var(--w3); display: flex; flex-direction: column; gap: 16px; }
.hj-card { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; height: clamp(124px, calc(8 * var(--vw)), 154px); padding: 8px; background: #fff; color: #010101; border-radius: 4px; transform-origin: 100% 100%; }
.hj-fr { position: relative; height: 100%; overflow: hidden; border-radius: 4px; background: #e6e6e6; }
.hj-s { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; clip-path: inset(0 0 0 100%); }
.hj-s.on { z-index: 2; clip-path: inset(0); transition: clip-path .9s var(--ease) .3s; }
.hj-s.out { z-index: 1; clip-path: inset(0 100% 0 0); transition: clip-path .9s var(--ease) .3s; }
.hj-cap { display: grid; padding: 10px 10px 2px 12px; }
.hj-cap a { grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: space-between; color: inherit; text-decoration: none; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); }
.hj-cap a.on { opacity: 1; pointer-events: auto; transition: opacity .6s var(--ease) .6s; }
.hj-cap a::after { content: ""; position: absolute; z-index: 3; inset: 0; } /* the whole card is the link */
.hj-cap a:focus-visible { outline: none; }
.hj-card:focus-within { outline: 2px solid #4DA1FF; outline-offset: 3px; }
.hj-ln { max-width: 11em; font-size: clamp(15px, calc(.9896 * var(--vw)), 19px); line-height: 1.2; letter-spacing: -.03em; }
.hj-ft { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hj-lg { display: block; width: auto; height: clamp(24px, calc(1.5625 * var(--vw)), 30px); max-width: 60%; object-fit: contain; object-position: left bottom; }
.hj-go { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 4px; background: #010101; color: #fff; transition: background-color .4s var(--ease), color .4s var(--ease); }
.hj-go svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .5s var(--ease); }
@media (hover: hover) { .hj-card:hover .hj-go { background: #4DA1FF; color: #010101; } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hj-card { transition: transform .7s var(--ease); }
  .hj-card:hover { transform: scale(1.04); }
  .hj-card:hover .hj-go svg { transform: translate(2px, -2px); }
  .hj-s.on { transition: clip-path .9s var(--ease) .3s, transform 1.2s var(--ease); }
  .hj-card:hover .hj-s.on { transform: scale(1.06); }
}
.hj-ctl { display: flex; gap: 8px; }
.hj-ctl button { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 8px 0 0; border: 0; background: none; color: #fff; font: 500 10px/1.2 "Switzer", sans-serif; letter-spacing: .04em; text-align: left; cursor: pointer; opacity: .6; transition: opacity .3s var(--ease); }
.hj-ctl button[aria-current="true"], .hj-ctl button:hover { opacity: 1; }
.hj-ctl i { position: relative; display: block; width: 100%; height: 1px; background: rgba(255, 255, 255, .35); }
.hj-ctl i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(var(--pg, 0)); transform-origin: left; }
.hj-ctl button[aria-current="true"] i::after { transform: scaleX(var(--pg, 1)); }
@media (min-width: 1000px) {
  .hf-j { --hx: clamp(32px, calc(3.3333 * var(--vw)), 64px); }
  .hf-j .mh-in { padding: var(--gm) var(--hx) calc(var(--hp) + 34px); }
  .hf-j .hh-main { gap: 24px; }
  .hf-j.mh h1 { margin-bottom: 4px; }
  .hj-side { position: relative; width: clamp(380px, calc(25 * var(--vw)), 480px); }
  .hj-ctl { position: absolute; top: 100%; left: 0; right: 0; margin-top: 2px; }
  .hj-ctl button { padding-top: 4px; gap: 6px; }
}
@media (max-width: 999px) { .hf-j .mh-in { align-items: flex-start; } .hj-side { width: 100%; max-width: 460px; } }
@media (max-width: 699px) { .hf-j .mh-in { gap: 24px; padding-top: 88px; } .hf-j .hh-sub { display: none; } .hf-j .hh-main { gap: 24px; } .hj-side { gap: 8px; } .hj-ln { font-size: 15px; } .hj-cap { padding: 6px 6px 0 8px; } }

/* pricing a (r17): Free demo and the monthly line lead, two printed cards, Premium and Custom as rows, then the table */
.pa-lead { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gut); margin-bottom: var(--gut); }
.pa-lead article { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 30px; border: 1px solid #010101; border-radius: 4px; }
.pa-lead h3 { font-size: 21px; line-height: 1.2; letter-spacing: -.05em; }
.pa-lead .pp { font-size: var(--fs-h1); line-height: 1; letter-spacing: -.05em; }
.pa-lead .su { font-size: var(--fs-l); letter-spacing: -.02em; }
.pa-lead .pt { font-size: var(--fs-l); line-height: 1.2; max-width: 22em; }
.pa-lead .pb { margin-top: auto; }
.pa-g.two { grid-template-columns: 1fr 1fr; }
.pa-g.two .pa-c { min-height: 0; }
@media (max-width: 999px) { .pa-lead, .pa-g.two { grid-template-columns: 1fr; } }


/* ================= What we do: RAYRAYlab pinned gallery (values from the Details capture) ================= */
/* Desktop: sticky 100vh stage, cards 50vh x 74vh, gap (100vw - 150vh - 60px) / 2, 30px side margin. Script scrubs the track. */
.sv { --cw: min(calc((100vw - var(--gm) - 54px) / 3.3), calc(.68 * .74 * 100vh)); margin: 0; background: #0b0b0b; color: #fff; }
.sv a { color: inherit; }
.sv-st { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; box-sizing: border-box; overflow: hidden; }
.sv-ps { position: relative; flex: none; }
.sv-lb { position: absolute; top: -46px; left: var(--gm); color: #fff; }
.sv-items { list-style: none; margin: 0 0 0 var(--gm); padding: 0; position: relative; display: flex; justify-content: flex-start; gap: 18px; will-change: transform; }
.sv-it { position: relative; flex: none; cursor: pointer; pointer-events: none; }
.sv-it > a { display: block; position: relative; }
.sv-im { width: var(--cw); height: calc(var(--cw) / .68); overflow: hidden; background: #1c1c1c; position: relative; }
.sv-zi { position: absolute; inset: 0; transition: transform .6s var(--ease); }
.sv-im::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(rgba(0,0,0,.5), transparent 38%, transparent 66%, rgba(0,0,0,.5)); }
.sv-im::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: #000; opacity: 0; transition: opacity .6s var(--ease); }
.sv-im img { position: absolute; top: 0; left: -9%; display: block; width: 118%; max-width: none; height: 100%; object-fit: cover; will-change: transform; }
.sv-it:hover .sv-zi { transform: scale(1.06); }
.sv-it:hover .sv-im::after { opacity: .3; }
.sv-info { position: absolute; top: 15px; bottom: 18px; left: 0; right: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: center; text-align: center; z-index: 2; padding: 0 12px; }
.sv-m { display: block; overflow: hidden; }
.sv-m > span { display: block; }
.sv-b { max-width: 80%; }
.sv-title { font-size: 17px; line-height: 20px; letter-spacing: -.02em; font-weight: 500; }
.sv-sub { font-size: 15px; line-height: 1.35; letter-spacing: -.01em; }
.sv-pv { position: absolute; z-index: 2; width: 250px; aspect-ratio: 250 / 140; left: calc(50% - 125px); top: calc(50% - 70px); transform: scale(.9); opacity: 0; transition: transform .4s var(--ease), opacity .4s var(--ease); background: #fff; overflow: hidden; pointer-events: none; }
.sv-pv img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sv-it:hover .sv-pv { transform: scale(1); opacity: 1; }
.sv-sp { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; width: 253px; height: 16px; transform-origin: top left; }
.sv-ab { display: block; width: 0; min-width: 16px; height: 16px; border: 1px solid #fff; box-sizing: border-box; background: #0b0b0b; position: relative; z-index: 2; }
.sv-sp b { position: absolute; top: 0; left: 0; width: 1px; height: 16px; background: #fff; z-index: 1; }
@media (min-width: 2000px) { .sv-pv { width: 340px; left: calc(50% - 170px); top: calc(50% - 86px); } }
@media (max-width: 900px) {
  .sv-pin { height: auto !important; }
  .sv-st { position: relative; height: auto; display: block; padding: 60px var(--gm); }
  .sv-ps { width: 100%; }
  .sv-lb { position: relative; top: auto; left: auto; padding: 0 0 14px; }
  .sv-items { margin: 0; padding: 0; flex-direction: column; gap: 12px; transform: none !important; }
  .sv-it { pointer-events: auto !important; }
  .sv-im { width: 100%; height: auto; aspect-ratio: 68 / 100; }
  .sv-pv, .sv-sp { display: none; }
  .sv-info { top: 10px; bottom: 10px; }
  .sv-title { font-size: 14px; line-height: 16px; }
  .sv-sub { font-size: 14px; line-height: 1.35; }
}

/* entrance: clip from the bottom, then the text line-mask rise (Populous ease, 1s). Off under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .sv-im { clip-path: inset(100% 0 0 0); }
  .sv-it.in .sv-im { clip-path: inset(0); transition: clip-path 1s var(--ease) var(--d, 0s); }
  .sv-m > span { transform: translate3d(0, 105%, 0); }
  .sv-it.in .sv-m > span { transform: none; transition: transform 1s var(--ease) calc(var(--d, 0s) + .25s); }
}
/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }

/* Load intro, once a session (approved 25 Nov; ?v=a replays it). All three: a white page with the W cut out of it,
   the hero photo fills the W from the bottom up, "WebTag" rises beside it, then the page lifts away to show the site.
   home-boot.js sets html.ld + ld-<v>, then ld-go, then clears them. The header and the hero's words arrive as it leaves. */
.ld .hdr { opacity: 0; }
.ld-go .hdr { opacity: 1; transition: opacity .6s var(--ease) .5s; }
.ld .mh .hh-sub, .ld .mh .hh-act, .ld .hj-side { opacity: 0; transform: translate3d(0, 30px, 0); }
.ld-go .mh .hh-sub, .ld-go .mh .hh-act, .ld-go .hj-side { opacity: 1; transform: none; transition: opacity .8s var(--ease) .55s, transform .8s var(--ease) .55s; }
.ld:not(.ld-go) .mh .lm > span { transform: translate3d(0, 100%, 0) !important; clip-path: polygon(-10% -100%, 110% -100%, 110% 0, -10% 0) !important; transition: none !important; }
.ld-go .mh .lm > span { transition-delay: calc(.35s + var(--i, 0) * .12s); }
.ld .sls { transform: scale(1.08); }
.ld-go .sls { transform: none; transition: transform 1.6s var(--ease); }

/* the sheet: one shape (a huge white square with the W as its hole) plus the word, in one svg per panel */
.ldw { display: none; }
.ld .ldw { display: block; position: fixed; inset: 0; z-index: 1001; }
.ldw-p { position: absolute; inset: 0; overflow: hidden; }
.ldw svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
@media (max-width: 699px) { .ldw svg { left: -45%; width: 190%; } }
.ldw-s { fill: #fff; stroke: none; }
.ldw-f { fill: #fff; stroke: none; transform-box: fill-box; transform-origin: 50% 0; animation: ldwFill .8s cubic-bezier(.65, 0, .35, 1) .1s both; } /* covers the W, then lifts off it: the photo fills the W from the bottom */
@keyframes ldwFill { to { transform: scaleY(0); } }
.ldw-t { fill: #010101; stroke: none; font: 700 602px "Switzer", "Helvetica Neue", Arial, sans-serif; letter-spacing: -21px; opacity: 0; animation: ldwWord .7s var(--ease) .5s forwards; }
@keyframes ldwWord { from { opacity: 0; transform: translateY(160px); } to { opacity: 1; transform: none; } }
.ldw-g { transform-origin: 327px 297px; }

/* A, picked 25 Nov: the white page lifts off from the bottom to the top in one piece (no split), the W window leaving with it. */
.ld-a.ld-go .ldw-p { transform: translateY(-100%); transition: transform 1.1s cubic-bezier(.76, 0, .24, 1); }
