/* CREAPE: portrait and milestones. Independent of the existing page styles. */
.profile-trigger{display:inline-flex;align-items:center;gap:12px;text-align:left;color:#f5f4f0;background:none;border:0;border-radius:0;padding:12px 0;margin-top:18px;max-width:100%;font-size:16px;line-height:1.5;transition:color .2s}
.profile-trigger span{color:#E84A00;font-size:22px;line-height:1;transition:transform .2s}.profile-trigger:hover{color:#E84A00}.profile-trigger:hover span{transform:translate(2px,-2px)}.profile-trigger:focus-visible{outline:2px solid #E84A00;outline-offset:5px}
.profile-dialog{position:fixed;inset:0;width:100%;height:100svh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#080808;color:#f5f4f0;overflow:hidden;scrollbar-width:none;overscroll-behavior:contain;font-family:Arial,Helvetica,sans-serif}
.profile-dialog::-webkit-scrollbar{display:none}.profile-dialog::backdrop{background:#000d}.profile-dialog[open]{display:flex;flex-direction:column;animation:profile-enter .3s ease both}
.profile-bar{flex:none;position:relative;z-index:4;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px clamp(24px,5vw,80px);background:transparent;backdrop-filter:none}
.profile-back{background:none;border:0;color:#fff;padding:8px 0;font-size:14px}.profile-back:hover{color:#E84A00}
.profile-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:0;max-width:1500px;margin:0 auto;padding:18px clamp(24px,5vw,80px) 24px;align-items:stretch;flex:1;min-height:0;width:100%;overflow:hidden}
.profile-portrait{justify-self:end;position:relative;margin:0;isolation:isolate;overflow:hidden;background:transparent;aspect-ratio:2/3;height:100%;max-width:100%;min-height:0;mask-image:linear-gradient(to bottom,#000 0%,#000 72%,transparent 100%);-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 72%,transparent 100%)}
.profile-portrait img{display:block;width:100%;height:100%;object-fit:contain;object-position:right bottom}.profile-pixels{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;transition:opacity .16s}
.profile-history{margin-left:-5px;padding-left:5px;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:none;padding-bottom:40px}.profile-history::-webkit-scrollbar{display:none}
.profile-heading{margin:12px 0 12px 29px;font-size:clamp(34px,3.8vw,60px);font-weight:900;letter-spacing:-.05em;line-height:1.03}.profile-subtitle{margin:0 0 44px 29px;color:#aaa;font-size:17px}
.profile-road{position:relative;list-style:none;padding:0 0 0 34px;margin:0 0 0 -5px}.profile-road::before{content:'';position:absolute;left:5px;top:9px;bottom:28px;width:1px;background:linear-gradient(#E84A00,#E84A0055);transform-origin:top;animation:profile-road-draw 1.4s .2s both}
.profile-milestone{position:relative;margin:0;padding:0 0 34px;animation:profile-step .5s both;animation-delay:calc(.2s + var(--step)*.09s)}
.profile-milestone::before{content:'';position:absolute;left:-33px;top:7px;width:9px;height:9px;border:1px solid #E84A00;border-radius:50%;background:#080808}.profile-milestone:first-child::before{background:#E84A00;box-shadow:0 0 18px #E84A0055}
.profile-year{display:block;margin-bottom:10px;font-size:12px;font-weight:700;letter-spacing:.08em;color:#E84A00}.profile-station{font-size:20px;font-weight:700;line-height:1.3;letter-spacing:-.025em;margin:0 0 8px}.profile-description{margin:0;color:#aaa;font-size:15px;line-height:1.65;max-width:490px}.profile-description strong{color:#f5f4f0;font-weight:400}
@keyframes profile-enter{from{opacity:0}to{opacity:1}}@keyframes profile-road-draw{from{transform:scaleY(0)}to{transform:scaleY(1)}}@keyframes profile-step{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:700px){.profile-bar{position:absolute;top:0;left:0;right:0;pointer-events:none}.profile-back{pointer-events:auto;text-shadow:0 1px 8px #000}.profile-history{margin-left:0;padding-left:0}.profile-bar{padding:14px 22px}.profile-layout{grid-template-columns:1fr;grid-template-rows:calc(28svh + 68px) minmax(0,1fr);padding:0 24px;gap:18px}.profile-portrait{height:calc(100% + 20px);width:auto;aspect-ratio:2/3;max-width:none;justify-self:end;margin-top:0px;margin-right:-24px;align-self:start}.profile-heading{font-size:38px;margin:0 0 12px}.profile-subtitle{margin:0 0 34px}.profile-road{margin-left:0}.profile-station{font-size:19px}.profile-trigger{font-size:15px;padding:12px 0}.profile-milestone{padding-bottom:30px}}
@media(prefers-reduced-motion:reduce){.profile-dialog[open],.profile-road::before,.profile-milestone{animation:none}.profile-trigger,.profile-trigger span,.profile-pixels{transition:none}}

/* Desktop: subtle divider matching the legal overlay. */
@media(min-width:701px){.profile-bar{border-bottom:1px solid #ffffff14}}

/* One-shot transition from the character to the real portrait. */
.profile-morph-canvas{position:fixed;inset:0;width:100vw;height:100svh;z-index:6;pointer-events:none}
.profile-history{transition:opacity .3s}
.profile-morphing .profile-history{opacity:0;transition:none}
.profile-morphing .profile-road::before,.profile-morphing .profile-milestone{animation:none}
@media(prefers-reduced-motion:reduce){.profile-history{transition:none}}
