/* ablaka.com — Journey (scroll fly-through under the hero), 2026-11-19 */
.journey{position:relative;height:640vh;height:640svh;margin:0;padding:0}
.j-stick{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden;background:#FAF6EE;isolation:isolate}
.j-canvas{position:absolute;inset:0;width:100%;height:100%;display:block;z-index:0}
.j-stick::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:radial-gradient(ellipse at 50% 55%,transparent 55%,rgba(4,12,7,.35) 100%);opacity:0;transition:opacity .6s}
.j-stick.j-on::after{opacity:1}

.j-chs{position:absolute;inset:0;z-index:2;pointer-events:none}
.j-ch{position:absolute;left:max(var(--pad),calc((100vw - var(--max))/2 + var(--pad)));bottom:15vh;max-width:min(760px,80vw);
  opacity:0;transform:translate3d(0,24px,0) scale(.94);filter:blur(10px);transform-origin:0 100%;
  transition:opacity .7s var(--ease),transform 1s var(--ease),filter .8s var(--ease);color:#F3EFE6}
.j-ch.on{opacity:1;transform:none;filter:none;pointer-events:auto}
.j-ch.past{opacity:0;transform:translate3d(0,-30px,0) scale(1.12);filter:blur(14px)}
.j-eye{font-family:"Space Mono",monospace;font-size:12px;letter-spacing:.24em;text-transform:uppercase;color:#9C978C;display:flex;align-items:center;gap:12px}
.j-eye b{color:#E9A93A;font-weight:400}
.j-eye i{width:34px;height:1px;background:currentColor;opacity:.5;display:inline-block}
.j-ch h2{font-family:Jost,Hanken Grotesk,system-ui,sans-serif;font-weight:300;font-size:clamp(40px,6.4vw,92px);line-height:1;letter-spacing:-.005em;margin:18px 0 18px}
.j-ch h2 em{font-style:normal;color:#A8C94A}
.j-ch p{font-size:clamp(16px,1.4vw,19px);line-height:1.6;color:rgba(243,239,230,.72);max-width:46ch;margin:0 0 22px}
.j-go{display:inline-flex;align-items:center;gap:10px;font-family:"Space Mono",monospace;font-size:12px;letter-spacing:.16em;text-transform:uppercase;
  color:#1c1a17;background:#E9A93A;padding:12px 18px;border-radius:30px;text-decoration:none;transition:background .25s,transform .25s}
.j-go:hover{background:#F3EFE6;transform:translateY(-2px)}
.j-go svg{width:15px;height:15px}

.j-ticks{position:absolute;right:max(var(--pad),calc((100vw - var(--max))/2 + var(--pad)));top:50%;transform:translateY(-50%);z-index:3;
  display:flex;flex-direction:column;gap:14px;opacity:0;transition:opacity .6s}
.j-on .j-ticks{opacity:1}
.j-tick{display:flex;align-items:center;justify-content:flex-end;gap:12px;font-family:"Space Mono",monospace;font-size:11px;letter-spacing:.14em;
  text-transform:uppercase;color:rgba(243,239,230,.38);text-decoration:none;transition:color .4s}
.j-tick span{opacity:0;transform:translateX(6px);transition:opacity .4s,transform .4s}
.j-tick i{width:18px;height:1px;background:currentColor;transition:width .4s}
.j-tick.past{color:rgba(233,169,58,.55)}
.j-tick.on{color:#E9A93A}
.j-tick.on span,.j-tick:hover span{opacity:1;transform:none}
.j-tick.on i{width:42px}

.j-hint{position:absolute;left:50%;bottom:6vh;transform:translateX(-50%);z-index:3;font-family:"Space Mono",monospace;font-size:11px;letter-spacing:.24em;
  text-transform:uppercase;color:rgba(243,239,230,.6);display:flex;flex-direction:column;align-items:center;gap:10px;transition:opacity .6s;opacity:0}
.j-on .j-hint{opacity:1}
.j-on .j-hint.gone,.j-hint.gone{opacity:0}
.j-hint::after{content:"";width:1px;height:38px;background:linear-gradient(#E9A93A,transparent);animation:jdrop 1.8s ease-in-out infinite}
@keyframes jdrop{0%{transform:scaleY(0);transform-origin:top}50%{transform:scaleY(1);transform-origin:top}51%{transform-origin:bottom}100%{transform:scaleY(0);transform-origin:bottom}}

@media (max-width:760px){
  .journey{height:560vh;height:560svh;padding:0}
  .j-ch{bottom:12vh;max-width:88vw}
  .j-ticks{top:auto;bottom:4vh;transform:none;flex-direction:row;gap:8px;right:var(--pad)}
  .j-tick span{display:none}
  .j-tick i{width:14px}.j-tick.on i{width:28px}
  .j-hint{bottom:auto;top:12vh}
}
/* reduced motion / no WebGL: a calm list of the six chapters, nothing pinned */
.j-static .journey{height:auto}
.j-static .j-stick{position:relative;height:auto;background:radial-gradient(120% 95% at 50% 38%,#0C1F15 0%,#040C07 100%);padding:80px 0}
.j-static .j-canvas,.j-static .j-ticks,.j-static .j-hint{display:none}
.j-static .j-chs{position:relative}
.j-static .j-ch{position:relative;left:auto;bottom:auto;opacity:1;transform:none;filter:none;margin:0 auto 64px;padding:0 var(--pad);max-width:var(--max)}
/* legibility: a soft dark wash behind the chapter text, the field stays bright elsewhere */
.j-chs::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .8s;
  background:radial-gradient(62% 58% at 20% 74%,rgba(4,12,7,.86) 0%,rgba(4,12,7,.55) 42%,rgba(4,12,7,0) 78%)}
.j-on .j-chs::before{opacity:1}
.j-ch h2,.j-ch p{text-shadow:0 2px 22px rgba(4,12,7,.85),0 0 2px rgba(4,12,7,.6)}
@media (max-width:760px){.j-chs::before{background:linear-gradient(0deg,rgba(4,12,7,.9) 0%,rgba(4,12,7,.6) 45%,rgba(4,12,7,0) 75%)}}
/* v3: Ася's big spaced-caps keyword per chapter (top right), as in the Ablaka channel intro */
.j-kws{position:absolute;inset:0;z-index:2;pointer-events:none}
.j-kw{position:absolute;right:max(var(--pad),calc((100vw - var(--max))/2 + var(--pad) + 80px));top:16vh;font-family:Jost,Hanken Grotesk,system-ui,sans-serif;
  font-weight:300;font-size:clamp(34px,4.6vw,72px);letter-spacing:.3em;line-height:1;color:#F3EFE6;text-align:right;white-space:nowrap;
  opacity:0;transform:translate3d(0,18px,0);filter:blur(8px);transition:opacity .8s var(--ease),transform 1s var(--ease),filter .8s var(--ease);
  text-shadow:0 2px 24px rgba(4,12,7,.7)}
.j-kw.on{opacity:.92;transform:none;filter:none}
.j-kw.past{opacity:0;transform:translate3d(0,-22px,0) scale(1.06);filter:blur(12px)}
@media (max-width:760px){.j-kw{top:11vh;right:var(--pad);font-size:30px;letter-spacing:.22em}}
.j-static .j-kws{display:none}

/* intro (the flight opens the page, his 11062): over the Ablaka mark drawing itself, before Branding */
.j-intro{position:absolute;z-index:2;left:max(var(--pad),calc((100vw - var(--max))/2 + var(--pad)));bottom:15vh;color:#F3EFE6;pointer-events:none;
  opacity:0;transform:translate3d(0,20px,0);filter:blur(8px);transition:opacity .8s var(--ease),transform 1s var(--ease),filter .8s var(--ease)}
.j-intro.on{opacity:1;transform:none;filter:none}
.j-intro-h{font-family:Jost,Hanken Grotesk,system-ui,sans-serif;font-weight:300;font-size:clamp(44px,7vw,104px);line-height:1;margin:18px 0 0;
  text-shadow:0 2px 22px rgba(4,12,7,.85)}
.j-intro-h em{font-style:normal;color:#A8C94A}
.j-stick .j-intro ~ .j-hint{opacity:1}
.j-hint.gone{opacity:0 !important}
@media (max-width:760px){.j-intro{bottom:14vh}}
.j-static .j-intro{display:none}
/* phones: no growth past the screen edges on the way out (his 11062: "movement left-right at the borders") */
@media (max-width:760px){.j-ch.past{transform:translate3d(0,-16px,0);filter:blur(10px)}.j-kw.past{transform:translate3d(0,-12px,0)}}
/* the flight opens the page: before the first scroll the nav floats transparent over the dark stage → light type */
/* only while the home page is the one shown (his 11092: on Contact etc. the light type sat on cream, unreadable) */
html.j-first:has(#page-home.active) .nav:not(.scrolled) .brand b{color:#F3EFE6}
/* desktop only: on phones the links live in the cream drop-down menu, where light type vanished (seen 11-19 17:5x) */
@media(min-width:861px){html.j-first:has(#page-home.active) .nav:not(.scrolled) .nav-links a:not(.active){color:#F3EFE6}}
html.j-first:has(#page-home.active) .nav:not(.scrolled) .btn-ink{background:#F3EFE6;color:#1c1a17}
html.j-first:has(#page-home.active) .nav:not(.scrolled) .burger span{background:#F3EFE6}
/* phones: vertical gestures only on the stage, and a hidden-overflow fallback for Safari versions without overflow:clip */
.journey{touch-action:pan-y pinch-zoom}
html.j-first{overflow-x:hidden;overflow-x:clip}
/* his 11084: on a desktop the vertical scale with the discipline names repeated the chapter label on the left and ran
   over the objects → gone; phones keep their small unlabeled dashes at the bottom */
@media (min-width:761px){.j-ticks{display:none}}
