/* About: founder's opening, what the Institute stands for, closing hope.
   Every part plays by itself while on screen; reduced motion gets the finished state. */

/* ---------- 1. Where this started: portrait split ---------- */
.founder{background:#eee5d8}
main > .sec.founder{background:#eee5d8 !important}
.founder__photo{background:#2b2a1e}
.founder__photo img{object-position:50% 28%;transform-origin:50% 30%}
/* the portrait holds still: the opening inking in is this section's motion, and the trajectory follows right below */
@keyframes fd-drift{from{transform:scale(1)}to{transform:scale(1.07) translate(-1%,1%)}}
.founder .split-txt h2{font-size:clamp(30px,3vw,46px);letter-spacing:-.02em}
.founder__open{font:500 clamp(22px,2.1vw,32px)/1.38 var(--font-display);letter-spacing:-.01em;color:#172c3b;max-width:30ch !important}
.founder__open .w{transition:color .5s ease}
.js .founder__open .w:not(.k){color:rgba(17,17,17,.2)}
.founder__sig{display:flex;flex-direction:column;gap:2px;margin-top:32px !important;padding-top:18px;position:relative}
.founder__sig::before{content:"";position:absolute;left:0;top:0;width:56px;height:3px;background:var(--orange,#ce5b17);transform-origin:left;transition:transform .9s cubic-bezier(.23,1,.32,1) .2s}
.js .founder:not(.on) .founder__sig::before{transform:scaleX(0)}
.founder__sig b{font:700 20px/1.2 var(--font-display);color:#172c3b}
.founder__sig span{font-size:16px;color:rgba(23,44,59,.78)}

/* ---------- 2. What the Institute stands for ---------- */
.stands{background:var(--sand,#decebb);position:relative;overflow:hidden}
main > .sec.stands{background:var(--sand,#decebb) !important}
.stands__in{max-width:var(--wrap,1200px);margin:0 auto;padding:clamp(72px,9vw,128px) var(--margin,24px);
  display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.25fr);grid-template-areas:"copy fig" "name fig";column-gap:clamp(32px,5vw,80px);row-gap:40px;align-items:start}
.stands__copy{grid-area:copy}
.stands__copy h2{margin:0;font-size:clamp(30px,3vw,46px);letter-spacing:-.02em;color:#172c3b}
.stands__lead{margin-top:20px;font-size:clamp(18px,1.35vw,21px);line-height:1.6;color:#172c3b;max-width:52ch}
.stands__fig{grid-area:fig;align-self:center}
.trajectory{display:block;width:112%;max-width:none;margin-right:-6%;height:auto;overflow:visible}
.trajectory .tj-lat{fill:none;stroke:#6f8ea6;stroke-width:1.3;opacity:.55}
.stands__name{grid-area:name;list-style:none;margin:0;padding:0;display:grid;gap:12px}
.sn{position:relative;padding:18px 22px 20px;background:rgba(255,255,255,.42);border-radius:4px;cursor:default;
  font-size:clamp(17px,1.2vw,19px);line-height:1.5;color:#3a3f46;overflow:hidden;
  transition:background-color .45s ease,color .45s ease,transform .45s cubic-bezier(.23,1,.32,1),box-shadow .45s ease}
.sn b{display:block;margin-bottom:4px;font:700 clamp(24px,2vw,30px)/1.1 var(--font-display);color:var(--navy,#172c3b);letter-spacing:-.01em}
.sn--all{font:600 clamp(18px,1.4vw,21px)/1.45 var(--font-display)}
.sn i{position:absolute;left:0;bottom:0;height:3px;width:100%;background:var(--orange,#ce5b17);transform:scaleX(0);transform-origin:left}
.sn.is-on{background:#fff;color:#172c3b;transform:translateX(6px);box-shadow:0 10px 26px -14px rgba(23,44,59,.45)}
.sn.is-on i{transform:scaleX(1);transition:transform var(--sn-dur,3.6s) linear}
.no-js .sn,.sn.static{background:#fff;color:#172c3b}

/* trajectory figure */
.trajectory .tj-trail{fill:none;stroke:#172c3b;stroke-width:2;stroke-dasharray:2 8;stroke-linecap:round;opacity:.55}
.trajectory .tj-lit{fill:none;stroke:#ce5b17;stroke-width:3.5;stroke-linecap:round}
.trajectory .tj-orbit{fill:none;stroke:#172c3b;stroke-width:1.4;stroke-dasharray:3 5;opacity:.5}
.trajectory .tj-label{font:700 19px/1 var(--font-display);fill:#172c3b;letter-spacing:-.01em;transition:fill .4s ease}
.trajectory .tj-station.is-on .tj-label{fill:#172c3b}
.trajectory .tj-station .tj-ring{fill:none;stroke:#ce5b17;stroke-width:2;opacity:0;transform-box:fill-box;transform-origin:center;transform:scale(.6)}
.trajectory .tj-station.is-on .tj-ring{animation:tj-ping 1.6s cubic-bezier(.23,1,.32,1) infinite}
@keyframes tj-ping{0%{opacity:.9;transform:scale(.6)}100%{opacity:0;transform:scale(2.2)}}
.trajectory .tj-star{fill:#172c3b}
/* the trajectory's stars hold still so the craft is the one thing moving */
@keyframes tw{0%,100%{opacity:1}50%{opacity:.25}}
.trajectory .tj-goal .glow{transition:opacity .6s ease;opacity:.55}
.trajectory .tj-goal.is-on .glow{opacity:1}

/* ---------- 3. Closing: the hope, under a working sky ---------- */
.closing{position:relative;overflow:hidden;background:#172c3b;color:#fff;min-height:clamp(480px,72vh,720px);display:flex;align-items:center}
main > .sec.closing{background:#172c3b !important}
.closing__sky{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.closing__sky .st{fill:#eee5d8}
.closing__sky .st--y{fill:#e9a92b}
/* only a few stars twinkle, so the launch reads first */
.js .closing.on .closing__sky .st.tw{animation:tw var(--d,4s) ease-in-out var(--dl,0s) infinite}
.closing__sky .arc{fill:none;stroke:#e9a92b;stroke-width:2.5;stroke-linecap:round}
.closing__sky .arc-trail{fill:none;stroke:#eee5d8;stroke-width:1.5;stroke-dasharray:2 9;opacity:.35}
.closing__in{position:relative;z-index:1;width:100%;max-width:var(--wrap,1200px);margin:0 auto;padding:clamp(80px,10vw,140px) var(--margin,24px)}
.closing__in h2{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.closing__line{margin-top:0;max-width:24ch;font:600 clamp(30px,3.6vw,56px)/1.15 var(--font-display);letter-spacing:-.02em;color:#fff}
.closing__line + .closing__line{margin-top:28px;max-width:36ch;font-weight:500;font-size:clamp(20px,1.8vw,28px);line-height:1.45;color:rgba(255,255,255,.88)}
.closing__line{transition:opacity .9s ease,transform .9s cubic-bezier(.23,1,.32,1)}
.js .closing:not(.on) .closing__line{opacity:0;transform:translateY(18px)}
.js .closing .closing__line + .closing__line{transition-delay:.9s}

/* ---------- small screens ---------- */
@media (max-width:900px){
  .stands__in{grid-template-columns:1fr;grid-template-areas:"copy" "fig" "name";row-gap:28px}
  .stands__fig{max-width:560px}.trajectory{width:100%;margin:0}
  .sn.is-on{transform:none}
}
@media (max-width:767px){
  .founder__photo img{object-position:50% 22%}
  .founder > figure{aspect-ratio:4/4.4 !important}
}

@media (prefers-reduced-motion:reduce){
  .js .founder.on .founder__photo img,.js .stands.on .trajectory .tj-star,.js .closing.on .closing__sky .st,.trajectory .tj-station.is-on .tj-ring{animation:none}
  .js .founder__open .w:not(.k){color:inherit}
  .js .closing:not(.on) .closing__line{opacity:1;transform:none}
  .sn{transition:none}
}
@media (max-width:767px){.trajectory .tj-label{font-size:30px}}

/* education and LinkedIn under the signature (added 2026-11-23); rows ink in after the signature rule */
.founder__creds{list-style:none;margin:20px 0 0;padding:0;display:grid;gap:8px;max-width:52ch}
.founder__creds li{position:relative;padding-left:18px;font-size:16px;line-height:1.45;color:#374151;transition:opacity .6s ease,transform .6s cubic-bezier(.23,1,.32,1)}
.founder__creds li::before{content:"";position:absolute;left:0;top:.62em;width:8px;height:2px;background:var(--orange,#ce5b17)}
.founder__creds li:nth-child(1){transition-delay:.5s}.founder__creds li:nth-child(2){transition-delay:.65s}.founder__creds li:nth-child(3){transition-delay:.8s}
.js .founder:not(.on) .founder__creds li{opacity:0;transform:translateY(8px)}
.founder__li{margin-top:18px;display:inline-flex}
@media (prefers-reduced-motion:reduce){.founder__creds li{transition:none}.js .founder:not(.on) .founder__creds li{opacity:1;transform:none}}

/* portrait: natural colour, and smaller (owner: the photo felt too large) */
.founder.split-sec{grid-template-columns:minmax(0,.62fr) minmax(0,1fr);min-height:clamp(420px,56vh,580px)}
.founder__photo img{object-position:50% 30%}
@media (max-width:767px){
  .founder.split-sec{grid-template-columns:1fr}
  .founder > figure{aspect-ratio:auto !important;height:clamp(260px,72vw,340px);min-height:0}
  .founder__photo img{object-position:50% 25%}
}
.founder__photo img{object-position:50% 22%}
@media (max-width:767px){.founder__photo img{object-position:50% 20%}}
