/* UEAD project story v114.
   Uses the public UEAD vocabulary: browse gutter, bx-eyebrow, tone/blue-wash/navy, public card radii. */
.app-project-story-body{--story-gutter:max(64px,calc((100% - 1560px)/2))}
.app-project-story-surface{min-height:100dvh}
.app-story-section{margin-left:var(--story-gutter);margin-right:var(--story-gutter)}
.app-story-main h1,.app-story-main h2,.app-story-main h3{color:var(--ink)}
.app-story-main p{margin-top:0;}

/* hero */
.app-story-hero{padding:90px var(--story-gutter) 105px;grid-template-columns:minmax(0,700px) minmax(380px,1fr);gap:clamp(70px,8vw,140px);
  background:radial-gradient(700px 520px at 92% 22%,rgba(22,79,240,.08),transparent 72%)
}
.app-story-hero h1{max-width:770px;margin:24px 0 0;font-size:clamp(60px,7vw,116px);line-height:.89;letter-spacing:-.062em;font-weight:760;}
.app-story-hero h1 em{font-style:normal;color:var(--blue);font-weight:760;}
.app-story-hero-lead{color:var(--ink-2);font-size:clamp(17px,1.25vw,20px)}
.app-story-founder,.app-story-final-sign{margin-top:32px;}
.app-story-founder>span,.app-story-final-sign>span{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--ink);color:var(--color-white);font-size:11px;font-weight:760;}
.app-story-founder p,.app-story-final-sign p{margin:0;}.app-story-founder strong,.app-story-founder small,.app-story-final-sign strong,.app-story-final-sign small{display:block;}
.app-story-founder strong,.app-story-final-sign strong{font-size:13px;}.app-story-founder small,.app-story-final-sign small{margin-top:2px;color:var(--muted);font-size:10px;}

/* raw photo stack — no frame/card around photos */
.app-story-photo-module{width:min(36vw,520px);}
.app-story-photo-top{color:var(--muted)}
.app-story-photo-top b{color:var(--ink);font-size:10px;}
.app-story-photo-stack{touch-action:pan-y}
.app-story-photo{--d:0;inset:10px 0 auto auto;background:var(--tone);box-shadow:0 28px 70px rgba(15,23,46,.17);transform:translate(calc(var(--d) * -14px),calc(var(--d) * 10px)) rotate(calc((var(--d) - 1)*1.5deg));transform-origin:50% 90%;opacity:calc(1 - var(--d)*.14);z-index:calc(10 - var(--d));transition:transform .45s var(--ease),opacity .35s ease}
.app-story-photo:nth-child(2n){transform:translate(calc(var(--d) * -14px),calc(var(--d) * 10px)) rotate(calc((var(--d) - 1)*-1.7deg))}
.app-story-photo img{width:100%;height:100%;display:block;object-fit:cover;}
.app-story-photo>span{display:none;position:absolute;inset:0;place-items:center;background:linear-gradient(145deg,#eef2f8,#dfe6f1);color:#b8c3d2;font-size:72px;font-weight:780;letter-spacing:-.06em;}
.app-story-photo.app-is-missing img{display:none;}.app-story-photo.app-is-missing>span{display:grid;}
.app-story-photo-meta strong,.app-story-photo-meta small{display:block;}.app-story-photo-meta strong{font-size:14px;}.app-story-photo-meta small{max-width:310px;margin-top:4px;color:var(--muted);font-size:10px;line-height:1.45;}
.app-story-photo-meta>div:last-child{display:flex;gap:6px;}
.app-story-photo-meta button{width:40px;height:40px;border:0;border-radius:50%;background:var(--tone);color:var(--ink);font:inherit;cursor:pointer;}.app-story-photo-meta button:hover{background:var(--tone-2)}

/* origin */
.app-story-origin{padding-top:clamp(95px,10vw,150px);grid-template-columns:minmax(0,.82fr) minmax(620px,1.18fr);gap:clamp(70px,8vw,140px)}
.app-story-copy-column h2,.app-story-section-head h2{margin:18px 0 0;font-size:clamp(44px,4.8vw,76px);line-height:.97;letter-spacing:-.052em;font-weight:730;}
.app-story-copy-column .app-story-lead{margin:26px 0 0;color:var(--ink-2);font-size:19px;line-height:1.65;}
.app-story-copy-column>p:last-child{margin:20px 0 0;color:var(--muted);font-size:15px;line-height:1.75;}
.app-story-signal-grid{grid-template-columns:1fr 1fr}
.app-story-signal-grid article{min-height:260px;padding:28px;border-radius:var(--r-tile);background:var(--tone);display:flex;flex-direction:column;}
.app-story-signal-grid article.app-is-blue{background:var(--blue-wash)}
.app-story-signal-grid small{color:var(--blue);font-size:9px;font-weight:760;letter-spacing:.13em;}
.app-story-signal-grid h3{margin:34px 0 0;font-size:clamp(28px,2.8vw,44px);line-height:.98;letter-spacing:-0.04em;}
.app-story-signal-grid p{margin:auto 0 0;padding-top:32px;color:var(--muted);font-size:12px;line-height:1.55;}

/* turning point = one Developers-like feature panel, not an editorial chapter */
.app-story-turn{padding-top:clamp(115px,12vw,180px)}
.app-story-turn-panel{background:var(--ink)}
.app-story-turn-panel .app-bx-eyebrow{color:rgba(var(--color-white-rgb),.50)}
.app-story-turn-copy{grid-template-columns:minmax(0,1.15fr) minmax(360px,.65fr);gap:clamp(60px,8vw,130px)}
.app-story-turn-copy h2{margin:20px 0 0;color:var(--color-white);font-size:clamp(44px,5.2vw,78px);line-height:.95;letter-spacing:-.055em;font-weight:720;}
.app-story-turn-copy>p:last-child{margin:0;color:rgba(var(--color-white-rgb),.62);font-size:14px;line-height:1.7;}
.app-story-metric-rail{grid-template-columns:repeat(4,1fr)}
.app-story-metric-rail div{padding:12px 22px 0 0;}
.app-story-metric-rail strong{display:block;color:var(--color-white);font-size:clamp(48px,5vw,78px);line-height:.82;letter-spacing:-.065em;}
.app-story-metric-rail span{display:block;max-width:155px;margin-top:12px;color:rgba(var(--color-white-rgb),.50);font-size:10px;line-height:1.45;}

/* problem -> UEAP matrix */
.app-story-bridge{padding-top:clamp(120px,12vw,180px)}.app-story-section-head>p:last-child{max-width:760px;margin:22px 0 0;color:var(--muted);font-size:15px;line-height:1.7;}
.app-story-bridge-grid{grid-template-columns:1fr 1fr}
.app-story-bridge-grid article{min-height:180px;padding:26px 28px;border-radius:24px;background:var(--tone);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;}
.app-story-bridge-grid article:nth-child(2),.app-story-bridge-grid article:nth-child(4){background:#e8edf9}
.app-story-bridge-grid article>span{color:var(--blue);font-size:28px;}
.app-story-bridge-grid small{display:block;color:var(--muted);font-size:8px;font-weight:760;letter-spacing:.14em;}
.app-story-bridge-grid strong{display:block;margin-top:9px;font-size:clamp(22px,2.2vw,34px);line-height:1;letter-spacing:-.035em;}
.app-story-bridge-grid div:last-child strong{color:var(--blue)}

/* personal */
.app-story-personal{margin-top:clamp(120px,12vw,180px);background:var(--blue-wash);grid-template-columns:minmax(0,1.1fr) minmax(360px,.7fr);gap:clamp(65px,8vw,130px)}
.app-story-personal-title h2{margin:20px 0 0;font-size:clamp(48px,5.8vw,86px);line-height:.92;letter-spacing:-.06em;font-weight:740;}
.app-story-personal-copy p{margin:0;color:var(--ink-2);font-size:15px;line-height:1.72;}.app-story-personal-copy p+p{margin-top:20px;}.app-story-personal-copy strong{color:var(--ink)}

/* finish */
.app-story-final{background:var(--navy)}
.app-story-final .app-bx-eyebrow{color: rgba(var(--color-white-rgb),.48)}
.app-story-final h2{max-width:1150px;margin:22px 0 0;color:var(--color-white);font-size:clamp(48px,5.8vw,88px);line-height:.93;letter-spacing:-.058em;font-weight:720;}
.app-story-final>p:not(.app-bx-eyebrow){max-width:760px;margin:28px 0 0;color:rgba(var(--color-white-rgb),.62);font-size:15px;line-height:1.7;}
.app-story-final-sign{margin-top:44px}
.app-story-final-sign>span{background:var(--color-white);color:var(--ink)}.app-story-final-sign strong{color:var(--color-white);}.app-story-final-sign small{color:rgba(var(--color-white-rgb),.50)}

@media(max-width:1100px){
  .app-project-story-body{--story-gutter:32px}
  .app-story-hero{grid-template-columns:1fr;}
  .app-story-photo-module{width:min(760px,100%);}
  .app-story-origin,.app-story-turn-copy,.app-story-personal{grid-template-columns:1fr}
  .app-story-origin{gap:48px;}.app-story-copy-column{max-width:800px;}
}
@media(max-width:760px){
  .app-project-story-body{--story-gutter:18px}
  .app-project-story-masthead .app-browse-main-nav,.app-project-story-masthead .app-browse-languages{display:none;}
  .app-story-hero{padding-top:76px;padding-bottom:70px;}
  .app-story-hero h1{font-size:clamp(56px,17vw,88px)}
  .app-story-origin{padding-top:80px;}.app-story-signal-grid,.app-story-bridge-grid{grid-template-columns:1fr}
  .app-story-turn{padding-top:95px;}
  .app-story-metric-rail{grid-template-columns:1fr 1fr;gap:28px 0;}
  .app-story-bridge{padding-top:95px;}.app-story-bridge-grid article{grid-template-columns:1fr auto 1fr;padding:22px;}
  .app-story-personal{margin-top:95px;gap:34px;}
}
@media(max-width:480px){
  .app-story-bridge-grid article{grid-template-columns:1fr}.app-story-bridge-grid article>span{transform:rotate(90deg)}
}
@media(prefers-reduced-motion:reduce){.app-story-photo{transition:none}}
