/* 3.7.0 Hakkımızda motion (inc/render.php elco_editorial, static/about.js), modelled on the old Avada About page the owner liked
   ("hareketlilik, canlılık"): a light runs down a timeline spine as far as the page is read, each milestone's dot switches on
   when it is reached, texts slide in from the left, pictures light up from the right, and the year counts up.
   - Everything here is a keyframe animation started by a class, never a transition: experience.css turns transitions off under
     prefers-reduced-motion, and like the showroom areas these effects run for every visitor (the owner's PC reports reduce).
   - Only about.js adds .about-live; without it (no JS, no IntersectionObserver) nothing is hidden and the page is the 3.6.0 one.
   - The first milestone is the founder's (also on pages saved in the Hakkımızda editor, which carry no class for it), so the
     spine is appended last and every rule keys on :first-child / :not(:first-child). */
html.ia body .about-timeline.about-live{position:relative;--about-spine-x:clamp(12px,2vw,28px);--about-indent:clamp(48px,6.5vw,96px);--about-warm:#E2A85A;--about-warm-light:#FFC37A;--about-glow:rgba(255,186,100,.45)}
html.ia body .about-timeline.about-live>.about-milestone:not(:first-child){position:relative;padding-left:var(--about-indent)}

/* The spine: a quiet line with the warm light inside it; about.js sets its top/height between the first and last dot and
   --about-progress (0…1) from the scroll position. */
html.ia body .about-timeline.about-live>.about-spine{position:absolute;left:var(--about-spine-x);width:2px;margin-left:-1px;border-radius:2px;background:var(--ia-line-strong);pointer-events:none}
html.ia body .about-timeline.about-live>.about-spine>i{position:absolute;inset:0;border-radius:inherit;background:linear-gradient(180deg,var(--about-warm-light),var(--about-warm));box-shadow:0 0 14px 1px var(--about-glow);transform-origin:top;transform:scaleY(var(--about-progress,0))}
/* The light's head: a small glowing spark at the end of the lit part */
html.ia body .about-timeline.about-live>.about-spine>b{position:absolute;left:50%;top:calc(var(--about-progress,0) * 100%);width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:#FFF4E0;box-shadow:0 0 0 3px var(--about-warm-light),0 0 18px 6px var(--about-glow);opacity:var(--about-spark,0)}

/* Milestone dots: off (paper with a line edge) until the light reaches them, then lit with the site's warm "light on" */
html.ia body .about-timeline.about-live>.about-milestone:not(:first-child)::before{content:"";position:absolute;z-index:1;left:calc(var(--about-spine-x) - 8px);top:calc(var(--about-dot-y,64px) - 8px);width:16px;height:16px;box-sizing:border-box;border-radius:50%;background:var(--ia-paper);border:2px solid var(--ia-line-strong)}
html.ia body .about-timeline.about-live>.about-milestone.is-lit:not(:first-child)::before{background:#FFF4E0;border-color:var(--about-warm);box-shadow:0 0 0 5px rgba(255,195,122,.28),0 0 22px 4px var(--about-glow);animation:about-dot-on .7s cubic-bezier(.2,.7,.2,1) both}
@keyframes about-dot-on{0%{transform:scale(.6);box-shadow:0 0 0 0 rgba(255,195,122,.6),0 0 0 0 var(--about-glow)}55%{transform:scale(1.25)}100%{transform:scale(1)}}
/* The year of a reached milestone turns warm for a moment, like a lamp warming up */
html.ia body .about-timeline.about-live>.about-milestone.is-lit .about-year{animation:about-year-warm 1.6s ease-out both}
@keyframes about-year-warm{0%{color:var(--ia-ink)}30%{color:#A65D0F;text-shadow:0 0 24px rgba(255,186,100,.55)}100%{color:var(--ia-ink);text-shadow:none}}

/* Reveal: hidden until the milestone enters the view, then text from the left and picture from the right */
html.ia body .about-timeline.about-live>.about-milestone:not(.is-in)>*{opacity:0}
html.ia body .about-timeline.about-live>.about-milestone.is-in>div:not(.about-visual) h2{animation:about-from-left .8s cubic-bezier(.2,.7,.2,1) both}
html.ia body .about-timeline.about-live>.about-milestone.is-in>div:not(.about-visual) .imported-content>*{animation:about-from-left .8s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(.14s + var(--about-i,0) * .08s)}
html.ia body .about-timeline.about-live>.about-milestone.is-in>.about-visual{animation:about-light-up 1.1s cubic-bezier(.2,.7,.2,1) .1s both}
@keyframes about-from-left{from{opacity:0;transform:translateX(-36px)}to{opacity:1;transform:none}}
@keyframes about-light-up{0%{opacity:0;transform:translateX(36px) scale(.97);filter:brightness(.55) saturate(.6)}60%{opacity:1;filter:brightness(1.06) saturate(1.06)}100%{opacity:1;transform:none;filter:none}}

/* The founder: the portrait lights up with a warm halo, the words rise one after another */
html.ia body .about-timeline.about-live>.about-milestone:first-child.is-in>.about-visual{animation:about-founder 1.2s cubic-bezier(.2,.7,.2,1) both}
html.ia body .about-timeline.about-live>.about-milestone:first-child.is-in>.about-visual img{animation:about-halo 2.4s ease-out .3s both}
html.ia body .about-timeline.about-live>.about-milestone:first-child.is-in>div:not(.about-visual) .imported-content>*{animation:about-rise .9s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(.25s + var(--about-i,0) * .18s)}
@keyframes about-founder{0%{opacity:0;transform:scale(.94);filter:brightness(.5)}100%{opacity:1;transform:none;filter:none}}
@keyframes about-halo{0%{box-shadow:0 0 0 0 rgba(255,195,122,0)}35%{box-shadow:0 0 0 6px rgba(255,195,122,.35),0 18px 48px -8px rgba(226,168,90,.55)}100%{box-shadow:0 0 0 0 rgba(255,195,122,0),0 18px 40px -18px rgba(21,23,26,.25)}}
@keyframes about-rise{from{opacity:0;transform:translateY(22px)}to{opacity:1;transform:none}}
/* The opening quote mark glows once when the words arrive */
html.ia body .about-timeline.about-live>.about-milestone:first-child.is-in .imported-content p:first-child::before{animation:about-quote 1.8s ease-out .2s both}
@keyframes about-quote{0%{color:var(--ia-line-strong)}40%{color:var(--about-warm-light);text-shadow:0 0 22px var(--about-glow)}100%{color:var(--ia-line-strong);text-shadow:none}}

/* Pictures answer the pointer with the same light as the cards (design.css "Card light"), only where hover exists */
@media(hover:hover){
  html.ia body .about-timeline.about-live>.about-milestone:not(:first-child) .about-visual{overflow:hidden;border-radius:10px}
  html.ia body .about-timeline.about-live>.about-milestone:not(:first-child) .about-visual img{transform-origin:center}
  html.ia body .about-timeline.about-live>.about-milestone:not(:first-child) .about-visual:hover img{animation:about-img-on 1.1s cubic-bezier(.2,.7,.2,1) both}
  @keyframes about-img-on{to{transform:scale(1.03);filter:brightness(1.04) saturate(1.08)}}
}

@media(max-width:760px){
  html.ia body .about-timeline.about-live{--about-spine-x:9px;--about-indent:34px}
  html.ia body .about-timeline.about-live>.about-milestone:not(:first-child)::before{width:14px;height:14px;left:calc(var(--about-spine-x) - 7px);top:calc(var(--about-dot-y,48px) - 7px)}
  @keyframes about-from-left{from{opacity:0;transform:translateX(-20px)}to{opacity:1;transform:none}}
  @keyframes about-light-up{0%{opacity:0;transform:translateY(20px);filter:brightness(.55) saturate(.6)}60%{opacity:1;filter:brightness(1.06) saturate(1.06)}100%{opacity:1;transform:none;filter:none}}
}
