
/* GLOBAL BD / CLEAN 420H TRANSITION + EDITORIAL TILE
   Single scroll mechanism. No legacy variant, scroll-direction flags or
   transitions attached to a section exiting the viewport. */
#core {
  --gb-tile-offset: clamp(64px, 9.2vw, 184px);
  --gb-tile-inset: clamp(28px, 3.05vw, 58px);
  --gb-fade-distance: clamp(320px, 58dvh, 720px);
}
/* Extra scroll distance belongs to the learning chapter, not to the tile.
   The violet screen remains pinned during fading, so its bottom edge is
   white BEFORE the following white canvas can become visible. */
#core > .gb-learning-stage {
  position:relative;
  box-sizing:border-box;
  height:calc(100dvh + var(--gb-fade-distance));
  background:#ffffff;
  isolation:isolate;
}
#core > .gb-learning-stage > section.learning {
  --gb-fade:0;
  position:sticky;
  top:0;
  z-index:1;
  box-sizing:border-box;
  height:100dvh;
  min-height:100dvh;
  max-height:none;
  margin:0;
  background-color:rgb(
    calc(232 + 23 * var(--gb-fade))
    calc(233 + 22 * var(--gb-fade))
    calc(240 + 15 * var(--gb-fade))
  ) !important;
}
/* White page beneath, one independent paper-coloured tile on the right. */
#core > .gb-chapter-area {
  box-sizing:border-box;
  position:relative;
  width:100%;
  background:#ffffff;
  padding:0 0 clamp(88px, 9.5vw, 154px);
}
#core .gb-chapter-tile {
  box-sizing:border-box;
  width:calc(100% - var(--gb-tile-offset));
  margin-left:var(--gb-tile-offset);
  background:var(--paper);
  border-radius:clamp(84px, 8.5vw, 156px) 0 0 clamp(84px, 8.5vw, 156px);
  overflow:hidden;
  isolation:isolate;
}
#core .gb-chapter-tile > section {
  background:transparent !important;
  box-shadow:none;
  margin:0;
  height:auto !important;
  min-height:0 !important;
  max-height:none !important;
  scroll-snap-align:none !important;
}
#core .gb-chapter-tile > section.tech,
#core .gb-chapter-tile > section.ecosystem-editorial,
#core .gb-chapter-tile > section.founder-editorial {
  padding-left:var(--gb-tile-inset);
  padding-right:clamp(36px,7.2vw,136px);
}
#core .gb-chapter-tile > section.tech {
  padding-top:clamp(112px,9.6vw,166px);
  padding-bottom:clamp(60px,6vw,92px);
}
#core .gb-chapter-tile > section.ecosystem-support {
  padding-top:clamp(38px,4.4vw,70px);
  padding-bottom:clamp(52px,6vw,90px);
}
#core .gb-chapter-tile > section.founder-editorial {
  padding-top:clamp(44px,4.8vw,76px);
  padding-bottom:clamp(125px,10vw,172px);
  border:0;
}
#core .gb-chapter-tile .ecosystem-support article {
  border-top-color:var(--line);
}
/* Partners remain a separate section, after the white gap. */
#core > section.partner-perspective {
  padding-top:clamp(96px,8vw,142px);
  padding-left:max(var(--pad),calc(var(--gb-tile-offset) + var(--gb-tile-inset)));
  background:#fff;
  border-top:0 !important;
}
@media(max-width:1100px) {
  #core {--gb-tile-offset:clamp(54px,8.5vw,102px)}
  #core .gb-chapter-tile > section.tech,
  #core .gb-chapter-tile > section.ecosystem-editorial,
  #core .gb-chapter-tile > section.founder-editorial {padding-right:clamp(30px,5vw,76px)}
}
@media(max-width:700px) {
  #core {
    --gb-tile-offset:clamp(19px,5.8vw,34px);
    --gb-tile-inset:clamp(22px,6vw,33px);
    --gb-fade-distance:clamp(260px,43dvh,440px);
  }
  /* On small screens learning text can be taller than a viewport.
     The JS reads the actual content height; never clip the typography. */
  #core > .gb-learning-stage {height:calc(var(--gb-learning-height,100dvh) + var(--gb-fade-distance))}
  #core > .gb-learning-stage > section.learning {
    height:var(--gb-learning-height,100dvh);
    min-height:100dvh;
  }
  #core > .gb-chapter-area {padding-bottom:clamp(55px,12vw,86px)}
  #core .gb-chapter-tile {border-radius:52px 0 0 58px}
  #core .gb-chapter-tile > section.tech,
  #core .gb-chapter-tile > section.ecosystem-editorial,
  #core .gb-chapter-tile > section.founder-editorial {
    padding-left:var(--gb-tile-inset);
    padding-right:clamp(20px,5vw,30px);
  }
  #core .gb-chapter-tile > section.tech {padding-top:92px;padding-bottom:56px}
  #core .gb-chapter-tile > section.ecosystem-support {padding-top:20px;padding-bottom:50px}
  #core .gb-chapter-tile > section.founder-editorial {padding-top:46px;padding-bottom:95px}
  #core > section.partner-perspective {
    padding-left:var(--pad);
    padding-top:clamp(90px,18vw,122px);
  }
}
