/* Alshahm Study V8 SIGNATURE — precision layer over the V7 design system */
:root{
  --v8-green:#003f2d;
  --v8-green-deep:#002f22;
  --v8-green-light:#0a684b;
  --v8-gold:#efa812;
  --v8-gold-light:#ffc83d;
  --v8-ink:#082f23;
  --v8-line:#dce6e1;
  --v8-beige:#f8f1e8;
  --v8-shadow:0 18px 54px rgba(0,63,45,.12);
}

html{overflow-x:clip}
body.v8-site{overflow-x:clip}

.v8-site .v8-service-mobile,
.v8-site .v8-founder-mobile-copy{display:none}

.v8-site :where(a,button,input,select,textarea):focus-visible{
  outline:3px solid rgba(239,168,18,.38);
  outline-offset:3px;
}

/* Welcome motion — one clear story from ambition to graduation */
body.intro-active{overflow:hidden}
.v8-site .intro{
  --intro-duration:4.5s;
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;
  min-height:100svh;
  padding:clamp(72px,9vh,106px) 24px 42px;
  isolation:isolate;
  overflow:hidden;
  color:#fff;
  background:
    radial-gradient(circle at 50% 36%,rgba(24,123,88,.34),transparent 31%),
    radial-gradient(circle at 12% 86%,rgba(239,168,18,.1),transparent 24%),
    linear-gradient(142deg,#00291e 0%,#003f2d 48%,#075a42 100%);
  opacity:1;
  visibility:visible;
  transition:opacity .62s ease,visibility .62s ease,transform .62s cubic-bezier(.22,1,.36,1);
}
.v8-site .intro::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  opacity:.34;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px);
  background-size:72px 72px;
  mask-image:linear-gradient(to bottom,transparent,black 28%,black 72%,transparent);
}
.v8-site .intro::after{
  content:"";
  position:absolute;
  z-index:-1;
  width:min(820px,82vw);
  aspect-ratio:1;
  border-radius:50%;
  background:radial-gradient(circle,rgba(239,168,18,.075),transparent 67%);
  box-shadow:inset 0 0 0 1px rgba(239,168,18,.08),0 0 120px rgba(0,22,16,.28);
  animation:introAura 4.8s ease-in-out infinite;
}
.v8-site .intro.hide{opacity:0;visibility:hidden;transform:scale(1.012);pointer-events:none}
.v8-site .intro[hidden]{display:none!important}
.v8-site .intro.hide .intro-inner{opacity:0;transform:translateY(-8px) scale(.99)}
.v8-site .intro-inner{
  position:relative;
  z-index:2;
  width:min(820px,100%);
  display:grid;
  justify-items:center;
  gap:0;
  text-align:center;
  animation:none;
  transition:opacity .42s ease,transform .56s ease;
}
.v8-site .intro-brand{display:grid;justify-items:center;gap:6px}
.v8-site .intro-logo-frame{
  position:relative;
  display:grid;
  place-items:center;
  width:clamp(174px,16vw,224px);
  min-height:124px;
  animation:introMark .74s cubic-bezier(.22,1,.36,1) .08s both;
}
.v8-site .intro-logo-halo{
  position:absolute;
  width:128px;
  height:128px;
  border-radius:50%;
  border:1px solid rgba(255,200,61,.22);
  box-shadow:0 0 0 18px rgba(255,200,61,.025),0 0 68px rgba(239,168,18,.13);
  animation:introHalo 2.7s ease-out .35s both;
}
.v8-site .intro-logo{
  position:relative;
  z-index:1;
  width:100%;
  max-height:138px;
  object-fit:contain;
  filter:drop-shadow(0 16px 28px rgba(0,0,0,.3));
  animation:none;
}
.v8-site .intro-welcome{
  color:#f6c13c;
  font-size:clamp(.78rem,1.25vw,.96rem);
  font-weight:800;
  letter-spacing:.015em;
  opacity:0;
  animation:introLift .52s ease .52s forwards;
}
.v8-site .intro-title{
  margin:12px 0 0;
  font-size:clamp(2.35rem,4.35vw,4rem);
  line-height:1.2;
  letter-spacing:-.045em;
  text-wrap:balance;
}
.v8-site .intro-title span,.v8-site .intro-title strong{display:block;opacity:0;animation:introLift .64s cubic-bezier(.22,1,.36,1) forwards}
.v8-site .intro-title span{font-weight:560;animation-delay:.72s}
.v8-site .intro-title strong{color:#ffc83d;font-weight:850;animation-delay:.94s}
.v8-site .intro-copy{
  max-width:640px;
  margin:9px 0 0;
  color:#dcece5;
  font-size:clamp(.92rem,1.55vw,1.16rem);
  line-height:1.8;
  opacity:0;
  animation:introLift .55s ease 1.13s forwards;
}
.v8-site .intro-journey{
  position:relative;
  width:min(540px,100%);
  display:grid;
  grid-template-columns:repeat(4,1fr);
  margin-top:22px;
}
.v8-site .intro-journey::before{
  content:"";
  position:absolute;
  top:24px;
  right:12.5%;
  left:12.5%;
  height:1px;
  background:linear-gradient(90deg,rgba(255,200,61,.18),#ffc83d,rgba(255,200,61,.18));
  transform:scaleX(0);
  animation:introLine 1.4s cubic-bezier(.22,1,.36,1) 1.34s forwards;
}
.v8-site .intro-stage{
  position:relative;
  z-index:1;
  display:grid;
  justify-items:center;
  gap:7px;
  color:#dcece5;
  opacity:0;
  transform:translateY(12px);
  animation:introStage .5s ease calc(1.34s + var(--stage)*.26s) forwards;
}
.v8-site .intro-stage i{
  width:49px;
  height:49px;
  display:grid;
  place-items:center;
  border-radius:50%;
  color:#ffc83d;
  background:#064b37;
  border:1px solid rgba(255,200,61,.44);
  box-shadow:0 9px 24px rgba(0,24,17,.28);
}
.v8-site .intro-stage svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.v8-site .intro-stage b{font-size:.77rem;font-weight:750}
.v8-site .intro-progress{width:min(430px,86%);margin-top:21px;opacity:0;animation:introLift .45s ease 1.5s forwards}
.v8-site .intro-progress>span{display:block;margin-bottom:8px;color:rgba(255,255,255,.66);font-size:.7rem;font-weight:700}
.v8-site .intro-loader{width:100%;height:3px;margin:0;background:rgba(255,255,255,.12);border-radius:999px;overflow:hidden}
.v8-site .intro-loader span{display:block;width:100%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#d99200,#ffc83d,#fff0ad);transform:scaleX(0);transform-origin:right;animation:introLoad var(--intro-duration) linear .15s forwards}
.v8-site .intro-skip{
  position:absolute;
  top:max(22px,env(safe-area-inset-top));
  inset-inline-end:clamp(18px,3vw,42px);
  z-index:4;
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:8px 15px 8px 13px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:999px;
  background:rgba(0,40,29,.34);
  color:#fff;
  font-size:.82rem;
  font-weight:750;
  backdrop-filter:blur(12px);
  transition:background .2s ease,border-color .2s ease,transform .2s ease;
}
.v8-site .intro-skip:hover{background:rgba(255,255,255,.12);border-color:rgba(255,200,61,.68);transform:translateY(-2px)}
.v8-site .intro-skip svg{width:18px;height:18px;fill:none;stroke:#ffc83d;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html[dir="ltr"] .v8-site .intro-skip svg{transform:scaleX(-1)}
.v8-site .intro-orbit{position:absolute;border:1px solid rgba(255,200,61,.13);border-radius:50%;pointer-events:none;animation:introOrbit 22s linear infinite}
.v8-site .orbit-a{width:620px;height:620px;right:-210px;top:-245px}
.v8-site .orbit-b{width:470px;height:470px;left:-165px;bottom:-210px;animation-direction:reverse}
.v8-site .orbit-c{width:170px;height:170px;right:9%;bottom:10%;border-color:rgba(255,255,255,.055);animation-duration:15s}

@keyframes introMark{from{opacity:0;transform:translateY(15px) scale(.93)}to{opacity:1;transform:none}}
@keyframes introLift{from{opacity:0;transform:translateY(13px)}to{opacity:1;transform:none}}
@keyframes introStage{to{opacity:1;transform:none}}
@keyframes introLine{to{transform:scaleX(1)}}
@keyframes introLoad{to{transform:scaleX(1)}}
@keyframes introHalo{0%{opacity:0;transform:scale(.72)}45%{opacity:1}100%{opacity:.48;transform:scale(1.34)}}
@keyframes introAura{50%{transform:scale(1.035);opacity:.72}}
@keyframes introOrbit{to{transform:rotate(360deg)}}

@media(max-width:680px){
  .v8-site .intro{padding:76px 18px max(34px,env(safe-area-inset-bottom));background:radial-gradient(circle at 50% 31%,rgba(20,124,87,.36),transparent 33%),linear-gradient(154deg,#00291e,#00432f 60%,#07533e)}
  .v8-site .intro::before{background-size:52px 52px}
  .v8-site .intro-inner{width:100%}
  .v8-site .intro-logo-frame{width:156px;min-height:107px}
  .v8-site .intro-logo-halo{width:102px;height:102px}
  .v8-site .intro-title{margin-top:11px;font-size:clamp(2rem,9.3vw,2.62rem);line-height:1.25}
  .v8-site .intro-copy{max-width:330px;margin-top:8px;font-size:.84rem;line-height:1.7}
  .v8-site .intro-journey{margin-top:22px}
  .v8-site .intro-journey::before{top:20px;right:13%;left:13%}
  .v8-site .intro-stage{gap:6px}
  .v8-site .intro-stage i{width:41px;height:41px}
  .v8-site .intro-stage svg{width:18px;height:18px}
  .v8-site .intro-stage b{font-size:.66rem}
  .v8-site .intro-progress{margin-top:20px;width:82%}
  .v8-site .intro-skip{top:max(17px,env(safe-area-inset-top));min-height:40px;padding:6px 13px 6px 11px;font-size:.75rem}
  .v8-site .orbit-a{width:420px;height:420px;right:-240px;top:-145px}
  .v8-site .orbit-b{width:340px;height:340px;left:-220px;bottom:-150px}
  .v8-site .orbit-c{display:none}
}

@media(max-height:700px){
  .v8-site .intro{padding-top:60px;padding-bottom:24px}
  .v8-site .intro-logo-frame{width:142px;min-height:92px}
  .v8-site .intro-logo-halo{width:88px;height:88px}
  .v8-site .intro-title{font-size:clamp(1.9rem,7vh,2.85rem);margin-top:5px}
  .v8-site .intro-copy{margin-top:4px}
  .v8-site .intro-journey{margin-top:13px}
  .v8-site .intro-progress{margin-top:12px}
}

.v8-site .button{
  letter-spacing:-.015em;
  box-shadow:none;
}
.v8-site .button-gold{box-shadow:0 12px 28px rgba(239,168,18,.2)}
.v8-site .button-green{box-shadow:0 12px 28px rgba(0,63,45,.16)}

/* Quieter, more deliberate header proportions */
.v8-site .site-header{box-shadow:0 5px 24px rgba(0,47,34,.035)}
.v8-site .main-nav{height:88px}
.v8-site .nav-links a{position:relative}
.v8-site .nav-links a:hover{color:var(--v8-green-light)}
.v8-site .nav-cta{min-width:148px}

/* First viewport: keep the founder and the value proposition equally strong */
.v8-site .v5-hero:before{
  width:60.25%;
  background:
    radial-gradient(circle at 23% 18%,rgba(18,126,91,.20),transparent 32%),
    linear-gradient(142deg,transparent 0 53%,rgba(255,255,255,.034) 53% 54.4%,transparent 54.4%),
    linear-gradient(135deg,#003a29,#004d37 70%,#096047);
  clip-path:polygon(0 0,100% 0,95% 32%,89% 65%,81% 100%,0 100%);
}
.v8-site .v5-hero-grid{grid-template-columns:56.5% 43.5%}
.v8-site .v5-hero-copy{padding:65px 52px 188px 42px}
.v8-site .v5-hero-copy h1{
  max-width:650px;
  font-size:clamp(2.85rem,3.7vw,3.62rem);
  line-height:1.24;
  letter-spacing:-.042em;
}
.v8-site .v5-hero-copy h1 .v5-line3{font-size:.7em}
.v8-site .v5-hero-copy>p{max-width:610px;margin-top:19px;margin-bottom:23px}
.v8-site .v5-hero-actions .button{min-width:190px}
.v8-site .v5-founder-image{width:92%;margin-inline:auto}
.v8-site .v5-founder-label{
  top:202px;
  right:20px;
  min-width:220px;
  background:rgba(255,255,255,.84);
}
.v8-site .v5-hero:after{
  left:41.2%;
  bottom:130px;
  border-width:2px;
  filter:drop-shadow(0 0 8px rgba(239,168,18,.12));
}

/* Assessment: stronger spacing and a calmer form hierarchy */
.v8-site .v5-quick-card{
  grid-template-columns:285px minmax(0,1fr);
  padding:33px 38px 35px;
  border-color:rgba(0,63,45,.085);
  box-shadow:0 21px 58px rgba(0,49,35,.145);
}
.v8-site .v5-quick-intro h2{font-size:1.78rem}
.v8-site .v5-progress{font-weight:670}
.v8-site .v5-progress span{gap:9px}
.v8-site .v5-quick-fields select{border-color:#d8e2dd}
.v8-site .v5-quick-fields select:hover{border-color:#9fb8ab}

/* Shared section polish */
.v8-site .v5-section-heading h2{letter-spacing:-.035em}
.v8-site .v5-section-heading h2:after{box-shadow:0 0 0 4px rgba(239,168,18,.055)}
.v8-site .v5-service-path article>div{transition:transform .25s ease,border-color .25s ease,color .25s ease}
.v8-site .v5-service-path article:hover>div{transform:translateY(-5px);border-color:var(--v8-gold);color:var(--v8-green-light)}

/* Founder signature band — full-width editorial treatment on desktop */
@media(min-width:901px){
  .v8-site .v5-founder-band{
    padding:0;
    background:linear-gradient(105deg,var(--v8-green-deep) 0%,#00513a 57.8%,var(--v8-beige) 57.8%,#fbf8f3 100%);
    color:#fff;
    overflow:hidden;
  }
  .v8-site .v5-founder-band .v5-founder-band-grid{
    width:100%;
    max-width:none;
    min-height:520px;
    grid-template-columns:58% 42%;
    border:0;
    border-radius:0;
    box-shadow:none;
    background:transparent;
  }
  .v8-site .v5-founder-band-copy{
    max-width:850px;
    padding:68px 76px 62px max(48px,calc((100vw - 1370px)/2));
    color:#fff;
  }
  .v8-site .v5-founder-band-copy h2{color:#fff;font-size:clamp(2rem,3vw,3rem)}
  .v8-site .v5-founder-band-copy h3{color:var(--v8-gold-light);font-size:1.12rem}
  .v8-site .v5-founder-band-copy>p{max-width:650px;color:#dcece5}
  .v8-site .v5-founder-band-copy ul{grid-template-columns:1fr;max-width:660px;gap:15px}
  .v8-site .v5-founder-band-copy li{padding-bottom:10px;border-bottom:1px solid rgba(255,255,255,.09)}
  .v8-site .v5-founder-band-copy li:last-child{border-bottom:0}
  .v8-site .v5-founder-band-copy li b{color:#fff;font-size:.82rem}
  .v8-site .v5-founder-band-copy li span{color:#dcece5;font-size:.78rem}
  .v8-site .v5-founder-band-media{height:520px;background:var(--v8-beige)}
  .v8-site .v5-founder-band-media img{width:100%;height:100%;object-fit:cover;object-position:center 25%}
}

/* University and student-path sections */
.v8-site .v5-university-card{transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.v8-site .v5-university-card:hover{transform:translateY(-6px);box-shadow:0 18px 38px rgba(0,63,45,.105);border-color:#c8d9d0}
.v8-site .v5-university-card .button{min-height:42px}
.v8-site .v8-journey-icon{
  width:42px;
  height:42px;
  margin:0 auto 9px;
  display:grid;
  place-items:center;
  color:var(--v8-green);
}
.v8-site .v8-journey-icon .ui-icon{width:31px;height:31px;stroke-width:1.55}
.v8-site .v5-journey-line article>b{margin-bottom:9px}
.v8-site .v5-audience-grid article{transition:background .25s ease}
.v8-site .v5-audience-grid article:hover{background:#f8fbf9}
.v8-site .v7-audience-student .v7-audience-person{filter:drop-shadow(0 16px 22px rgba(0,45,32,.15))}

/* Portal, video and FAQ receive one consistent product language */
.v8-site .v5-portal-panel{border:1px solid rgba(0,63,45,.11)}
.v8-site .v5-portal-metrics>div{border:1px solid #e3eae6;background:#fbfdfc}
.v8-site .v5-video-frame{box-shadow:0 20px 50px rgba(0,0,0,.2)}
.v8-site .faq-question:hover{color:var(--v8-green-light);background:#fafcfb}
.v8-site .v5-cta{position:relative;overflow:hidden}
.v8-site .v5-cta:before{
  content:"";
  position:absolute;
  width:190px;
  height:190px;
  left:-75px;
  top:-105px;
  border:1px solid rgba(239,168,18,.42);
  border-radius:50%;
}
.v8-site .v5-cta>.container{position:relative;z-index:1}

@media(max-width:1180px) and (min-width:761px){
  .v8-site .v5-hero-grid{grid-template-columns:55% 45%}
  .v8-site .v5-hero-copy h1{font-size:clamp(2.45rem,4.2vw,3.25rem)}
  .v8-site .v5-founder-image{width:100%}
  .v8-site .v5-quick-card{grid-template-columns:1fr}
  .v8-site .v5-quick-intro{text-align:center}
}

@media(max-width:760px){
  .v8-site .v8-service-desktop,
  .v8-site .v8-founder-desktop-copy{display:none}
  .v8-site .v8-service-mobile,
  .v8-site .v8-founder-mobile-copy{display:inline}

  .v8-site .main-nav{padding-inline:20px}
  .v8-site .brand-v7{transform:translateX(10px)}

  .v8-site .v5-hero:before{width:62.5%;clip-path:polygon(0 0,100% 0,93% 100%,0 100%)}
  .v8-site .v5-hero-grid{grid-template-columns:59% 41%}
  .v8-site .v5-hero-copy h1{
    padding:32px 12px 0 15px;
    font-size:clamp(1.62rem,7.25vw,2.04rem);
    line-height:1.28;
  }
  .v8-site .v5-hero-copy h1 .v5-line3{font-size:.64em}
  .v8-site .v5-hero-copy>p{padding-inline:14px;font-size:.67rem}
  .v8-site .v5-founder-image{width:100%;margin:0;object-position:center 25%}
  .v8-site .v5-hero-actions{padding-inline:23px}
  .v8-site .v5-hero-actions .button,
  .v8-site .v5-hero-actions .v5-text-action{min-width:0;width:100%}
  .v8-site .v5-hero-actions .button{font-size:.76rem}
  .v8-site .v5-quick{width:calc(100% - 30px)}
  .v8-site .v5-quick-card{grid-template-columns:1fr;padding-inline:14px}

  .v8-site .v5-services article h3{min-height:2.9em;display:grid;place-items:center}
  .v8-site .v5-service-path article>div{width:51px;height:51px}
  .v8-site .v5-service-path h3{font-size:.7rem}

  .v8-site .v5-founder-band-copy>p{font-size:.63rem;line-height:1.65}
  .v8-site .v5-founder-band-media img{object-fit:cover;object-position:center 22%}

  .v8-site .v5-universities{overflow:hidden}
  .v8-site .v5-universities>.container{overflow:hidden}
  .v8-site .v5-university-grid{overscroll-behavior-inline:contain}

  .v8-site .v5-journey-line article>b{margin-bottom:4px}
  .v8-site .v8-journey-icon{width:28px;height:28px;margin-bottom:3px}
  .v8-site .v8-journey-icon .ui-icon{width:22px;height:22px;stroke-width:1.5}
  .v8-site .v5-journey-line h3{font-size:.46rem;line-height:1.35}
  .v8-site .v5-journey>.container{padding-bottom:14px}

  .v8-site .v5-university-card:hover{transform:none;box-shadow:none}
  .v8-site .v5-audience-grid article:hover{background:#fff}
  .v8-site .v5-video-frame{box-shadow:none}
  .v8-site .v5-cta:before{width:90px;height:90px;left:-48px;top:-48px;border-color:rgba(0,63,45,.2)}
}

@media(max-width:390px){
  .v8-site .v5-hero-copy h1{font-size:clamp(1.53rem,7.15vw,1.85rem)}
  .v8-site .v5-hero-actions{padding-inline:19px}
  .v8-site .v5-services>.container{padding-inline:6px}
  .v8-site .v5-service-path article{padding-inline:3px}
  .v8-site .v5-service-path h3{font-size:.66rem}
}

@media(prefers-reduced-motion:no-preference){
  .v8-site .v5-hero-copy h1,
  .v8-site .v5-founder-media{animation:v8-arrive .7s cubic-bezier(.2,.75,.25,1) both}
  .v8-site .v5-founder-media{animation-delay:.08s}
  @keyframes v8-arrive{from{transform:translateY(14px)}to{transform:translateY(0)}}
}
