/* The readable, static layout is the baseline. JS adds a scroll runway only. */
body.ps-page main.ps-main .ps-scroll-story{--ps-scroll-first:#152d4b;--ps-scroll-second:#194a4b;--ps-scroll-paper:var(--ps-scroll-first);--ps-scroll-ink:#f5f7fa;--ps-scroll-muted:#b8c9d9;--ps-scroll-line:#ffffff35;--ps-scroll-progress:0;--ps-scroll-local:0;position:relative;isolation:isolate;padding:0!important;margin:0;background:var(--ps-scroll-paper)!important;color:var(--ps-scroll-ink)!important;transition:background-color .65s ease,color .65s ease}
body.ps-page[data-ps-family=ai] main.ps-main .ps-scroll-story{--ps-scroll-first:#18243d;--ps-scroll-second:#332c57}
body.ps-page[data-ps-family=data] main.ps-main .ps-scroll-story{--ps-scroll-first:#123c36;--ps-scroll-second:#164f53}
body.ps-page[data-ps-family=course] main.ps-main .ps-scroll-story{--ps-scroll-first:#18283f;--ps-scroll-second:#432c49}
body.ps-page[data-ps-family=company] main.ps-main .ps-scroll-story,body.ps-page[data-ps-family=news] main.ps-main .ps-scroll-story{--ps-scroll-first:#2a3834;--ps-scroll-second:#28534b}
body.ps-page[data-ps-family=instructors] main.ps-main .ps-scroll-story{--ps-scroll-first:#2c3a31;--ps-scroll-second:#355441}
body.ps-page main.ps-main .ps-scroll-story[data-ps-scroll-active="1"]{--ps-scroll-paper:var(--ps-scroll-second)}
body.ps-page main.ps-main .ps-scroll-story[data-ps-scroll-active="2"]{--ps-scroll-paper:#f4eee3;--ps-scroll-ink:#183649;--ps-scroll-muted:#506574;--ps-scroll-line:#18364945}
body.ps-page .ps-scroll-sticky{width:min(1280px,calc(100% - 80px));margin-inline:auto;padding:64px 0}
body.ps-page .ps-scroll-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 34px;padding:0;background:none!important;border:0}
body.ps-page main.ps-main .ps-scroll-kicker{color:var(--ps-scroll-muted)!important;font-size:.62rem!important;font-weight:650;letter-spacing:.13em;line-height:1.7;margin:0 0 12px!important}
body.ps-page main.ps-main .ps-scroll-topic{color:var(--ps-scroll-ink)!important;font-size:clamp(1rem,1.55vw,1.35rem)!important;font-weight:600;line-height:1.6!important;letter-spacing:-.035em;margin:0!important;max-width:760px}
body.ps-page main.ps-main .ps-scroll-story--mission .ps-scroll-topic{font-size:clamp(1.8rem,3.4vw,3rem)!important;font-weight:700;line-height:1.35!important;letter-spacing:-.05em;max-width:1000px;word-break:keep-all;overflow-wrap:anywhere;text-wrap:balance}
body.ps-page .ps-scroll-toggle{background:transparent!important;color:var(--ps-scroll-ink)!important;border-color:var(--ps-scroll-line)!important;flex-shrink:0}
body.ps-page .ps-scroll-layout{display:grid;grid-template-columns:1.12fr 1fr;gap:clamp(35px,5vw,85px);align-items:center;position:relative;min-width:0}
body.ps-page .ps-scroll-statements{padding:0;margin:0;list-style:none;display:grid;gap:30px;min-width:0;position:relative;z-index:2}
body.ps-page .ps-scroll-step{display:grid;grid-template-columns:28px 1fr;align-items:baseline;gap:14px;margin:0;padding:0;border:0;background:none!important;min-width:0}
body.ps-page main.ps-main .ps-scroll-step h3{color:var(--ps-scroll-ink)!important;font-size:clamp(1.4rem,2.35vw,2.25rem)!important;font-weight:650;letter-spacing:-.055em;line-height:1.45!important;margin:0!important;word-break:keep-all;overflow-wrap:anywhere;text-wrap:balance}
body.ps-page main.ps-main .ps-scroll-number{color:var(--ps-scroll-muted)!important;font-size:.67rem!important;letter-spacing:.02em;font-weight:500}
body.ps-page .ps-scroll-media{display:grid;gap:14px;position:relative;min-width:0;overflow:hidden;border-radius:80px 8px 8px 8px}
body.ps-page .ps-scroll-picture{position:relative;overflow:hidden;margin:0;min-width:0;background:#152c42}
body.ps-page .ps-scroll-picture img{display:block;width:100%;height:165px;object-fit:cover;max-width:none;border:0;border-radius:0}
body.ps-page .ps-scroll-picture figcaption{position:absolute;inset:auto 17px 15px;display:flex;justify-content:space-between;gap:15px;padding:7px 9px;background:#142a40d9;color:#fff!important;font-size:.56rem;letter-spacing:.1em;line-height:1.5}
body.ps-page .ps-scroll-picture figcaption :is(span,b){color:#fff!important;font:inherit}
body.ps-page .ps-scroll-orbit{display:none;position:absolute;right:-24px;bottom:-26px;width:min(58%,280px);color:var(--ps-scroll-ink);pointer-events:none;transform:rotate(-90deg);z-index:2}
body.ps-page .ps-scroll-orbit-value{stroke-dashoffset:calc(1 - var(--ps-scroll-progress))}
body.ps-page .ps-scroll-bottom{display:flex;align-items:center;gap:25px;margin-top:35px;color:var(--ps-scroll-muted)!important;font-size:.62rem;letter-spacing:.03em;line-height:1.6}
body.ps-page .ps-scroll-bottom>b{min-width:49px;font-size:.66rem;color:var(--ps-scroll-ink)!important;font-weight:550}
body.ps-page .ps-scroll-track{height:2px;background:var(--ps-scroll-line);flex:1;overflow:hidden}
body.ps-page .ps-scroll-track>i{display:block;width:100%;height:100%;transform:scaleX(var(--ps-scroll-progress));transform-origin:left;background:var(--ps-scroll-ink)}
/* One pinned canvas: text fills, photographs change and the whole palette turns. */
body.ps-page .ps-scroll-story.is-scroll-enhanced:not(.ps-scroll-story--compact){height:260svh;--ps-scroll-top:calc(var(--site-header-height,76px) + 58px)}
body.ps-page .is-scroll-enhanced .ps-scroll-sticky{position:sticky;top:var(--ps-scroll-top);height:calc(100svh - var(--ps-scroll-top) - 18px);display:flex;flex-direction:column;padding-block:26px;box-sizing:border-box}
body.ps-page .is-scroll-enhanced .ps-scroll-intro{margin-bottom:25px;flex-shrink:0}
body.ps-page .is-scroll-enhanced .ps-scroll-layout{flex:1;min-height:0;align-items:stretch}
body.ps-page .is-scroll-enhanced .ps-scroll-statements{align-self:center;gap:23px}
body.ps-page .is-scroll-enhanced .ps-scroll-step{transition:opacity .5s ease,translate .6s ease;opacity:.8}
body.ps-page main.ps-main .is-scroll-enhanced .ps-scroll-step:not(.is-active) h3{font-size:clamp(.95rem,1.4vw,1.25rem)!important;font-weight:500;line-height:1.6!important;color:var(--ps-scroll-muted)!important}
body.ps-page .is-scroll-enhanced .ps-scroll-step.is-active{opacity:1;translate:0 calc((.5 - var(--ps-scroll-local))*6px)}
body.ps-page main.ps-main .is-scroll-enhanced .ps-scroll-step.is-active h3{font-size:clamp(2rem,4.1vw,4rem)!important;line-height:1.22!important;letter-spacing:-.065em}
body.ps-page .is-scroll-enhanced .ps-scroll-step.is-active [data-ps-scroll-word]{background-image:linear-gradient(90deg,var(--ps-scroll-ink) calc(var(--ps-word-progress,0)*100%),var(--ps-scroll-muted) 0);background-clip:text;-webkit-background-clip:text;color:transparent!important}
body.ps-page .is-scroll-enhanced .ps-scroll-media{min-height:0;height:100%;display:block;border-radius:115px 7px 7px 7px}
body.ps-page .is-scroll-enhanced .ps-scroll-picture{position:absolute;inset:0;opacity:0;clip-path:inset(0 0 0 18%);translate:7% 0;transition:opacity .65s ease,clip-path .8s cubic-bezier(.2,.7,.2,1),translate .8s cubic-bezier(.2,.7,.2,1);pointer-events:none}
body.ps-page .is-scroll-enhanced .ps-scroll-picture.is-active{opacity:1;clip-path:inset(0);translate:0 0;z-index:1}
body.ps-page .is-scroll-enhanced .ps-scroll-picture img{height:100%;min-height:0;transform:scale(calc(1.04 + var(--ps-scroll-local)*.06)) translateY(calc((.5 - var(--ps-scroll-local))*12px));transform-origin:center}
body.ps-page .is-scroll-enhanced .ps-scroll-orbit{display:block}
body.ps-page .is-scroll-enhanced .ps-scroll-bottom{margin-top:24px;flex-shrink:0}
/* Inquiry pages retain a short, unpinned scene and the original form flow. */
body.ps-page .ps-scroll-story--compact .ps-scroll-sticky{padding-block:32px}
body.ps-page .ps-scroll-story--compact .ps-scroll-layout{grid-template-columns:1.3fr .7fr;gap:35px}
body.ps-page .ps-scroll-story--compact .ps-scroll-picture img{height:100px}
body.ps-page .ps-scroll-story--compact.is-scroll-enhanced .ps-scroll-sticky{position:relative;top:auto;height:auto;min-height:365px}
body.ps-page .ps-scroll-story--compact.is-scroll-enhanced .ps-scroll-layout{min-height:190px}
body.ps-page main.ps-main .ps-scroll-story--compact.is-scroll-enhanced .ps-scroll-step.is-active h3{font-size:clamp(1.7rem,3vw,2.7rem)!important}
body.ps-page .ps-scroll-story--compact.is-scroll-enhanced .ps-scroll-picture img{height:100%}
body.ps-page.ps-motion-paused .ps-scroll-story :is(.ps-scroll-step,.ps-scroll-picture,.ps-scroll-picture img){transform:none!important;translate:none!important;clip-path:none!important;transition:none!important}
body.ps-page .ps-scroll-story :focus-visible{outline-color:var(--ps-scroll-ink)!important;outline-offset:5px}
@media(max-width:760px){
  body.ps-page main.ps-main .ps-scroll-story--mission .ps-scroll-topic{font-size:clamp(1.55rem,6.6vw,2.1rem)!important;line-height:1.45!important}
  body.ps-page .ps-scroll-sticky{width:calc(100% - 40px);padding-block:45px}
  body.ps-page .ps-scroll-layout{grid-template-columns:1fr;gap:30px}
  body.ps-page .ps-scroll-media{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border-radius:35px 5px 5px 5px}
  body.ps-page .ps-scroll-picture img{height:160px}
  body.ps-page .ps-scroll-picture figcaption{display:none}
  body.ps-page .ps-scroll-bottom{gap:12px;font-size:.57rem}
  body.ps-page .ps-scroll-bottom>span{max-width:100px}
  body.ps-page .ps-scroll-intro{gap:16px}
  body.ps-page .ps-scroll-toggle{width:34px;height:34px;padding:0;font-size:0}
  body.ps-page .ps-scroll-toggle::before{content:'Ⅱ';font-size:12px}
  body.ps-page .ps-scroll-toggle[aria-pressed=true]::before{content:'▶'}
  body.ps-page .ps-scroll-story.is-scroll-enhanced:not(.ps-scroll-story--compact){height:240svh;--ps-scroll-top:calc(var(--site-header-height,66px) + 54px)}
  body.ps-page .is-scroll-enhanced .ps-scroll-sticky{padding-block:24px}
  body.ps-page .is-scroll-enhanced .ps-scroll-layout{display:grid;grid-template-columns:1fr}
  body.ps-page .is-scroll-enhanced .ps-scroll-media{position:absolute;inset:0 -20px 0 28%;height:100%;opacity:.22;border-radius:70px 0 0 7px;pointer-events:none}
  body.ps-page .is-scroll-enhanced .ps-scroll-statements{gap:22px;max-width:100%;padding-right:5px}
  body.ps-page main.ps-main .is-scroll-enhanced .ps-scroll-step.is-active h3{font-size:clamp(2rem,8.8vw,3rem)!important}
  body.ps-page main.ps-main .is-scroll-enhanced .ps-scroll-step:not(.is-active) h3{font-size:.88rem!important}
  body.ps-page .is-scroll-enhanced .ps-scroll-step{grid-template-columns:24px 1fr;gap:10px}
  body.ps-page .is-scroll-enhanced .ps-scroll-orbit{display:none}
  body.ps-page .ps-scroll-story--compact .ps-scroll-layout{grid-template-columns:1fr}
  body.ps-page .ps-scroll-story--compact.is-scroll-enhanced .ps-scroll-sticky{min-height:340px}
  body.ps-page .ps-scroll-story--compact.is-scroll-enhanced .ps-scroll-layout{min-height:155px}
  body.ps-page main.ps-main .ps-scroll-story--compact.is-scroll-enhanced .ps-scroll-step.is-active h3{font-size:clamp(1.7rem,7.4vw,2.3rem)!important}
}
@media(max-height:620px){
  body.ps-page main.ps-main .ps-scroll-story--mission .ps-scroll-topic{font-size:clamp(1.3rem,2.6vw,1.8rem)!important}
  body.ps-page .ps-scroll-story.is-scroll-enhanced:not(.ps-scroll-story--compact){height:220svh;--ps-scroll-top:calc(var(--site-header-height,66px) + 45px)}
  body.ps-page .is-scroll-enhanced .ps-scroll-sticky{padding-block:12px}
  body.ps-page .is-scroll-enhanced .ps-scroll-intro{margin-bottom:12px}
  body.ps-page .is-scroll-enhanced .ps-scroll-kicker{display:none}
  body.ps-page .is-scroll-enhanced .ps-scroll-statements{gap:12px}
  body.ps-page main.ps-main .is-scroll-enhanced .ps-scroll-step.is-active h3{font-size:clamp(1.5rem,4.3vw,2.5rem)!important}
  body.ps-page .is-scroll-enhanced .ps-scroll-bottom{margin-top:12px}
}
@media(prefers-reduced-motion:reduce){
  body.ps-page .ps-scroll-story,body.ps-page .ps-scroll-story *{transition:none!important;animation:none!important}
  body.ps-page .ps-scroll-story.is-scroll-enhanced{height:auto!important}
  body.ps-page .is-scroll-enhanced .ps-scroll-sticky{position:relative;top:auto;height:auto}
}
@media(forced-colors:active){body.ps-page main.ps-main .ps-scroll-story{background:Canvas!important;color:CanvasText!important;--ps-scroll-ink:CanvasText;--ps-scroll-muted:CanvasText;--ps-scroll-line:CanvasText}body.ps-page .is-scroll-enhanced .ps-scroll-step.is-active [data-ps-scroll-word]{color:CanvasText!important;background:none}}
@media print{body.ps-page .ps-scroll-story{display:none!important}}

/* Detail pages show each photo at full contrast beside its step. */
body.ps-page .ps-scroll-story--detail .ps-scroll-media {
  border-radius: 22px;
}
body.ps-page .ps-scroll-story--detail.is-scroll-enhanced:not(.ps-scroll-story--compact) {
  height: max(165svh, calc(100svh + 360px));
}
body.ps-page .ps-scroll-story--detail .ps-scroll-picture figcaption {
  border-radius: 6px;
}

@media (max-width: 760px), (max-height: 620px) {
  body.ps-page .ps-scroll-story--detail .ps-scroll-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 18px 28px;
  }
  body.ps-page .ps-scroll-story--detail :is(.ps-scroll-statements, .ps-scroll-media) {
    display: contents;
  }
  body.ps-page .ps-scroll-story--detail :is(.ps-scroll-step, .ps-scroll-picture):nth-child(1) {
    grid-row: 1;
  }
  body.ps-page .ps-scroll-story--detail :is(.ps-scroll-step, .ps-scroll-picture):nth-child(2) {
    grid-row: 2;
  }
  body.ps-page .ps-scroll-story--detail :is(.ps-scroll-step, .ps-scroll-picture):nth-child(3) {
    grid-row: 3;
  }
  body.ps-page .ps-scroll-story--detail .ps-scroll-step {
    grid-column: 1;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
  }
  body.ps-page .ps-scroll-story--detail .ps-scroll-picture {
    grid-column: 2;
    border-radius: 16px;
    aspect-ratio: 16 / 9;
  }
  body.ps-page .ps-scroll-story--detail .ps-scroll-picture img {
    height: 100%;
  }
  body.ps-page .ps-scroll-story--detail :is(.ps-scroll-bottom, .ps-scroll-toggle) {
    display: none;
  }
}

@media (max-width: 760px) {
  body.ps-page .ps-scroll-story--detail .ps-scroll-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  body.ps-page .ps-scroll-story--detail .ps-scroll-picture {
    grid-column: 1;
  }
  body.ps-page .ps-scroll-story--detail .ps-scroll-step:nth-child(2) {
    grid-row: 3;
    margin-top: 10px;
  }
  body.ps-page .ps-scroll-story--detail .ps-scroll-step:nth-child(3) {
    grid-row: 5;
    margin-top: 10px;
  }
  body.ps-page .ps-scroll-story--detail .ps-scroll-picture:nth-child(1) {
    grid-row: 2;
  }
  body.ps-page .ps-scroll-story--detail .ps-scroll-picture:nth-child(2) {
    grid-row: 4;
  }
  body.ps-page .ps-scroll-story--detail .ps-scroll-picture:nth-child(3) {
    grid-row: 6;
  }
  body.ps-page main.ps-main .ps-scroll-story--detail .ps-scroll-step h3 {
    font-size: clamp(1.15rem, 5.1vw, 1.65rem) !important;
    line-height: 1.4 !important;
  }
}

@supports (animation-timeline: view()) and (animation-range: entry) {
  @media (prefers-reduced-motion: no-preference) and (max-width: 760px) {
    body.ps-page:not(.ps-motion-paused) .ps-scroll-story--detail .ps-scroll-picture img {
      animation: ps-detail-photo-enter auto ease-out both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }
  }
}

@keyframes ps-detail-photo-enter {
  from { opacity: .76; scale: 1.035; }
  to { opacity: 1; scale: 1; }
}
