/* ============================================================
   DYNAMICS
   The site had one level: black ground, bone type, red hairline,
   every section, every page. Mastered flat. This gives it range.

   .inv     printed on bone - the loudest move, once a page
   .redslab    red as a field, not a fleck - the closing CTA
   .still   silence - the field stops, one steady line
   .mega    the one enormous word per page
   .split   the grid breaks - image bleeds off the left edge
   .spine   wayfinding rail  +  #prog reading progress

   Palette is unchanged: black, bone, #CC2229. Only the
   proportions move.
   ============================================================ */

/* ---------- 1. INVERSION ----------------------------------------
   Every component reads colour from these tokens, so redefining
   them here flips cards, tiers, buttons and hairlines together. */
.inv{
  --blk:#EFECE6;
  --bone:#0b0b0b;
  --dim:rgba(11,11,11,.74);
  --dimmer:rgba(11,11,11,.50);
  --hair:rgba(11,11,11,.17);
  background:var(--blk);color:var(--bone);
  padding-top:clamp(96px,14vh,180px);padding-bottom:clamp(96px,14vh,180px);
}
/* the glows that keep bone type legible over the field are mud on paper */
.inv p,.inv h3,.inv .lede,.inv .kick,.inv li,.inv .svc li,
.inv .facts dd,.inv .cline{text-shadow:none}
/* on paper the misregistration stops being an effect and becomes print */
.inv .big{
  --rest:1.1px;
  text-shadow:
    calc(var(--sep) * -1) calc(var(--sep) * -.55) 0 var(--cy),
    var(--sep)            calc(var(--sep) *  .55) 0 var(--mg);
}
.inv .shead .idx{color:var(--red)}
.inv .svc article:hover{background:#E5E1D9}
.inv .prog:hover{background:#E6E2DA}
.inv .btn.solid:hover{background:transparent;color:var(--red)}
.inv a{color:inherit}
/* rates get to be the subject of the section */
.inv .tiers .row{padding:24px 0;transition:padding-left .45s cubic-bezier(.16,1,.3,1),background .3s}
.inv .tiers .row:hover{padding-left:14px}
.inv .tiers .row span{font-family:var(--disp);font-size:clamp(22px,2.8vw,40px);
  letter-spacing:0;color:var(--bone);transition:color .3s;white-space:nowrap}
.inv .tiers .row:hover span{color:var(--red)}
.inv .tiers .row b{font-size:clamp(19px,2.2vw,30px)}

/* ---------- 2. THE SLAB ------------------------------------------ */
.redslab{position:relative;overflow:hidden;background:var(--red);color:#000;
  padding:clamp(80px,12vh,160px) var(--pad) clamp(70px,10vh,130px);
  transition:background .5s cubic-bezier(.16,1,.3,1)}
.redslab .wrap{position:relative;z-index:1}
.redslab .kick{color:rgba(0,0,0,.66);text-shadow:none}
.redslab p{color:rgba(0,0,0,.78);text-shadow:none;max-width:52ch}
.redslab p strong{color:#000}
/* the brand mark - every endpoint a peak - running under the slab.
   drawn as a mask so the hover state can recolour it */
.redslab::after{content:'';position:absolute;left:0;right:0;bottom:-2px;height:clamp(60px,9vw,120px);
  pointer-events:none;background:#000;opacity:.20;transition:opacity .5s,background .5s;
  -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 60' preserveAspectRatio='none'><path d='M0 58 L40 2 L80 58 L120 2 L160 58' fill='none' stroke='black' stroke-width='1.4' vector-effect='non-scaling-stroke'/></svg>") repeat-x 0 100% / clamp(120px,14vw,220px) 100%;
          mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 60' preserveAspectRatio='none'><path d='M0 58 L40 2 L80 58 L120 2 L160 58' fill='none' stroke='black' stroke-width='1.4' vector-effect='non-scaling-stroke'/></svg>") repeat-x 0 100% / clamp(120px,14vw,220px) 100%}
.redslab .go{display:inline-block;color:#000;text-decoration:none}
.redslab .go .ar{display:inline-block;transition:transform .5s cubic-bezier(.16,1,.3,1)}
.redslab .go:hover .ar{transform:translateX(.18em)}
.redslab .row{display:flex;flex-wrap:wrap;gap:10px 26px;margin-top:clamp(30px,4vw,54px);
  font-family:var(--mono);font-size:10.5px;letter-spacing:.2em;text-transform:uppercase}
.redslab .row a{color:#000;text-decoration:none;border-bottom:1px solid rgba(0,0,0,.35);padding-bottom:3px;
  transition:border-color .3s}
.redslab .row a:hover{border-color:#000}
/* hovering the call stamps the whole slab black - the red becomes the type */
.redslab:has(.go:hover){background:#000}
.redslab:has(.go:hover) .go,.redslab:has(.go:hover) .kick{color:var(--red)}
.redslab:has(.go:hover) p{color:rgba(239,236,230,.6)}
.redslab:has(.go:hover) .row a{color:var(--bone);border-color:rgba(239,236,230,.3)}
.redslab:has(.go:hover)::after{background:var(--red);opacity:.6}

/* ---------- 3. SILENCE ------------------------------------------- */
.still{background:#000;min-height:clamp(380px,72vh,720px);
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:clamp(26px,4vh,44px);text-align:center;padding:0 var(--pad)}
.still .line{width:100%;max-width:1320px}
.still svg{display:block;width:100%;height:clamp(34px,5vw,64px);overflow:visible}
.still path{fill:none;stroke:var(--red);stroke-width:1.5;vector-effect:non-scaling-stroke;stroke-linejoin:miter}
/* the voice arrives left to right, then never moves again */
.still svg{clip-path:inset(-20% 100% -20% 0);transition:clip-path 2.8s cubic-bezier(.65,0,.2,1) .15s}
.still .line.in svg{clip-path:inset(-20% 0 -20% 0)}
.still .quiet{margin:0;font-family:var(--mono);font-size:10px;letter-spacing:.42em;
  text-transform:uppercase;color:rgba(239,236,230,.40);text-shadow:none}
.still .say{margin:0;font-family:var(--disp);font-weight:400;text-transform:uppercase;
  font-size:clamp(24px,3.4vw,48px);line-height:1.02;color:var(--bone);max-width:22ch;text-shadow:none}
/* while silence is on screen the field actually stops */
#gl{transition:opacity 1.3s cubic-bezier(.4,0,.2,1)}
#grain{transition:opacity 1.3s}
body.hush #gl{opacity:0!important}
body.hush #grain{opacity:0!important}
@media(prefers-reduced-motion:reduce){
  .still svg,.still .line.in svg{clip-path:none;transition:none}
}

/* ---------- 4. SCALE --------------------------------------------- */
.mega{font-family:var(--disp);font-weight:400;text-transform:uppercase;
  font-size:clamp(66px,15.5vw,252px);line-height:.8;letter-spacing:-.014em;margin:.08em 0 0}
/* the index had seven headings all shouting at 148px - pull them back
   so the wordmark, the YIRAH line and the slab can actually be loud */
body:not(.sub) main section:not(#hero) h2.big{font-size:clamp(38px,6.6vw,104px)}

/* ---------- 5. THE SPLIT ----------------------------------------- */
.split{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);
  padding:0;align-items:stretch;min-height:clamp(540px,88vh,880px)}
.split figure{position:relative;margin:0;overflow:hidden;background:#050505}
.split figure img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  filter:contrast(1.07) saturate(.86) brightness(.92);
  transform:scale(1.08);transition:transform 2.2s cubic-bezier(.16,1,.3,1)}
.split figure.in img{transform:scale(1)}
.split figure::after{content:'';position:absolute;top:0;bottom:0;right:0;width:1px;background:var(--red);opacity:.85}
.split .txt{display:flex;flex-direction:column;justify-content:center;
  padding:clamp(70px,10vh,130px) var(--pad) clamp(70px,10vh,130px) clamp(36px,5.2vw,96px)}
.split .txt > *{max-width:48ch}
.split .txt h2.big{max-width:none}
.split .gets{grid-template-columns:1fr}
.split .stack{margin-top:clamp(20px,2.6vw,34px);border-top:1px solid var(--hair)}
.split .stack div{padding:18px 0;border-bottom:1px solid var(--hair)}
.split .stack b{display:block;font-family:var(--disp);font-weight:400;text-transform:uppercase;
  font-size:clamp(19px,2.1vw,28px);line-height:1;color:var(--bone)}
.split .stack i{display:block;font-style:normal;font-size:14.5px;color:var(--dim);margin-top:8px;line-height:1.55}
@media(max-width:860px){
  .split{grid-template-columns:1fr;min-height:0}
  .split figure{aspect-ratio:4/5;max-height:78vh}
  .split figure::after{top:auto;left:0;width:auto;height:1px}
  .split .txt{padding:clamp(48px,8vh,80px) var(--pad)}
}

/* ---------- 6. THE SPINE ----------------------------------------- */
.spine{position:fixed;left:clamp(12px,1.1vw,22px);top:50%;transform:translateY(-50%);
  z-index:25;display:flex;flex-direction:column;gap:13px;
  opacity:0;pointer-events:none;transition:opacity .6s}
.spine.on{opacity:1;pointer-events:auto}
.spine a{display:flex;align-items:center;gap:7px;text-decoration:none;
  font-family:var(--mono);font-size:9px;letter-spacing:.14em;
  color:rgba(239,236,230,.36);transition:color .3s}
.spine a i{display:block;width:9px;height:1px;background:currentColor;
  transition:width .5s cubic-bezier(.16,1,.3,1)}
.spine a b{font-weight:400;min-width:13px}
.spine a span{opacity:0;transform:translateX(-5px);pointer-events:none;
  transition:opacity .28s,transform .28s;white-space:nowrap;letter-spacing:.24em;
  text-transform:uppercase;background:#000;color:var(--bone);padding:4px 8px}
.spine:hover a span{opacity:1;transform:none}
.spine a:hover{color:var(--bone)}
.spine a.act{color:var(--red)}
.spine a.act i{width:20px}
.spine.light a{color:rgba(11,11,11,.42)}
.spine.light a.act{color:var(--red)}
.spine.light a span{background:#EFECE6;color:#0b0b0b}
.spine.onred a{color:rgba(0,0,0,.5)}
.spine.onred a.act{color:#000}
@media(max-width:1180px){.spine{display:none}}

#prog{position:fixed;left:0;top:0;height:2px;width:100%;z-index:40;pointer-events:none;
  background:var(--red);transform-origin:0 50%;transform:scaleX(0)}

/* the section number would vanish into the slab's own red */
.redslab .shead .idx{color:#000}
.redslab:has(.go:hover) .shead .idx{color:var(--red)}

/* ---------- the main nav reads its ground ---------- */
nav::before{transition:opacity .4s}
nav .nm{transition:color .3s}
body.navlight nav::before,body.navred nav::before{opacity:0}
body.navlight nav .nm,body.navlight nav a.l{color:#0b0b0b}
body.navlight nav a.l:hover,body.navlight nav a.l:focus-visible{color:#fff}
body.navred nav .nm,body.navred nav a.l{color:#000}
body.navred nav a.l::before{background:#000}
body.navred nav a.l:hover,body.navred nav a.l:focus-visible{color:var(--red);text-shadow:none}

/* ---------- grain: move the texture, not the layer ----------
   the old keyframes translated the fixed grain layer by 2-3%, which pushed
   it past the right edge and gave phones a sideways scroll. Shifting the
   tile inside a still box looks identical and overflows nothing. */
#grain{animation:grain-shift .9s steps(3) infinite}
@keyframes grain-shift{
  0%  {background-position:0 0}
  33% {background-position:-11px 7px}
  66% {background-position:8px -10px}
}

/* the rail's labels sit outside its box, so the rail itself stays 45px
   wide and never sits on top of the content it is pointing at */
.spine a{position:relative}
.spine a span{position:absolute;left:100%;top:50%;margin:-11px 0 0 8px}
.spine:hover a span{transform:none}
