/* scroll-driven motion */
@supports (animation-timeline: view()){
  .pm3 .rv{animation:pm3-rv linear both;animation-timeline:view();animation-range:entry 0% entry 70%}
}
@keyframes pm3-rv{from{opacity:0;transform:translateY(48px)}to{opacity:1;transform:none}}
@keyframes pm3-rise{from{transform:translateY(105%)}to{transform:none}}
@keyframes pm3-up{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes pm3-tick-a{from{opacity:.35;filter:blur(3px);transform:translateY(5px)}to{opacity:1;filter:none;transform:none}}
@keyframes pm3-tick-b{from{opacity:.35;filter:blur(3px);transform:translateY(5px)}to{opacity:1;filter:none;transform:none}}
@keyframes pm3-marq{to{transform:translateX(-50%)}}
@keyframes pm3-card{from{opacity:0;transform:translateY(28px) scale(.97)}to{opacity:1;transform:none}}
/* cascades: cards in a row arrive one after another, and a section title's second line follows its first */
@supports (animation-timeline: view()){
  .pm3 .rv:nth-child(2){animation-range:entry 4% entry 74%}
  .pm3 .rv:nth-child(3){animation-range:entry 8% entry 78%}
  .pm3 .rv:nth-child(4){animation-range:entry 12% entry 82%}
  .pm3 .rv:nth-child(n+5){animation-range:entry 15% entry 85%}
  /* "backwards", not "both": once a line has arrived the animation lets go of it. Held, it leaves a blur(0) filter on
     the line for good, and Safari then cuts off whatever hangs below the line box: the tail of a g or a y */
  .pm3 .main .sec .h2 .l{animation:pm3-hl linear backwards;animation-timeline:view();animation-range:entry 0% entry 58%}
  .pm3 .main .sec .h2 .l.dim{animation-range:entry 10% entry 72%}
  .pm3 .main .fact,.pm3 .main .tile,.pm3 .main .st4{animation:pm3-rv linear both;animation-timeline:view();animation-range:entry 0% entry 70%}
  .pm3 .main .fact:nth-child(2),.pm3 .main .tile:nth-child(2),.pm3 .main .st4:nth-child(2){animation-range:entry 6% entry 76%}
  .pm3 .main .fact:nth-child(3),.pm3 .main .tile:nth-child(3),.pm3 .main .st4:nth-child(3){animation-range:entry 12% entry 82%}
  .pm3 .main .tile:nth-child(4),.pm3 .main .st4:nth-child(4){animation-range:entry 18% entry 88%}
}
@keyframes pm3-hl{from{opacity:0;transform:translateY(34px);filter:blur(8px)}to{opacity:1;transform:none;filter:none}}

/* the closing card: when it comes into view its words arrive one after another, then its buttons */
.pm3[data-mo="1"] .endx .endx-copy .h2 .l,.pm3[data-mo="1"] .endx .endx-copy .sub,.pm3[data-mo="1"] .endx .ctas{transition:opacity .9s var(--ease),transform 1.1s var(--ease),filter 1.1s var(--ease)}
.pm3[data-mo="1"] .endx .endx-copy .h2 .l + .l{transition-delay:.1s}
.pm3[data-mo="1"] .endx .endx-copy .sub{transition-delay:.22s}
.pm3[data-mo="1"] .endx .ctas{transition-delay:.34s}
.pm3[data-mo="1"] .endx:not([data-in]) .endx-copy .h2 .l{opacity:0;transform:translateY(34px);filter:blur(10px)}
.pm3[data-mo="1"] .endx:not([data-in]) .endx-copy .sub,.pm3[data-mo="1"] .endx:not([data-in]) .ctas{opacity:0;transform:translateY(20px)}
/* motion 2: start */
/* reveals settle instead of sliding at one speed, and arrive from a little further back */
@keyframes pm3-rv{from{opacity:0;transform:translateY(64px) scale(.97);animation-timing-function:cubic-bezier(.16,.84,.3,1)}to{opacity:1;transform:none}}
@keyframes pm3-hl{from{opacity:0;transform:translateY(40px);filter:blur(10px);animation-timing-function:cubic-bezier(.16,.84,.3,1)}to{opacity:1;transform:none;filter:none}}
@keyframes pm3-card{from{opacity:0;transform:translateY(34px) scale(.96);animation-timing-function:cubic-bezier(.16,.84,.3,1)}to{opacity:1;transform:none}}
/* numbers roll in */
@keyframes pm3-tick-a{from{opacity:0;filter:blur(6px);transform:translateY(.26em)}55%{opacity:1}to{opacity:1;filter:none;transform:none}}
@keyframes pm3-tick-b{from{opacity:0;filter:blur(6px);transform:translateY(.26em)}55%{opacity:1}to{opacity:1;filter:none;transform:none}}
.pm3 .hq-n.tka,.pm3 .hq-n.tkb,.pm3 .num.tka,.pm3 .num.tkb{animation-duration:.6s;animation-timing-function:var(--spring)}
/* a press lands at once, the release springs back */
.pm3 .btn:active,.pm3 .ib:active,.pm3 .rbtn:active,.pm3 .chip:active,.pm3 .tcta:active,.pm3 .stepper button:active{transition-duration:.11s}
/* the primary button lifts and light crosses it once */
.pm3 .btn.gold{overflow:hidden}
.pm3 .btn.gold::after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;background:linear-gradient(104deg,rgba(255,255,255,0) 36%,rgba(255,255,255,.5) 50%,rgba(255,255,255,0) 64%);transform:translateX(-115%)}
@media (hover: hover){
  .pm3 .btn:hover{transform:translateY(-1.5px)}
  .pm3 .btn:active{transform:scale(.96)}
  .pm3 .btn.gold:hover{box-shadow:inset 0 1px 0 rgba(255,255,255,.7),inset 0 -1px 0 rgba(120,90,20,.22),0 18px 32px -14px rgba(168,130,36,.95)}
  .pm3 .btn.gold:hover::after{transform:translateX(115%);transition:transform .85s cubic-bezier(.3,.6,.2,1)}
  .pm3 .btn.glass:hover{box-shadow:inset 0 1px 0 var(--rim),inset 0 0 0 .5px var(--hair-2),0 16px 28px -16px rgba(10,26,58,.5)}
  /* loan cards lean toward the pointer and catch a little light */
  .pm3 .card:hover{transform:perspective(1100px) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) scale(1.02)}
  .pm3 .card[data-tilt]{transition:transform .28s cubic-bezier(.2,.7,.3,1)}
  .pm3 .card::after{content:"";position:absolute;inset:0;z-index:1;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .45s var(--ease);background:radial-gradient(420px circle at var(--gx,50%) var(--gy,0%),rgba(255,255,255,.2),rgba(255,255,255,0) 62%)}
  .pm3 .card[data-tilt]::after{opacity:1}
}
/* on touch, what you press gives a little */
@media (hover: none){
  .pm3 .card:active,.pm3 .lo:active,.pm3 .post:active,.pm3 .tab:active{transform:scale(.975);transition-duration:.11s}
  .pm3 .row:active{background:var(--hover)}
}
/* text links draw their underline */
.pm3 .tl span{background:linear-gradient(currentColor,currentColor) 0 calc(100% - 1px) / 0 1px no-repeat;transition:background-size .45s var(--ease)}
.pm3 .tl:hover span{text-decoration:none;background-size:100% 1px}
/* the focus ring arrives */
.pm3 :focus-visible{animation:pm3-focus .38s var(--ease)}
@keyframes pm3-focus{from{outline-offset:10px;outline-color:transparent}}
/* the header highlight glides from one item to the next */
@supports (anchor-name: --a) and (anchor-scope: --a){
  .pm3 .links{anchor-scope:--pm3-nl}
  .pm3 .links .nl{position:relative;z-index:1;transition:opacity .25s ease,anchor-name .5s allow-discrete}
  .pm3 .links .nl:hover,.pm3 .links .nl[aria-expanded="true"]{background:transparent;anchor-name:--pm3-nl;transition:opacity .25s ease,anchor-name 0s}
  .pm3 .links:has(.nl:hover) .nl:not(:hover){anchor-name:none;transition:opacity .25s ease,anchor-name 0s}
  .pm3 .links::before{content:"";position:absolute;z-index:0;position-anchor:--pm3-nl;left:anchor(left);top:anchor(top);width:anchor-size(width);height:anchor-size(height);border-radius:999px;background:var(--hover);pointer-events:none;opacity:0;transition:opacity .25s ease,left .42s var(--ease),width .42s var(--ease)}
  .pm3 .links:has(.nl:hover)::before,.pm3 .links:has(.nl[aria-expanded="true"])::before{opacity:1}
}
/* reviews fade in and out at the edges */
.pm3 .marq{-webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent)}
/* long reads: a gold line across the top shows how far along you are */
.pm3 .rp{position:sticky;top:0;z-index:60;display:block;height:3px;margin-bottom:-3px;background:var(--gold);transform-origin:0 50%;transform:scaleX(0);pointer-events:none}
@supports (animation-timeline: scroll()){
  .pm3 .rp{animation:pm3-rp linear both;animation-timeline:scroll(nearest block)}
}
@keyframes pm3-rp{from{transform:scaleX(0)}to{transform:scaleX(1)}}
/* motion 2: end */
/* liquid glass catches the light: a soft sheen and a rim that follow the pointer */
.pm3 .fact .fn[data-fit]{font-size:60px;letter-spacing:-.045em;padding-top:.3em}
.pm3 .gp::after{content:"";position:absolute;inset:0;padding:1.2px;border-radius:inherit;pointer-events:none;opacity:0;transition:opacity .45s var(--ease);background:radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%),rgba(255,255,255,.95),rgba(255,255,255,0) 70%);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0)}
.pm3[data-theme="dark"] .gp::after{background:radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%),rgba(255,255,255,.55),rgba(255,255,255,0) 70%)}
.pm3 .gp[data-lit]::after{opacity:1}
.pm3 .gp[data-lit]{background-image:radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%),rgba(255,255,255,.26),rgba(255,255,255,0) 60%)}
.pm3[data-theme="dark"] .gp[data-lit]{background-image:radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%),rgba(255,255,255,.06),rgba(255,255,255,0) 60%)}

@container pm3 (max-width: 1180px){
  .pm3 .h2{font-size:64px}
  .pm3 .nl{padding:0 12px}
}
@container pm3 (max-width: 1000px){
  .pm3 .links,.pm3 .tel{display:none}
  .pm3 .menu{display:inline-grid}
  .pm3 .acts{margin-left:auto}
  .pm3 .sheet{display:block}
  .pm3 .scrim{display:none}
  .pm3[data-nav="float"] .bar,.pm3[data-nav="hide"] .bar{max-width:640px}
  .pm3 .foot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pm3 .brand{grid-column:1 / -1}
  .pm3 .legal{grid-template-columns:minmax(0,1fr)}
}
@container pm3 (max-width: 760px){
  .pm3 .wrap{padding:0 22px}
  .pm3 .logo{height:46px;padding:0 6px}
  .pm3 .acts .btn{display:none}
  .pm3 .sheet{padding-top:64px}
  .pm3 .h2{font-size:44px}
  .pm3 .sub{margin-top:14px;font-size:19px}
  .pm3 .tl{font-size:17px}
  .pm3 .tabs{position:sticky;bottom:0;z-index:30;display:flex;align-items:center;gap:10px;padding:8px 12px 20px;pointer-events:none}
  .pm3 .tabs > *{pointer-events:auto}
  .pm3 .hdr{height:68px;margin-bottom:-68px}
  .pm3 .bar{height:56px;margin-top:10px}
  .pm3 .logo img{height:34px}
  .pm3 .main{border-radius:0 0 32px 32px}
  .pm3 .foot{margin-top:-32px;padding:84px 0 30px}
  .pm3 .foot-grid{grid-template-columns:minmax(0,1fr);gap:0}
  .pm3 .brand{margin-bottom:34px}
  .pm3 .flogo img{height:54px}
  .pm3 .fc{border-top:1px solid rgba(255,255,255,.12)}
  .pm3 .fc:last-child{border-bottom:1px solid rgba(255,255,255,.12)}
  .pm3 .fd{display:none}
  .pm3 .fm{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:56px;font-size:17px;font-weight:600;color:#FFFFFF}
  .pm3 .fm svg{width:14px;height:14px;transition:transform .5s var(--spring)}
  .pm3 .fc[data-open="true"] .fm svg{transform:rotate(45deg)}
  .pm3 .fc-list{grid-template-rows:0fr;transition:grid-template-rows .5s var(--swift)}
  .pm3 .fc[data-open="true"] .fc-list{grid-template-rows:1fr}
  .pm3 .fc[data-open="true"] .fc-list ul{padding-bottom:14px}
  .pm3 .fc-list a{padding:8px 0;font-size:16px}
  .pm3 .legal{margin-top:36px}
  .pm3 .legal-b{flex-wrap:wrap;gap:14px 22px}
}

@media (prefers-reduced-motion: reduce){
  .pm3,.pm3 *,.pm3 *::before,.pm3 *::after{animation:none !important;transition-duration:.01ms !important;transition-delay:0s !important}
  .pm3 .marq{overflow-x:auto}
}


/* ---- version 2 branding (brand2.py) ---- */
.pm3{word-spacing:.07em}
.pm3 :is(.h1,.h2,.t1,.gh-h1,.zero-h,.tag,.endx-h){word-spacing:.1em}
/* the Long house logo: never under 150 px wide; the light header's glass is whiter so the navy logo stands on a light ground */
.pm3{--bar-top:rgba(255,255,255,.62)}
.pm3[data-theme="dark"]{--bar-top:rgba(10,22,52,.42)}
.pm3 .logo{height:56px}
.pm3 .logo img,.pm3[data-nav="float"] .logo img,.pm3[data-nav="hide"] .logo img{height:46px}
.pm3 .flogo img{height:58px}
.pm3 .legal-id{grid-column:1 / -1;font-size:13px;line-height:1.6;color:rgba(255,255,255,.88)}
.pm3 .legal-id{overflow:hidden}
.pm3 .legal-id .idl{display:flex;flex-wrap:wrap;gap:1px 0;margin-left:-1.5em}
.pm3 .legal-id .idl span{position:relative;padding-left:1.5em;white-space:nowrap}
.pm3 .legal-id .idl span::before{content:"|";position:absolute;left:.62em;opacity:.45}
.pm3[data-theme="dark"] .foot{box-shadow:inset 0 1px 0 rgba(181,189,200,.12)}
.pm3 .tl{font-weight:600}
/* loan cards */
.pm3 .c-s{background:#E4E8EE}
.pm3[data-theme="dark"] .c-s{background:#1B3160}
.pm3[data-theme="dark"] .c-n{background:#061127;box-shadow:inset 0 0 0 1px rgba(181,189,200,.16)}
/* fields */
.pm3[data-theme="dark"] .inp:focus{box-shadow:inset 0 0 0 1.5px var(--link),0 0 0 5px rgba(230,190,85,.16)}
/* page titles keep their lines in the wider typeface */
.pm3 h1.t1{font-size:clamp(54px,5.3cqw,80px)}
.pm3 .geo-g h1.t1{font-size:70px}
@container pm3 (max-width: 760px){
  .pm3 h1.t1{font-size:11.4cqw}
}

