@import url('/credit-flow-motion.css?v=20260830-1917');

:root{
  --ease-premium:cubic-bezier(.22,.61,.36,1);
}

/* Brand visibility */
.brand img{
  width:32px;
  height:32px;
  padding:3px;
  border-radius:10px;
  background:rgba(255,255,255,.96);
  box-shadow:0 1px 0 rgba(7,21,45,.08),0 4px 18px rgba(7,21,45,.08);
  transition:filter .25s ease,background .25s ease,box-shadow .25s ease,transform .25s ease;
}
.brand:hover img{transform:scale(1.035)}
.siteNav.navDark .brand img{
  filter:none;
  background:#fff;
  box-shadow:0 0 0 1px rgba(255,255,255,.1),0 8px 24px rgba(0,0,0,.16);
}

/* Decorative logo overlays are intentionally removed from the homepage. */
.heroMark{display:none!important}
.principle::after{display:none!important;content:none!important}

/* Storytelling: one stage at a time, without crossfade overlap. */
.storySticky,.capitalSticky{isolation:isolate}
.storyCopy{isolation:isolate}
.storyPanel{
  visibility:hidden;
  opacity:0;
  transform:translate3d(0,28px,0) scale(.992);
  filter:blur(4px);
  transition:opacity .20s ease,transform .44s var(--ease-premium),filter .28s ease;
  will-change:opacity,transform,filter;
}
.storyPanel.isActive{
  visibility:visible;
  opacity:1;
  transform:translate3d(0,0,0) scale(1);
  filter:blur(0);
  z-index:2;
}
.storyPanel.isBefore{transform:translate3d(0,-24px,0) scale(.994)}
.storyPanel.isAfter{transform:translate3d(0,24px,0) scale(.994)}
.storyMeter span,.exposureBar span{will-change:width}

/* Scroll scenes finish before the sticky container releases. */
.story{height:455vh}
.capitalScene{height:270vh}
.decisionCore{transition:none}
.visualLabel{transition:none}
.exposureBar span{transition:none}

/* Strong-risk labels stay restrained but readable. */
.visualLabel{
  border-color:rgba(255,255,255,.17);
  background:rgba(255,255,255,.065);
  color:#b8cae6;
}

/* Footer */
.footer{padding-top:72px}
.footerBrand{
  justify-content:flex-start;
  gap:14px;
  min-height:66px;
}
.footerBrand img{
  content:url('/assets/logo-mark.svg');
  order:1;
  width:52px;
  height:52px;
  padding:4px;
  border-radius:14px;
  background:#fff;
  filter:none;
  box-shadow:0 8px 28px rgba(0,0,0,.16);
}
.footerBrand::before{
  content:"SKEG";
  order:2;
  color:#fff;
  font-size:22px;
  line-height:1;
  font-weight:780;
  letter-spacing:.16em;
}
.footerBrand p{
  order:3;
  margin-left:auto;
  max-width:360px;
  text-align:right;
  line-height:1.5;
}
.footerLinks a{transition:color .2s ease,opacity .2s ease}
.footerLinks a:hover{color:#fff}

@media (max-width:980px){
  .footerBrand p{margin-left:auto}
}

/* Mobile keeps the scroll-driven experience. Only one text panel can be visible. */
@media (max-width:760px){
  .story{
    height:430vh;
    min-height:2500px;
  }
  .storySticky{
    position:sticky;
    top:0;
    height:100svh;
    min-height:560px;
    overflow:hidden;
    display:block;
    padding:0;
  }
  .storyVisual{
    position:absolute;
    inset:0;
    height:auto;
    opacity:.72;
    overflow:hidden;
    display:grid;
    place-items:start center;
    padding-top:11svh;
    background:radial-gradient(circle at 50% 26%,rgba(54,105,198,.13),transparent 43%);
  }
  .decisionCore{
    width:min(78vw,390px);
    margin:0;
  }
  .storyCopy{
    position:relative;
    z-index:3;
    height:100%;
    display:block;
    padding:0;
    background:linear-gradient(180deg,rgba(7,22,47,0) 22%,rgba(7,22,47,.28) 42%,rgba(7,22,47,.94) 70%,#07162f 100%);
  }
  .storyPanel,
  .storyPanel.isActive,
  .storyPanel.isBefore,
  .storyPanel.isAfter{
    position:absolute;
    left:22px;
    right:22px;
    bottom:max(58px,calc(42px + env(safe-area-inset-bottom)));
    top:auto;
    max-width:none;
    margin:0;
    padding:0;
    border:0;
  }
  .storyPanel{
    visibility:hidden;
    opacity:0;
    transform:translate3d(0,34px,0) scale(.985);
    filter:blur(5px);
  }
  .storyPanel.isActive{
    visibility:visible;
    opacity:1;
    transform:none;
    filter:none;
  }
  .storyPanel.isBefore{transform:translate3d(0,-30px,0) scale(.99)}
  .storyPanel.isAfter{transform:translate3d(0,30px,0) scale(.99)}
  .storyPanel .step{margin-bottom:14px}
  .storyPanel .eyebrow{margin-bottom:11px}
  .storyPanel h2{
    font-size:clamp(36px,10.8vw,52px);
    line-height:.98;
    max-width:95%;
  }
  .storyPanel>p:last-child{
    font-size:16px;
    line-height:1.46;
    margin-top:18px;
    max-width:96%;
  }
  .storyMeter{
    display:block;
    left:22px;
    right:22px;
    bottom:max(22px,calc(12px + env(safe-area-inset-bottom)));
    width:auto;
  }
  .visualLabel{
    display:block!important;
    font-size:9px;
    padding:7px 9px;
    letter-spacing:.1em;
    backdrop-filter:blur(8px);
  }
  .visualLabelA{left:8%;top:17%}
  .visualLabelB{right:8%;top:24%}
  .visualLabelC{left:12%;bottom:auto;top:39%}
  .visualLabelD{right:10%;bottom:auto;top:45%}

  .capitalScene{
    height:245vh;
    min-height:1500px;
  }
  .capitalSticky{
    position:sticky;
    top:0;
    height:100svh;
    min-height:600px;
    overflow:hidden;
    display:grid;
    grid-template-columns:1fr;
    align-content:center;
    gap:28px;
    width:var(--wrap);
    padding:76px 0 max(28px,env(safe-area-inset-bottom));
  }
  .capitalCopy{max-width:none}
  .capitalCopy h2{
    font-size:clamp(35px,9.5vw,48px);
    line-height:.99;
  }
  .capitalCopy>p:not(.eyebrow){
    font-size:16px;
    line-height:1.42;
    margin:18px 0 20px;
  }
  .capitalCopy .cta{min-height:44px;padding:0 18px;font-size:13px}
  .capitalVisual{
    margin:0;
    padding:20px;
    border-radius:24px;
  }
  .exposureTitle{margin-bottom:13px}
  .exposureTitle strong{font-size:40px}
  .exposureBar{height:18px}
  .capitalResult{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:7px;
    margin-top:11px;
  }
  .capitalResult div{
    display:block;
    padding:10px 8px;
    min-width:0;
  }
  .capitalResult small{font-size:9px;line-height:1.25}
  .capitalResult strong{font-size:11px;line-height:1.2;margin-top:6px;text-align:left}
  .fine{font-size:9px;margin-top:12px}

  .footerBrand{align-items:center;flex-direction:row;flex-wrap:wrap}
  .footerBrand p{
    flex:0 0 100%;
    margin:8px 0 0;
    text-align:left;
  }
}

@media (max-width:640px){
  .footerBrand img{width:46px;height:46px;border-radius:12px}
  .footerBrand::before{font-size:19px}
}

@media (max-height:680px) and (max-width:760px){
  .storyVisual{padding-top:8svh;opacity:.58}
  .decisionCore{width:min(66vw,330px)}
  .storyPanel h2{font-size:clamp(32px,9.5vw,43px)}
  .storyPanel>p:last-child{font-size:14px;line-height:1.4}
  .capitalSticky{gap:18px;padding-top:68px}
  .capitalCopy h2{font-size:33px}
  .capitalCopy>p:not(.eyebrow){font-size:14px;margin:13px 0 16px}
  .capitalVisual{padding:15px}
  .capitalResult div{padding:8px 6px}
}

@media (prefers-reduced-motion:reduce){
  .storyPanel,.storyPanel.isActive,.storyPanel.isBefore,.storyPanel.isAfter{transition:none;filter:none}
}
