/* ============================================================
   ATHAR — Industry Showcase
   Editorial-cinematic scroll experience
   ============================================================ */

:root{
  --void:#050505;
  --graphite:#4D4D4B;
  --signal:#8A8984;
  --paper:#F4F1EA;
  --ink:#141210;
  --ember:#FF5A36;
  --clay:#C96A4E;
  --lime:#D6FF3F;
  --bronze:#B08968;

  --gutter:clamp(20px,4.6vw,72px);
  --ease:cubic-bezier(.22,.61,.24,1);

  --display:'Almarai',sans-serif;
  --serif:'Instrument Serif','Athar Ar Serif',Georgia,serif;
  --sans:'IBM Plex Sans Arabic',sans-serif;
  --mono:'Space Mono','IBM Plex Sans Arabic',ui-monospace,monospace;
  --heavy:'Archivo Black','Almarai','Arial Black',sans-serif;
  --fraunces:'Fraunces','Athar Ar Serif',Georgia,serif;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{background:var(--void);-webkit-text-size-adjust:100%;scroll-behavior:auto}
body{
  background:var(--void);color:var(--paper);
  font-family:var(--sans);
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}
img{display:block;max-width:100%}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;padding:0}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--ember);outline-offset:6px}

/* ---------------- grain ---------------- */
.grain{
  position:fixed;inset:-50%;z-index:7;pointer-events:none;opacity:.045;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  animation:grainShift 6s steps(5) infinite;
}
@keyframes grainShift{
  0%{transform:translate3d(0,0,0)}25%{transform:translate3d(-2%,2%,0)}
  50%{transform:translate3d(1%,-2%,0)}75%{transform:translate3d(2%,1%,0)}
  100%{transform:translate3d(0,0,0)}
}

/* ---------------- loader ---------------- */

.loader{
  position:fixed;inset:0;z-index:100;
  background:var(--void);
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;
}
.loader__mark{
  width:44px;height:44px;display:grid;place-items:center;
  border:1px solid rgba(244,241,234,.35);
  font-family:var(--display);font-weight:800;font-size:20px;color:var(--ember);
}
.loader__bar{width:120px;height:1px;background:rgba(244,241,234,.15);overflow:hidden}
.loader__bar span{display:block;height:100%;width:0%;background:var(--ember)}
.loader__word{
  font-family:var(--mono);font-size:9px;letter-spacing:.5em;
  text-transform:uppercase;color:var(--graphite);padding-left:.5em;
}
body.is-ready .loader{opacity:0;pointer-events:none;transition:opacity .7s var(--ease)}

/* ---------------- top bar ---------------- */

.topbar{
  position:fixed;top:0;left:0;right:0;z-index:20;
  display:flex;align-items:center;justify-content:space-between;
  padding:clamp(18px,2.6vw,32px) var(--gutter);
  mix-blend-mode:normal;
  pointer-events:none;
}
.brand{display:flex;align-items:center;gap:11px;pointer-events:auto}
.brand__mark{
  width:26px;height:26px;display:grid;place-items:center;
  border:1px solid currentColor;font-family:var(--display);font-weight:800;
  font-size:12px;line-height:1;
}
.brand__word{font-family:var(--mono);font-size:10px;letter-spacing:.34em;padding-left:.34em}
.topbar__meta{display:flex;align-items:center;gap:clamp(12px,2vw,28px);mix-blend-mode:difference}
.topbar__label,.topbar__index{
  font-family:var(--mono);font-size:11px;letter-spacing:.22em;text-transform:uppercase;
}
.topbar__index{opacity:.55;font-variant-numeric:tabular-nums}

/* ---------------- chapters ---------------- */

#showcase{position:relative;z-index:2}

.chapter{
  position:relative;
  height:280vh;height:280svh;
}
/* Chapters overlap by one viewport so the incoming stage can curtain
   up over the outgoing one while both are pinned. */
.chapter + .chapter{margin-top:-50vh;margin-top:-50svh}
.chapter:last-of-type{height:300vh;height:300svh}

.stage{
  position:sticky;top:0;
  height:100vh;height:100svh;
  overflow:hidden;
  background:var(--void);
}

/* media */
.media{position:absolute;inset:0;overflow:hidden}
.media img{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:center;
  will-change:transform;
  transform:scale(1.06);
}
.media::after{
  content:"";position:absolute;inset:0;
  background:inherit;
}

/* cinematic veils, never boxes */
.veil{
  position:absolute;inset:0;pointer-events:none;
  background:
    linear-gradient(to top, rgba(5,5,5,.86) 0%, rgba(5,5,5,.55) 24%, rgba(5,5,5,.12) 52%, rgba(5,5,5,0) 74%),
    linear-gradient(to right, rgba(5,5,5,.72) 0%, rgba(5,5,5,.28) 34%, rgba(5,5,5,0) 62%);
}
.veil--light{
  background:
    linear-gradient(to top, rgba(246,243,236,.97) 0%, rgba(246,243,236,.86) 30%, rgba(246,243,236,.35) 58%, rgba(246,243,236,.06) 80%),
    linear-gradient(to right, rgba(246,243,236,.88) 0%, rgba(246,243,236,.55) 46%, rgba(246,243,236,.42) 100%);
}
.veil--ascend{
  background:
    linear-gradient(to top, rgba(6,9,4,.92) 0%, rgba(6,9,4,.6) 30%, rgba(6,9,4,.1) 60%, rgba(6,9,4,0) 80%),
    linear-gradient(to right, rgba(6,9,4,.96) 0%, rgba(6,9,4,.82) 34%, rgba(6,9,4,.3) 62%, rgba(6,9,4,.05) 84%),
    linear-gradient(to top, rgba(6,9,4,.9) 0%, rgba(6,9,4,.45) 34%, rgba(6,9,4,0) 68%);
}
.veil--meridian{
  background:
    linear-gradient(to top, rgba(8,6,3,.94) 0%, rgba(8,6,3,.72) 30%, rgba(8,6,3,.26) 58%, rgba(8,6,3,.04) 80%),
    linear-gradient(to right, rgba(8,6,3,.82) 0%, rgba(8,6,3,.38) 42%, rgba(8,6,3,.1) 74%);
}

/* ---------------- content ---------------- */

.content{
  position:absolute;left:var(--gutter);bottom:clamp(72px,12vh,140px);
  z-index:3;max-width:min(920px,62vw);
}
.content--vera{color:var(--ink);max-width:min(760px,56vw);bottom:clamp(96px,15vh,160px)}
.content--ascend{max-width:min(760px,52vw)}
.content--meridian{bottom:clamp(110px,17vh,180px);z-index:6}

.kicker{
  text-shadow:0 1px 18px rgba(0,0,0,.55);
  display:flex;align-items:center;gap:12px;
  font-family:var(--mono);font-size:10px;letter-spacing:.22em;text-transform:uppercase;
  color:rgba(244,241,234,.72);margin-bottom:clamp(16px,2.4vw,30px);
}
.kicker--ink{color:rgba(20,18,16,.7);text-shadow:none}
.kicker__num{color:var(--ember)}
.kicker__rule{display:block;width:clamp(28px,4vw,56px);height:1px;background:currentColor;opacity:.5}
.chapter[data-chapter="vera"] .kicker__num{color:var(--clay)}

.title{
  margin:0 0 clamp(26px,3.4vw,46px);
  line-height:.88;
  letter-spacing:-.02em;
}
.title__mask{display:block;overflow:hidden;padding-bottom:.06em}
.title__in{display:block;will-change:transform}

.title--forma{font-family:var(--display);font-weight:800;font-size:clamp(54px,9.2vw,150px);color:var(--paper)}
.title--forma .title__in--em{
  padding-top:.14em;
  font-weight:400;font-style:italic;color:var(--ember);
  font-size:.62em;letter-spacing:-.01em;line-height:.96;
}

.title--vera{font-family:var(--serif);font-weight:400;font-size:clamp(62px,10vw,168px);color:var(--ink);letter-spacing:-.01em}
.title--vera .title__in--em,.title--vera .title__in--clay{color:var(--clay);font-style:italic;font-size:.78em;line-height:.95}

.title--ascend{font-family:var(--heavy);font-weight:400;text-transform:uppercase;font-size:clamp(46px,8vw,132px);color:var(--paper)}
.title--ascend .title__in--lime{
  font-family:var(--display);font-weight:400;font-style:italic;text-transform:none;
  color:var(--lime);font-size:.5em;letter-spacing:0;line-height:1;
}

.title--meridian{font-family:var(--fraunces);font-weight:500;font-size:clamp(44px,8.4vw,140px);color:var(--paper)}
.title--meridian .title__in--bronze{color:var(--bronze);font-weight:400;font-style:italic;font-size:.66em;line-height:.98}

.lede{
  margin:0 0 clamp(22px,3vw,36px);
  max-width:44ch;
  font-family:var(--sans);font-size:clamp(14px,1.15vw,17px);line-height:1.66;
  color:rgba(244,241,234,.78);
}
.lede--ink{color:rgba(20,18,16,.74);max-width:40ch}

.note{
  margin:clamp(18px,2.4vw,26px) 0 0;
  font-family:var(--mono);font-size:9.5px;line-height:1.7;letter-spacing:.05em;
  color:rgba(20,18,16,.66);max-width:40ch;
}

.cta{
  display:inline-flex;align-items:center;gap:14px;
  font-family:var(--mono);font-size:11px;letter-spacing:.16em;text-transform:uppercase;
  color:var(--paper);
  padding-bottom:10px;
  border-bottom:1px solid rgba(244,241,234,.45);
  transition:color .3s var(--ease),border-color .3s var(--ease),gap .3s var(--ease);
}
.cta svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.3}
.cta:hover{gap:20px;color:var(--ember);border-color:var(--ember)}
.cta--ink{color:var(--ink);border-color:rgba(20,18,16,.4)}
.cta--ink:hover{color:var(--clay);border-color:var(--clay)}
.cta--lime:hover{color:var(--lime);border-color:var(--lime)}
.cta--bronze:hover{color:var(--bronze);border-color:var(--bronze)}

/* ---------------- forma detail ---------------- */

.forma-detail{
  position:absolute;right:var(--gutter);bottom:clamp(80px,13vh,150px);
  z-index:3;display:flex;align-items:center;gap:16px;
  font-family:var(--mono);font-size:9px;letter-spacing:.24em;text-transform:uppercase;
  color:rgba(244,241,234,.55);
}
.forma-detail__rule{display:block;height:1px;width:0;background:var(--ember)}

/* ---------------- vera images + steps ---------------- */

.vera-img{opacity:0;transition:none}
.vera-img.is-on{opacity:1}
.vera-wash{
  position:absolute;inset:0;z-index:2;pointer-events:none;
  background:linear-gradient(150deg,#F7F4EE 0%, #F0ECE3 100%);
  opacity:.55;
}
.content--vera{z-index:6}
.steps{z-index:4}

.steps{
  position:absolute;right:var(--gutter);bottom:clamp(96px,15vh,160px);
  z-index:4;margin:0;padding:0;list-style:none;
  display:flex;flex-direction:column;gap:14px;text-align:right;
  font-family:var(--mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;
  color:rgba(20,18,16,.72);
}
.step{display:flex;align-items:center;justify-content:flex-end;gap:12px;transition:color .4s var(--ease)}
.step__n{font-size:9px;opacity:.7}
.step.is-active{color:#0B0A09;font-weight:700}
.step.is-active .step__n{color:var(--clay)}

/* ---------------- ascend strips ---------------- */

.stage--strips{display:flex}
.strips{position:absolute;inset:0;display:flex;z-index:1;perspective:1400px;transform-style:preserve-3d}
.strip{
  position:relative;flex:1 1 0;transition:transform .55s var(--ease);
  background-image:url("../assets/ascend-hub.jpg");
  background-size:cover;background-repeat:no-repeat;
  will-change:flex-grow;
  border-right:1px solid rgba(6,9,4,.28);
}
.strip:last-child{border-right:0}
.strip::after{
  content:"";position:absolute;inset:0;
  background:
    linear-gradient(to bottom, rgba(6,9,4,.72) 0%, rgba(6,9,4,.18) 26%, rgba(6,9,4,.2) 58%, rgba(6,9,4,.86) 100%);
}
.strip__label{
  position:absolute;left:50%;top:clamp(84px,12vh,120px);z-index:2;
  transform:translateX(-50%) rotate(180deg);
  writing-mode:vertical-rl;
  font-family:var(--mono);font-size:11px;font-weight:700;letter-spacing:.3em;text-transform:uppercase;
  color:rgba(244,241,234,.96);white-space:nowrap;
  background:rgba(6,9,4,.5);padding:12px 7px;border-radius:2px;
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);
  transition:color .4s var(--ease);
}
.strip.is-active .strip__label{color:var(--lime)}

/* ---------------- meridian framework ---------------- */

.framework{
  position:absolute;left:var(--gutter);right:var(--gutter);bottom:clamp(48px,7vh,72px);
  z-index:3;
}
.framework__rail{position:relative;height:1px;background:rgba(244,241,234,.16);margin-bottom:14px}
.framework__rail span{
  position:absolute;left:0;top:0;height:100%;width:0%;
  background:linear-gradient(90deg,var(--bronze),#E4C9A6);
}
.framework__stages{display:flex;justify-content:space-between;gap:6px}
.framework__stages span{
  font-family:var(--mono);font-size:9px;letter-spacing:.14em;text-transform:uppercase;
  color:rgba(244,241,234,.28);white-space:nowrap;transition:color .35s var(--ease);
}
.framework__stages span.is-on{color:rgba(244,241,234,.85)}

/* ---------------- chapter nav ---------------- */

.chapterNav{
  position:fixed;left:50%;bottom:clamp(20px,3.4vh,34px);transform:translateX(-50%);
  z-index:30;display:flex;align-items:center;gap:clamp(10px,1.6vw,20px);
  padding:8px 12px;
  background:rgba(8,8,8,.42);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  border:1px solid rgba(244,241,234,.1);
  border-radius:999px;
  transition:opacity .5s var(--ease);
}
.navArrow{
  display:grid;place-items:center;width:30px;height:30px;border-radius:50%;
  color:rgba(244,241,234,.75);transition:color .25s var(--ease),background .25s var(--ease);
}
.navArrow svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.4}
.navArrow:hover:not(:disabled){color:var(--void);background:var(--paper)}
.navArrow:disabled{opacity:.22;cursor:default}

.navTicks{display:flex;align-items:center;gap:clamp(4px,1vw,10px)}
.navTicks button{
  display:flex;align-items:center;gap:7px;
  padding:6px 8px;border-radius:999px;
  font-family:var(--mono);font-size:9px;letter-spacing:.16em;text-transform:uppercase;
  color:rgba(244,241,234,.38);
  transition:color .3s var(--ease);
}
.navTicks i{display:block;width:5px;height:5px;border-radius:50%;background:currentColor;opacity:.5}
.navTicks span{display:none}
.navTicks button[aria-current="true"]{color:var(--paper)}
.navTicks button[aria-current="true"] i{background:var(--ember);opacity:1;box-shadow:0 0 0 3px rgba(255,90,54,.18)}
.navTicks button[aria-current="true"] span{display:inline}

.scrollCue{
  position:fixed;left:var(--gutter);bottom:clamp(26px,4vh,40px);z-index:20;
  display:flex;align-items:center;gap:10px;
  font-family:var(--mono);font-size:9px;letter-spacing:.3em;text-transform:uppercase;
  color:rgba(244,241,234,.45);pointer-events:none;
  transition:opacity .6s var(--ease);
}
.scrollCue i{display:block;width:34px;height:1px;background:rgba(244,241,234,.3);position:relative;overflow:hidden}
.scrollCue i::after{
  content:"";position:absolute;inset:0;background:var(--ember);
  transform:translateX(-100%);animation:cue 2.6s var(--ease) infinite;
}
@keyframes cue{0%{transform:translateX(-100%)}45%{transform:translateX(0)}100%{transform:translateX(100%)}}

/* ---------------- colophon ---------------- */

.colophon{
  position:relative;z-index:2;background:var(--void);
  padding:clamp(48px,8vw,110px) var(--gutter) clamp(96px,12vw,150px);
  border-top:1px solid rgba(244,241,234,.08);
}
.colophon p{
  margin:0;max-width:64ch;
  font-family:var(--mono);font-size:10px;line-height:1.9;letter-spacing:.04em;
  color:var(--graphite);
}

/* ---------------- states ---------------- */

body.is-booting .content,body.is-booting .topbar,body.is-booting .chapterNav,body.is-booting .scrollCue{opacity:0}

/* ---------------- responsive ---------------- */

@media (max-width:1100px){
  .content{max-width:min(680px,74vw)}
  .content--vera{max-width:min(600px,68vw)}
}

@media (max-width:860px){
  .chapter{height:230vh;height:230svh}
  .chapter:last-of-type{height:250vh;height:250svh}
  .content,.content--vera{left:var(--gutter);right:var(--gutter);bottom:clamp(120px,17vh,170px);max-width:none}
  .content--meridian{bottom:clamp(150px,20vh,200px)}
  .title--forma{font-size:clamp(46px,15vw,80px)}
  .title--vera{font-size:clamp(52px,16vw,88px)}
  .title--ascend{font-size:clamp(40px,13vw,64px)}
  .title--meridian{font-size:clamp(38px,12.5vw,64px)}
  .lede{font-size:14px;max-width:38ch}
  .forma-detail{display:none}
  .steps{right:var(--gutter);bottom:clamp(96px,14vh,140px);gap:10px;font-size:9px}
  .strip__label{bottom:clamp(190px,30vh,260px);font-size:9px;letter-spacing:.2em}
  .framework__stages span{font-size:8px;letter-spacing:.06em}
  .framework__stages span:nth-child(n+5){display:none}
  .navTicks button{padding:7px 6px}
  .navTicks span{display:none !important}
  .chapterNav{gap:8px;padding:7px 9px}
  .topbar__label{display:none}
  .scrollCue{display:none}
}

@media (max-width:520px){
  .title--forma{font-size:clamp(42px,14.5vw,64px)}
  .title--vera{font-size:clamp(46px,15vw,70px)}
  .content{bottom:clamp(110px,16vh,150px)}
  .framework{left:var(--gutter);right:var(--gutter)}
  .framework__stages span:nth-child(n+4){display:none}
}

@media (prefers-reduced-motion: reduce){
  .grain,.scrollCue i::after{animation:none}
  .chapter{height:auto}
  .chapter + .chapter{margin-top:0}
  .chapter:last-of-type{height:auto}
  .stage{position:relative;height:100svh}
}


/* ============================================================
   CHAPTER SYSTEMS — 01 FORMA portal
   ============================================================ */

body{--stage-mask: none}
.stage{
  -webkit-mask-image:linear-gradient(to bottom, transparent calc(var(--r,0% ) - 16%), #000 var(--r,0%));
  mask-image:linear-gradient(to bottom, transparent calc(var(--r,0% ) - 16%), #000 var(--r,0%));
}

.portal{position:absolute;inset:0;z-index:2;pointer-events:none}
.portal__side{
  position:absolute;top:0;bottom:0;width:46%;
  background:
    linear-gradient(90deg, #050505 0%, #08080a 55%, rgba(10,10,11,.96) 100%);
}
.portal__left{left:0}
.portal__right{right:0;background:linear-gradient(270deg,#050505 0%,#08080a 55%,rgba(10,10,11,.96) 100%)}
.portal__side i{
  position:absolute;top:0;bottom:0;width:1px;
  background:linear-gradient(to bottom, rgba(255,90,54,0) 0%, rgba(255,90,54,.5) 38%, rgba(255,90,54,.18) 100%);
}
.portal__left i{right:0}
.portal__right i{left:0}

.slot{
  position:absolute;right:var(--gutter);bottom:26vh;width:26vw;height:0;
  overflow:hidden;z-index:3;pointer-events:none;
  border-left:1px solid rgba(255,90,54,.5);
}
.slot__inner{
  position:absolute;inset:0;
  background-image:url("../assets/forma-interior.jpg");
  background-size:260%;background-position:64% 62%;
  filter:saturate(1.05) contrast(1.05);
}

.forma-marks{
  position:absolute;right:var(--gutter);top:calc(50% - 60px);z-index:3;
  display:flex;flex-direction:column;gap:14px;align-items:flex-end;
  font-family:var(--mono);font-size:11px;letter-spacing:.22em;text-transform:uppercase;
  color:rgba(244,241,234,.72);text-shadow:0 1px 14px rgba(0,0,0,.9);
}
.forma-marks span{opacity:0}

/* ============================================================
   02 VERA — journey rail
   ============================================================ */

.vera-base{position:absolute;inset:0;overflow:hidden}
.vera-base img{width:100%;height:100%;object-fit:cover}
.vera-wash{position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(150deg,#F7F4EE 0%, #F0ECE3 100%);opacity:.5}

.content--vera{top:clamp(76px,10vh,120px);bottom:auto}

.journey{
  position:absolute;left:var(--gutter);right:var(--gutter);bottom:clamp(86px,10vh,120px);
  z-index:4;height:clamp(190px,26vh,270px);
}
.journey__rail{position:relative;height:1px;background:rgba(20,18,16,.14);margin-bottom:12px}
.journey__rail span{position:absolute;left:0;top:0;height:100%;width:0%;background:var(--clay)}
.journey__stops{display:flex;gap:10px;height:100%}

.stop{
  position:relative;flex:1 1 0;overflow:hidden;min-width:0;
  border-radius:2px;background:#E7E2D8;
  transition:none;
}
.stop__media{
  position:absolute;inset:0;background-size:cover;background-position:center;
  filter:saturate(.92);
}
.stop::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(to top, rgba(16,13,10,.82) 0%, rgba(16,13,10,.25) 46%, rgba(16,13,10,0) 78%);
}
.stop__body{position:absolute;left:16px;right:16px;bottom:14px;z-index:2;color:#F6F3EC}
.stop__n{font-family:var(--mono);font-size:9px;letter-spacing:.24em;color:var(--clay)}
.stop__t{
  margin:6px 0 4px;font-family:var(--serif);font-weight:400;
  font-size:clamp(18px,1.7vw,26px);line-height:1.1;
}
.stop__d{
  margin:0;font-family:var(--sans);font-size:12px;line-height:1.5;
  color:rgba(246,243,236,.78);max-width:30ch;
  opacity:0;transform:translateY(6px);
}

/* ============================================================
   03 ASCEND — track system
   ============================================================ */

.stage--dark{background:#060904}
.tracks{position:absolute;inset:0;z-index:1}
.track{
  position:absolute;overflow:hidden;
  will-change:left,top,width,height;
  border:1px solid var(--track-acc-a, rgba(214,255,63,.12));
}
.track__bg{
  position:absolute;inset:0;background-size:cover;background-position:center;
  filter:brightness(.45) saturate(.9);transform:scale(1.06);
}
.track::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(to top, rgba(4,7,3,.92) 0%, rgba(4,7,3,.35) 55%, rgba(4,7,3,.1) 100%);
}
.track__body{position:absolute;left:18px;right:18px;top:11%;z-index:2}
.track__n{font-family:var(--mono);font-size:9px;letter-spacing:.3em;color:var(--track-acc, var(--lime))}
.track__t{
  margin:8px 0 10px;font-family:var(--heavy);font-weight:400;text-transform:uppercase;
  font-size:clamp(15px,1.5vw,24px);line-height:1;color:var(--paper);letter-spacing:-.01em;
}
.track__list{
  margin:0;padding:0;list-style:none;
  font-family:var(--mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;
  color:rgba(244,241,234,.6);display:flex;flex-direction:column;gap:5px;
}
.track__list li{opacity:0;transform:translateY(5px)}

.content--ascend{z-index:5}

/* ============================================================
   04 MERIDIAN — framework
   ============================================================ */

.web{
  position:absolute;left:var(--gutter);right:var(--gutter);bottom:clamp(58px,7vh,86px);
  z-index:4;height:clamp(190px,26vh,260px);
  display:flex;flex-direction:column;justify-content:flex-end;
}
.web__line{position:relative;height:1px;background:rgba(244,241,234,.14);order:3;margin-top:10px}
.web__line span{position:absolute;left:0;top:0;height:100%;width:0%;
  background:linear-gradient(90deg,var(--bronze),#E8CFAB)}
.web__nodes{
  order:2;margin:0;padding:0;list-style:none;
  display:flex;align-items:stretch;gap:clamp(6px,1.2vw,18px);height:100%;
}
.node{flex:1 1 0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;position:relative}
.node i{
  display:block;width:2px;height:0;background:linear-gradient(to top, rgba(176,137,104,.25), #E2C49B);
  margin-bottom:8px;box-shadow:0 0 10px rgba(226,196,155,.25);
}
.node b{
  font-family:var(--mono);font-size:9px;letter-spacing:.14em;text-transform:uppercase;
  color:rgba(244,241,234,.42);text-shadow:0 1px 12px rgba(0,0,0,.8);font-weight:400;white-space:nowrap;
  transition:color .3s var(--ease);
}
.node.is-on b{color:rgba(244,241,234,.92)}
.node.is-on i{box-shadow:0 0 12px rgba(200,168,126,.35)}
.web__sum{
  order:4;margin:14px 0 0;font-family:var(--serif);font-style:italic;
  font-size:clamp(15px,1.5vw,20px);color:rgba(232,207,171,.85);
  opacity:0;
}

/* ============================================================
   responsive overrides for the four systems
   ============================================================ */

@media (max-width:860px){
  .portal__side{width:54%}
  .slot{display:none}
  .forma-marks{display:none}

  .content--vera{top:clamp(70px,9vh,100px)}
  .journey{height:clamp(220px,30vh,300px);bottom:clamp(96px,13vh,130px)}
  .journey__stops{flex-direction:column;gap:6px}
  .stop{flex:1 1 0;min-height:0}
  .stop__body{left:12px;right:12px;bottom:10px}
  .stop__t{font-size:15px;margin:4px 0 2px}
  .stop__d{display:none}
  .stop::after{background:linear-gradient(to top, rgba(16,13,10,.9) 0%, rgba(16,13,10,.4) 70%, rgba(16,13,10,.1) 100%)}

  .track__body{left:12px;right:12px;top:10%}
  .track__t{font-size:13px;margin:6px 0 6px}
  .track__list{font-size:9px;gap:3px}
  .track__n{font-size:8px}

  .web{height:clamp(200px,28vh,260px);bottom:clamp(88px,11vh,110px)}
  .node b{font-size:7.5px;letter-spacing:.06em}
  .node:nth-child(n+6) b{display:none}
  .web__sum{font-size:13px}
}

/* ATHAR official supplied logo: preserve original SVG artwork and colors. */
.brand__logo{width:clamp(54px,5vw,76px);height:auto;aspect-ratio:1;object-fit:contain;display:block}
.loader__logo{width:clamp(128px,16vw,160px);height:auto;aspect-ratio:1;object-fit:contain;display:block}
@media(max-width:520px){.brand__logo{width:54px}}

/* ATHAR Lab integration: discreet return to the Lab (/lab/#industry-showcase).
   Same mono type as the top-bar label, a step larger (11px, owner request); the bar itself ignores pointer events, so the link opts back in. */
.topbar__back{
  pointer-events:auto;display:inline-flex;align-items:center;gap:.6em;min-height:44px;
  font-family:var(--mono);font-size:11px;letter-spacing:.22em;text-transform:uppercase;
  color:inherit;text-decoration:none;opacity:.78;transition:opacity .25s
}
.topbar__back:hover,.topbar__back:focus-visible{opacity:1}

/* Phones (≤860px): MERIDIAN copy sits just above the framework lines instead of over them
   (owner request). Text bottom = the lines' own bottom + height (same clamps as .web) + a gap;
   placed last so it also wins over the generic ≤520px .content rule. On very short screens the
   min() cap keeps the title below the top bar (text block ≈240px + bar ≈100px). */
@media (max-width:860px){
  .content--meridian{bottom:min(calc(clamp(88px,11vh,110px) + clamp(200px,28vh,260px) + 18px), calc(100svh - 340px))}
}

/* Slightly shorter text-free stretch between chapters (owner request): the next chapter starts to
   curtain in a little earlier (55% overlap instead of 50%). Motion only: the reduced-motion layout
   keeps its plain, non-overlapping sections. */
@media (prefers-reduced-motion: no-preference){
  .chapter + .chapter{margin-top:-55vh;margin-top:-55svh}
}

/* VERA on shorter desktop screens (owner-approved option B): the title stays on the left below the
   logo; the description and call to action move to the empty lower right, just above the visit
   photographs, so nothing overlaps the logo or the photographs. Large screens keep the original
   layout, which already fits. */
@media (min-width:861px) and (max-height:950px){
  .content--vera{
    top:calc(clamp(18px,2.6vw,32px) + clamp(54px,5vw,76px) + clamp(20px,3vh,32px));
    right:var(--gutter);max-width:none;
    display:grid;grid-template-columns:auto minmax(0,24rem);grid-template-rows:auto 1fr auto auto;
    column-gap:clamp(40px,6vw,120px)
  }
  .content--vera .kicker{grid-column:1;grid-row:1}
  .content--vera .title{grid-column:1;grid-row:2 / span 3;align-self:start}
  .content--vera .lede{grid-column:2;grid-row:3;margin:0 0 14px;justify-self:end;align-self:end}
  .content--vera .cta{grid-column:2;grid-row:4;justify-self:end}
  .title--vera{font-size:min(clamp(62px,10vw,168px),17vh)}
}

/* MERIDIAN on desktop (owner request): the copy sits a little higher, the framework lines
   keep their full delivered height, and only the first two (Discover, Diagnose: the ones
   under the copy) stay short so they never reach the text. Phones keep their own rule above. */
@media (min-width:861px){
  .content--meridian{bottom:calc(clamp(58px,7vh,86px) + clamp(110px,14vh,150px) + 24px)}
  .web__nodes .node:nth-child(-n+2) i{max-height:calc(clamp(110px,14vh,150px) - 56px)}
}

/* VERA on phones: the copy starts below the top bar (logo: 18px + 54px), not under it;
   on short phones (iPhone SE class) the title is a touch smaller so the copy keeps its
   distance from the journey photos. */
@media (max-width:860px){
  .content--vera{top:max(clamp(70px,9vh,100px), 88px)}
}
@media (max-width:860px) and (max-height:700px){
  .title--vera{font-size:clamp(44px,13vw,60px)}
}
/* Very short phones (320x568 class): text and journey cannot both fit at full size, so the
   kicker tightens to one line, the title steps down, the one-line description gives way to
   the call to action, and the journey is a little shorter. */
@media (max-width:860px) and (max-height:600px){
  .content--vera .kicker__text{letter-spacing:.12em}
  .title--vera{font-size:40px}
  .content--vera .lede{display:none}
  .journey{height:190px;bottom:84px}
}
/* MERIDIAN on very short phones: the title steps down and the one-line description gives
   way to the call to action, so the copy clears the framework lines. */
@media (max-width:860px) and (max-height:600px){
  .title--meridian{font-size:36px}
  .content--meridian .lede{display:none}
  .web{height:160px}
  .content--meridian{bottom:calc(clamp(88px,11vh,110px) + 160px + 18px)}
}

/* Pacing "A" (owner-approved): longer chapters give each scene more scroll before the next
   one. Motion only; reduced motion keeps the original lengths. */
@media (prefers-reduced-motion: no-preference){
  .chapter{height:320vh;height:320svh}
  .chapter:last-of-type{height:340vh;height:340svh}
}
@media (prefers-reduced-motion: no-preference) and (max-width:860px){
  .chapter{height:265vh;height:265svh}
  .chapter:last-of-type{height:285vh;height:285svh}
}
/* Letter-by-letter titles and word-by-word lines (built by app.js) */
.tr-ch,.tr-w{display:inline-block}
.tr-ch{transform-origin:0 100%}
.tr-sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* Lenis (desktop wheel smooth scroll) */
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto!important}
.lenis.lenis-stopped{overflow:hidden}
/* ASCEND on desktop (owner request): the four track switches felt the quickest, so this
   chapter gets a little more scroll. Wide screens and motion only. */
@media (prefers-reduced-motion: no-preference) and (min-width:861px){
  #ch-ascend{height:360vh;height:360svh}
}
/* A chapter's own box never catches taps; its stage does, once revealed (app.js turns the
   stage off while it is still mostly behind the incoming wipe). */
.chapter{pointer-events:none}
.chapter .stage{pointer-events:auto}
/* FORMA's three words on the right (desktop): clearer, each with the chapter's ember rule;
   app.js brings them in one after another with the scroll. */
@media (min-width:861px){
  .forma-marks{font-size:17px;letter-spacing:.22em;gap:26px;color:#F4F1EA;text-shadow:0 1px 3px rgba(0,0,0,.7),0 2px 22px rgba(0,0,0,.85)}
  .forma-marks span{display:flex;align-items:center;gap:14px}
  .forma-marks span::before{content:"";width:40px;height:2px;background:var(--ember)}
}

/* Phones and tablets (owner request: the same sequence as desktop): the details desktop shows
   come back, sized for the screen.
   FORMA: the three words sit top right under the top bar (the copy is at the bottom) and slide
   in one after another.
   VERA: the active stage keeps its description. MERIDIAN: all eight stage names. */
@media (max-width:860px){
  .forma-marks{display:flex;top:calc(clamp(18px,2.6vw,32px) + 54px + 36px);gap:12px;
    font-size:12px;letter-spacing:.18em;color:#F4F1EA;text-shadow:0 1px 3px rgba(0,0,0,.7),0 2px 18px rgba(0,0,0,.85)}
  .forma-marks span{display:flex;align-items:center;gap:10px}
  .forma-marks span::before{content:"";width:24px;height:2px;background:var(--ember)}
  .stop__d{display:block;font-size:12px;line-height:1.35;max-width:none;margin-top:2px}
  .stop:not(.is-on) .stop__d{display:none}
  .web__nodes{gap:2px}
  .node b{font-size:clamp(6px,1.95vw,7.5px);letter-spacing:0}
  .node:nth-child(n+6) b{display:block}
}
/* Very short phones (320x568 class): no room beside the copy, so these stay off there. */
@media (max-width:860px) and (max-height:600px){
  .forma-marks{display:none}
  .stop__d{display:none}
}

/* Arabic / English: the language switch sits in the top bar beside the way back to the Lab */
.topbar .athar-lang{pointer-events:auto;width:34px;height:34px;--athar-accent:var(--ember)}

/* Arabic (RTL). The copy starts from the right and what sat opposite it mirrors to the left;
   brand names stay left-to-right (the titles animate letter by letter, which RTL would
   reverse); arrows point the other way; rails fill from the right. */
[dir=rtl] .content{left:auto;right:var(--gutter)}
[dir=rtl] .title{direction:ltr;text-align:right}
[dir=rtl] .forma-marks{right:auto;left:var(--gutter);align-items:flex-start}
[dir=rtl] .track{will-change:right,top,width,height}
[dir=rtl] .journey__rail span,[dir=rtl] .web__line span{left:auto;right:0}
[dir=rtl] .web__line span{background:linear-gradient(270deg,var(--bronze),#E8CFAB)}
[dir=rtl] .cta svg,[dir=rtl] .navArrow svg{transform:scaleX(-1)}
[dir=rtl] .topbar__back span{display:inline-block;transform:scaleX(-1)}
@media (min-width:861px) and (max-height:950px){[dir=rtl] .content--vera{left:var(--gutter)}}
@media (max-width:860px){[dir=rtl] .content,[dir=rtl] .content--vera{left:var(--gutter);right:var(--gutter)}}
/* MERIDIAN's stage names in Arabic: Arabic letters need more size than the short mono capitals */
html[lang=ar] .node b{font-size:12px;letter-spacing:0}
@media (max-width:860px){html[lang=ar] .node b{font-size:clamp(8.5px,2.6vw,11px)}}
/* ASCEND on phones: the track tiles start just under the top bar, so the way back and the
   language switch never sit on a tile's label */
@media (max-width:860px){.tracks{top:calc(clamp(18px,2.6vw,32px) + 54px + 14px)}}
/* ASCEND and VERA: more scroll per card so the switches feel heavier, balanced between the two
   (owner request). Motion only. */
@media (prefers-reduced-motion: no-preference) and (min-width:861px){
  #ch-ascend{height:400vh;height:400svh}
  #ch-vera{height:360vh;height:360svh}
}
@media (prefers-reduced-motion: no-preference) and (max-width:860px){
  #ch-ascend,#ch-vera{height:320vh;height:320svh}
}
/* FORMA: the two doors start exactly closed, meeting in the middle on every screen (owner
   request: desktop left a gap, phones overlapped), then open with the scroll. The chapter is a
   little shorter so VERA comes sooner. */
.portal__side,.portal__side{width:50%}
@media (prefers-reduced-motion: no-preference) and (min-width:861px){#ch-forma{height:285vh;height:285svh}}
@media (prefers-reduced-motion: no-preference) and (max-width:860px){#ch-forma{height:240vh;height:240svh}}

