/* Veltrex home — the story under the hero ("The problem no one talks about").
   A board section ([data-story]) between the hero and the problem panel: one screen, headline on top
   and the story beneath it. The board drives two states (storyInit, heroInit):
   - the opening (data-sbig): the headline alone, twice its size, in the middle of the screen;
   - settled (the visitor's next scroll): the headline at its real size at the top, and the story
     appearing beneath it, one paragraph under another, slowly the first time and briskly later.
   The eyebrow and headline also fade up once, the first time they scroll into view (data-sarmed).
   Without script everything is visible, settled; with reduced motion the states swap without moving.
   Colours: the headline's first line in the champagne of every title on the board, its answer in the
   board's tension red (lifted to read on black), white and champagne everywhere else. */
.vxs{--vxs-text:rgba(255,255,255,.68);--vxs-icon:rgba(255,255,255,.5);--vxs-title:var(--vxtitle,#EBD2A6);--vxs-hot:#E04452;--vxs-slow:cubic-bezier(.22,.61,.36,1);--vxs-move:cubic-bezier(.65,0,.35,1);--vxs-gx:clamp(20px,3.2vw,50px);--vxs-ts:clamp(28px,min(4.4vw,8svh),66px);--vxs-s:2;--vxs-drop:0px;--vxs-gap:clamp(24px,4.4svh,48px);--vxs-gutter:48px;--vxs-body:clamp(16px,min(1.6vw,3svh),24px);--vxs-turn:clamp(20px,min(2.1vw,4svh),32px);--vxs-end:clamp(24px,min(2.9vw,5.6svh),46px);--vxs-k:1;position:relative;z-index:2;box-sizing:border-box;min-height:100svh;display:flex;flex-direction:column;justify-content:center;padding:clamp(36px,7svh,80px) var(--vxs-gx);background:#050505;box-shadow:0 -34px 70px -34px rgba(0,0,0,.72),0 -1px 0 0 rgba(255,255,255,.07);overflow:clip;color:#FFFFFF;font-family:Inter,system-ui,sans-serif}
.vxs__inner{width:100%;max-width:1340px;margin:0 auto}

/* ---------- The headline ----------
   Two lines, each kept whole. Laid out at its settled size; the opening draws it lower and larger
   (--vxs-drop and --vxs-big, measured by storyInit so the big form sits mid-screen and never runs past
   the edge; at most --vxs-s), so the change is pure transform: nothing else moves. */
.vxs__head{position:relative;z-index:2}
.vxs__lift{position:relative}
.vxs__eyebrow{display:flex;align-items:flex-start;gap:10px;margin:0 0 clamp(14px,2.4svh,24px);font-size:12px;line-height:1.4;letter-spacing:.24em;text-transform:uppercase;color:rgba(255,255,255,.65)}
.vxs__eyebrow::before{content:"";flex:none;width:22px;height:1px;margin-top:.7em;background:linear-gradient(90deg,rgba(255,255,255,0),#FFFFFF)}
.vxs__title{margin:0;font-family:Archivo,sans-serif;font-weight:500;font-size:calc(var(--vxs-ts) * var(--vxs-k));line-height:1;letter-spacing:-.04em;color:#FFFFFF;transform-origin:0 0}
.vxs__title > span{display:block;width:max-content;white-space:nowrap}
/* the champagne is painted through the letters so a light can pass across it once; the padding keeps
   descenders inside the painted box */
.vxs__lead{padding:.06em .04em .16em 0;margin:-.06em -.04em -.16em 0;background-image:linear-gradient(105deg,rgba(255,250,232,0) 42%,rgba(255,250,232,.92) 50%,rgba(255,250,232,0) 58%),linear-gradient(var(--vxs-title),var(--vxs-title));background-size:250% 100%,100% 100%;background-position:100% 0,0 0;background-repeat:no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}
.vxs__hot{color:var(--vxs-hot)}
@media (forced-colors:active){.vxs__lead{background:none;color:CanvasText;-webkit-text-fill-color:CanvasText}}

.vxs[data-sbig] .vxs__lift{transform:translate3d(0,var(--vxs-drop),0)}
.vxs[data-sbig] .vxs__title{transform:scale(var(--vxs-big,var(--vxs-s)))}
.vxs[data-sready] .vxs__lift,.vxs[data-sready] .vxs__title{transition:transform .95s var(--vxs-move)}

/* ---------- The story ----------
   Beneath the headline, one paragraph under another, each running the full width and hanging from a
   small icon in the margin (centred on its first line), then the closing line. */
.vxs__body{display:flex;flex-direction:column;gap:calc(clamp(14px,2.6svh,28px) * var(--vxs-k));margin-top:calc(var(--vxs-gap) * var(--vxs-k))}
.vxs__beat{display:grid;grid-template-columns:var(--vxs-gutter) minmax(0,1fr);align-items:start}
.vxs__beat p{grid-column:2;margin:0;font-size:calc(var(--vxs-body) * var(--vxs-k));line-height:1.6;color:var(--vxs-text);text-wrap:pretty}
.vxs__em{color:#FFFFFF}
.vxs__icon{--vxs-isz:22px;--vxs-lh:1.6;grid-column:1;display:block;width:var(--vxs-isz);height:var(--vxs-isz);margin-top:calc((var(--vxs-body) * var(--vxs-k) * var(--vxs-lh) - var(--vxs-isz)) / 2);color:var(--vxs-icon)}
/* the turn of the story: no icon, set in the title face */
.vxs__beat--turn p{font-family:Archivo,sans-serif;font-weight:500;font-size:calc(var(--vxs-turn) * var(--vxs-k));line-height:1.3;letter-spacing:-.02em;color:#FFFFFF}

.vxs__close{display:grid;grid-template-columns:var(--vxs-gutter) minmax(0,1fr);align-items:start;margin-top:calc(var(--vxs-gap) * var(--vxs-k))}
.vxs__close-icon{--vxs-isz:30px;--vxs-lh:1.1;grid-column:1;display:block;width:var(--vxs-isz);height:var(--vxs-isz);margin-top:calc((var(--vxs-end) * var(--vxs-k) * var(--vxs-lh) - var(--vxs-isz)) / 2);color:rgba(255,255,255,.62)}
.vxs__close p{grid-column:2;margin:0;font-family:Archivo,sans-serif;font-weight:500;font-size:calc(var(--vxs-end) * var(--vxs-k));line-height:1.1;letter-spacing:-.035em;color:var(--vxs-title);text-wrap:balance}

/* ---------- The story's entrance ----------
   While the headline opens the screen the story waits, a little low, transparent and soft. When it
   settles, the story follows it in, one line after another (--vxs-i); each icon follows its text and
   the closing line's unread dot lands last. The transition belongs to the settled state only, and the
   return to the opening happens out of sight (data-sjump), so nothing ever animates away. */
.vxs__body > :nth-child(2){--vxs-i:1}
.vxs__body > :nth-child(3){--vxs-i:2}
.vxs__body > :nth-child(4){--vxs-i:3}
.vxs__close{--vxs-i:4}
.vxs[data-sbig] [data-sstep]{opacity:0;transform:translate3d(0,30px,0);filter:blur(6px)}
.vxs[data-sbig] .vxs__close[data-sstep]{transform:translate3d(0,40px,0)}
.vxs[data-sbig] [data-sstep] .vxs__icon,.vxs[data-sbig] [data-sstep] .vxs__dot{opacity:0}
.vxs[data-sready]:not([data-sbig]) [data-sstep]{--vxs-d:calc(.7s + var(--vxs-i,0) * .4s);transition:opacity 1.6s var(--vxs-slow),transform 1.6s var(--vxs-slow),filter 1.3s var(--vxs-slow);transition-delay:var(--vxs-d)}
.vxs[data-sready]:not([data-sbig]) .vxs__close[data-sstep]{--vxs-d:calc(.8s + var(--vxs-i) * .4s);transition-duration:1.8s,1.8s,1.4s}
.vxs[data-sready]:not([data-sbig]) [data-sstep] .vxs__icon{transition:opacity .9s ease-out;transition-delay:calc(var(--vxs-d) + .7s)}
.vxs[data-sready]:not([data-sbig]) [data-sstep] .vxs__dot{transition:opacity .6s ease-out;transition-delay:calc(var(--vxs-d) + 1.1s)}
/* a later visit has already read it */
.vxs[data-sknown][data-sready]:not([data-sbig]) [data-sstep]{--vxs-d:calc(.3s + var(--vxs-i,0) * .1s);transition-duration:.8s,.8s,.6s}
.vxs[data-sknown][data-sready]:not([data-sbig]) [data-sstep] .vxs__icon,.vxs[data-sknown][data-sready]:not([data-sbig]) [data-sstep] .vxs__dot{transition-delay:calc(var(--vxs-d) + .3s)}
.vxs[data-sjump],.vxs[data-sjump] *{transition:none !important}

/* The eyebrow and headline fade up the first time they scroll into view, and then stay. */
.vxs[data-sarmed] [data-sreveal]:not(.is-in){opacity:0;transform:translate3d(0,24px,0);filter:blur(6px)}
.vxs[data-sarmed] [data-sreveal].is-in{opacity:1;transform:none;filter:none;transition:opacity 1s var(--vxs-slow),transform 1s var(--vxs-slow),filter 1s var(--vxs-slow);transition-delay:var(--vxs-d,0s)}
/* once, as the headline arrives, a light passes across its first line */
.vxs[data-sarmed] .vxs__titlewrap.is-in .vxs__lead{animation:vxs-sheen 2.4s var(--vxs-slow) .45s both}
@keyframes vxs-sheen{from{background-position:0% 0,0 0}to{background-position:100% 0,0 0}}

@media (prefers-reduced-motion:reduce){
  .vxs[data-sready] .vxs__lift,.vxs[data-sready] .vxs__title,.vxs[data-sready] [data-sstep],.vxs[data-sready] [data-sstep] *{transition:none !important}
  .vxs[data-sarmed] [data-sreveal]:not(.is-in){opacity:1;transform:none;filter:none}
}

/* ---------- Phones ----------
   One column, everything a size down. On any screen still too short for it all, storyInit steps the
   type down (--vxs-k, body text never under 12.5px) until the headline and the whole story share
   one screen; past that the story runs on below and the page scrolls through it. */
@media (max-width:720px){
  .vxs{--vxs-ts:clamp(15px,min(5.8vw,3.4svh),22px);--vxs-s:1.7;--vxs-gap:clamp(16px,2.8svh,26px);--vxs-gutter:28px;--vxs-body:clamp(14px,2.05svh,15.5px);--vxs-turn:clamp(15px,2.3svh,18px);--vxs-end:clamp(17px,2.6svh,21px);padding:clamp(20px,4svh,40px) var(--vxs-gx)}
  .vxs__body{gap:calc(clamp(12px,2svh,18px) * var(--vxs-k))}
  .vxs__eyebrow{margin-bottom:10px;font-size:11px;letter-spacing:.17em}
  .vxs__beat p{line-height:1.5}
  .vxs__icon{--vxs-isz:17px;--vxs-lh:1.5}
  .vxs__close-icon{--vxs-isz:22px;--vxs-lh:1.15}
  .vxs__close p{line-height:1.15}
}
