/* "From paddles to code" timeline, restyled to the portfolio (light page, Onest, coral accent). Everything is scoped under .journey. Design measurements come from a
   1440px frame: px(v) = v / 14.4 cqw, resolved against .j-frame (the size container). */
.journey{position:relative;isolation:isolate;width:100%;background:transparent;color:var(--foreground);--j-accent:#6C2BD9}
.j-defs{position:absolute;width:0;height:0}
.j-frame{position:relative;container-type:inline-size;width:100%;max-width:min(62.5rem,calc(100vw - 14rem));margin-inline:auto;padding-inline:0;
  --g:max(2.22cqw,16px);--top:3cqw;--bottom:5rem;--rail-solid:6.8056cqw;
  --h-c:32.0833cqw;--w-c:49.3056cqw;--h-s:15.0694cqw;--w-s:23.125cqw;--h-sm:9.2cqw;--w-sm:14.2cqw}
.j-year{font-family:'Onest',sans-serif;line-height:.95}
.j-year{display:block;font-weight:400;font-size:max(4.2cqw,28px);line-height:1;letter-spacing:-.02em;color:#6C2BD9;margin-bottom:.3em}

/* rail */
.j-rail{position:absolute;z-index:1;left:50%;top:0;width:1px;height:0;pointer-events:none}
.j-solid{position:absolute;left:0;top:0;width:1px;height:var(--rail-solid);background:rgba(17,17,17,.2)}
.j-dash{position:absolute;left:0;top:var(--rail-solid);bottom:0;width:1px;background:repeating-linear-gradient(to bottom,rgba(17,17,17,.2) 0 6px,transparent 6px 12px)}
.j-thread{position:absolute;left:0;top:0;width:1px;height:0;background:#6C2BD9}
.j-mark{position:absolute;left:0;top:0;width:9px;height:9px;background:#6C2BD9;transform:translate(-50%,0) translateY(-50%)}
@media (max-width:1023px){.j-mark{width:20px;height:20px}}

/* rows */
.j-rows{position:relative;list-style:none;margin:0;padding:var(--top) 0 var(--bottom)}
.j-row{position:relative;transition:opacity .7s cubic-bezier(.33,0,0,1)}
.j-centre{height:var(--h-c);--w:var(--w-c)}
.j-side{height:var(--h-s);--w:var(--w-s)}
.j-small{height:var(--h-sm);--w:var(--w-sm)}
.j-layer{position:absolute;z-index:2;top:0;width:var(--w);height:100%}
.j-centre .j-layer{left:50%;margin-left:calc(var(--w) / -2)}
.j-left .j-layer{left:var(--g)}
.j-right .j-layer{right:var(--g)}

.j-plate{position:absolute;inset:0;clip-path:url(#jClip)}
.j-box{position:absolute;inset:0;overflow:hidden;transition:inset .7s cubic-bezier(.33,0,0,1)}
.j-img{position:absolute;left:0;top:-10%;width:100%;height:110%;object-fit:cover;max-width:none}
.j-white .j-box{background:linear-gradient(to right,#FFFFFF,#ECE9E6) fixed}
.j-contain{left:12%;width:76%;object-fit:contain}
.j-small .j-contain{left:26%;width:48%}
.j-ph{position:absolute;inset:0;display:none;flex-direction:column;align-items:center;justify-content:flex-end;gap:.25rem;padding:1.5rem 1rem;text-align:center;font-size:.75rem;letter-spacing:.08em;text-transform:uppercase;color:rgba(17,17,17,.5)}
.j-ph b{font-size:1.25rem;font-weight:700;color:rgba(17,17,17,.7)}
.no-img .j-ph{display:flex}

/* year sits centred over its plate */
.j-l{display:inline-block}
.j-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}

/* copy column: year above the text on centre rows; the year alone beside the photo on side rows */
.j-copy{position:absolute;z-index:20;top:50%;height:0;display:flex;align-items:center;pointer-events:none}
.j-centre .j-copy{left:77.2cqw;width:min(31cqw,calc(50vw - 27.2cqw - 16px))}
.j-left .j-copy{left:calc(var(--g) + var(--w) + 2.5cqw);width:20cqw}
.j-right .j-copy{right:calc(var(--g) + var(--w) + 2.5cqw);width:20cqw;justify-content:flex-end;text-align:right}
.j-copy-in{flex:1;min-width:0;overflow-wrap:break-word;transform:translateY(-50%)}
.j-side .j-year{margin-bottom:.25em}
.j-note{position:absolute;z-index:20;top:50%;height:0;display:flex;align-items:center;pointer-events:none}
.j-right .j-note{left:calc(100cqw - var(--g) + 1.5cqw);width:min(14cqw,calc(50vw - 50cqw + var(--g) - 1.5cqw - 16px))}
.j-text.j-note-text{text-align:left;hyphens:none;color:rgba(17,17,17,.5);font-size:max(1.2cqw,12px)}
.j-text{margin:0;text-align:justify;hyphens:auto;-webkit-hyphens:auto;line-height:1.5;font-size:max(1.4cqw,13px);font-weight:400;color:rgba(17,17,17,.7)}
.j-text strong{font-weight:700;color:var(--foreground)}

/* hover dim: pointer devices only */
@media (hover:hover){
  .j-layer:hover .j-box{inset:5%}
  .j-rows:has(.j-layer:hover) .j-row:not(:has(.j-layer:hover)){opacity:.3}
}

@media (prefers-reduced-motion:reduce){
  .j-row,.j-box{transition:none}
}
