/**
 * Guest header language panel — current zerospread.net dropdown.
 * Scoped by .zs-guest-language-menu on the listbox itself.
 */

.zs-guest-language-menu {
  --zs-pop-bg: #fff;
  --zs-pop-ink: #111512;
  --zs-pop-line: #1115121a;
  --zs-pop-radius: 12px;
  --zs-pop-pad-block: 8px;
  --zs-pop-row-h: 44px;
  --zs-pop-hover: #f4f5f3;
  --zs-pop-selected: #f0f2ee;
  --zs-pop-marker: #a3ff12;
  --zs-pop-focus: inset 0 0 0 2px #111512;
  --zs-pop-shadow: 0 16px 40px -12px #0f121038, 0 2px 6px #0f12100f;
  box-sizing: border-box;
  min-width: 220px;
  padding: var(--zs-pop-pad-block, 8px) !important;
  border: 1px solid var(--zs-pop-line, rgba(17, 21, 18, 0.1)) !important;
  border-radius: var(--zs-pop-radius, 12px) !important;
  background: var(--zs-pop-bg, #ffffff) !important;
  color: var(--zs-pop-ink, #111512) !important;
  box-shadow: var(--zs-pop-shadow, 0 16px 40px -12px rgba(15, 18, 16, 0.22)) !important;
  font-family: var(--zs-header-nav-font-family, "Tajawal", "IBM Plex Sans Arabic", sans-serif);
  font-synthesis: none;
  text-rendering: geometricPrecision;
}

.zs-guest-language-menu [role='option'] {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: var(--zs-pop-row-h, 44px) !important;
  padding-inline: 14px !important;
  padding-block: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #111111 !important;
  font-family: var(--zs-header-nav-font-family, "Tajawal", "IBM Plex Sans Arabic", sans-serif) !important;
  font-size: var(--zs-header-nav-font-size, 14px) !important;
  font-weight: 500 !important;
  line-height: var(--zs-header-nav-line-height, 1.3) !important;
  letter-spacing: var(--zs-header-nav-letter-spacing, 0) !important;
  text-align: start !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: background-color 140ms ease, color 140ms ease !important;
}

.zs-guest-language-menu [role='option']:hover,
.zs-guest-language-menu [role='option']:focus-visible {
  background: var(--zs-pop-hover, #f4f5f3) !important;
  color: var(--zs-pop-ink, #111512) !important;
  outline: none !important;
  box-shadow: none !important;
}

.zs-guest-language-menu [role='option']:focus-visible {
  box-shadow: var(--zs-pop-focus, inset 0 0 0 2px #111512) !important;
}

.zs-guest-language-menu [role='option'][aria-selected='true'] {
  background: var(--zs-pop-selected, #f0f2ee) !important;
  color: var(--zs-pop-ink, #111512) !important;
  font-weight: 700 !important;
}

.zs-guest-language-menu [role='option'][aria-selected='true']::after {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  margin-inline-start: auto;
  border-radius: 999px;
  background: var(--zs-pop-marker, #a3ff12);
  box-shadow: 0 0 0 1px #7cc70a;
}

.zs-guest-language-menu [role='option'] span {
  color: inherit !important;
}

/* قائمة اللغات — تمرير بدون شريط مرئي */
.HeaderLanguageGlobe_languageDropdown__vTXkl {
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.HeaderLanguageGlobe_languageDropdown__vTXkl::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.HeaderLanguageGlobe_languageDropdownMobile__f_0zl {
  max-height: min(360px, calc(100dvh - 76px));
  overflow-x: hidden;
  overscroll-behavior: contain;
  touch-action: manipulation;
  transform: translateZ(0);
}

/* Production zerospread.net guest account panel */
.GuestUserMenu_panel__SZ7Du.zs-account-menu-anchor {
  box-sizing: border-box;
  width: 320px;
  min-width: 320px;
  max-width: 320px;
  overflow: hidden;
  padding-block: var(--zs-pop-pad-block, 8px);
  border: 1px solid rgba(17, 21, 18, 0.1);
  border-radius: var(--zs-pop-radius, 12px);
  background: #ffffff;
  color: #111512;
  box-shadow:
    var(--zs-pop-shadow, 0 16px 40px -12px rgba(15, 18, 16, 0.22)),
    0 2px 6px rgba(15, 18, 16, 0.06),
    var(--zs-hdr-pop-ring, 0 0 0 1px rgba(17, 21, 18, 0.06));
}

.GuestUserMenu_divider__E_TcS {
  height: 1px;
  margin: 0;
  background: rgba(17, 21, 18, 0.08);
}

.GuestUserMenu_loginRow__0mE43 {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  padding-inline: 16px;
  border: 0;
  background: transparent;
  color: #111512;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 140ms ease;
}

.GuestUserMenu_loginRow__0mE43:hover,
.GuestUserMenu_loginRow__0mE43:focus-visible {
  background: rgba(20, 23, 21, 0.05);
  color: #111512;
  text-decoration: none;
}

.GuestUserMenu_loginRow__0mE43:focus-visible {
  outline: none;
}

.GuestUserMenu_loginIcon__lG11e {
  flex-shrink: 0;
  color: #111512;
  stroke: currentColor;
}

.GuestUserMenu_loginText__Kwmgr {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
}

.GuestUserMenu_textRow__LSVdv {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  padding-inline: 16px;
  border: 0;
  background: transparent;
  color: #111512;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-align: start;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.GuestUserMenu_textRow__LSVdv:hover,
.GuestUserMenu_textRow__LSVdv:focus-visible {
  background: rgba(20, 23, 21, 0.05);
  color: #111512;
  outline: none;
}

.GuestUserMenu_darkRow__mNFax {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  padding-inline: 16px;
  border: 0;
  background: transparent;
  color: #111512;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.GuestUserMenu_darkRow__mNFax:hover,
.GuestUserMenu_darkRow__mNFax:focus-visible {
  background: rgba(20, 23, 21, 0.05);
  outline: none;
}

.GuestUserMenu_darkLabel__HkHgw {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-align: start;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #111512;
}

.GuestUserMenu_switch__7ZHiJ {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #9ca3af;
  transition: background-color 180ms ease;
}

.GuestUserMenu_switchOn__WC1pj {
  background: #4b5563;
}

.GuestUserMenu_switchThumb__al5se {
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.18);
  transition: inset-inline-start 180ms ease;
  pointer-events: none;
}

.GuestUserMenu_switchOn__WC1pj .GuestUserMenu_switchThumb__al5se {
  inset-inline-start: 20px;
}

/* TradingView-like light account menu */

.ProfileMenu_shell__eydbJ {
  width: 320px;
  max-width: calc(100vw - 24px);
  padding: 0;
  overflow: hidden;
  margin-left: 0;
  margin-right: 0;
  border-radius: 8px;
  border: 1px solid #d9dce3;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
  color: #111827;
  font-family: var(--zs-font-institutional);
  font-synthesis: none;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ProfileMenu_shellEnter__GZwd1 {
  animation: ProfileMenu_profileMenuEnter__5bvSV 180ms ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .ProfileMenu_shellEnter__GZwd1 {
    animation: none;
  }
}

@keyframes ProfileMenu_profileMenuEnter__5bvSV {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ProfileMenu_identity__Jlbw4 {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 72px;
  padding: 14px 16px;
  border-block-end: 1px solid #eceff3;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
}

.ProfileMenu_identity__Jlbw4:hover {
  background: #f7f8fa;
}

.ProfileMenu_identityAvatar__Iy4Jy {
  width: 40px;
  height: 40px;
  min-width: 40px;
  max-width: 40px;
  flex: 0 0 40px;
  aspect-ratio: 1 / 1;
  border-radius: 9999px;
  overflow: hidden;
  background: #5b8a96;
  box-shadow: none;
  border: none;
}

.ProfileMenu_identityAvatarImg__RhYAT {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ProfileMenu_identityAvatarFallback__5EJet {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
}

.ProfileMenu_identityText__lAGuG {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.ProfileMenu_identityName__3TTV1 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ProfileMenu_identityEmail__cd3op {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ProfileMenu_body__EmivL {
  padding: 0;
}

.ProfileMenu_groupDivider__04dX8 {
  height: 1px;
  margin: 0;
  border: 0;
  background: #eceff3;
}

.ProfileMenu_row__ZVz51 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 48px;
  min-height: 48px;
  padding-inline: 16px;
  border: none;
  border-radius: 0;
  background: transparent;
  width: 100%;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: #111827;
  transition: background-color 120ms ease;
  text-align: start;
}

.ProfileMenu_row__ZVz51:hover {
  background: #f7f8fa;
}

.ProfileMenu_row__ZVz51:active {
  background: #f1f3f6;
}

.ProfileMenu_row__ZVz51:focus-visible {
  outline: none;
  background: #f7f8fa;
  box-shadow: inset 0 0 0 2px #2962ff;
}

.ProfileMenu_rowActive__9tR4X {
  background: #f1f3f6;
}

.ProfileMenu_rowIcon__ZZnxt {
  display: none;
}

.ProfileMenu_rowLabel__6qrLe {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: start;
}

.ProfileMenu_rowSuffix__p8SyO {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 400;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
}

.ProfileMenu_rowBadge__gU_TH {
  display: inline-flex;
  min-width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ef4444;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  padding-inline: 5px;
  flex-shrink: 0;
}

.ProfileMenu_chevron__i82PX {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #9ca3af;
  opacity: 1;
}

.ProfileMenu_footer__rV1mL {
  border-block-start: 1px solid #eceff3;
  padding: 0;
}

.ProfileMenu_logoutRow__HNbN8 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 48px;
  min-height: 48px;
  padding-inline: 16px;
  border: none;
  border-radius: 0;
  background: transparent;
  width: 100%;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.3;
  color: #111827;
  transition: background-color 120ms ease;
  text-align: start;
}

.ProfileMenu_logoutRow__HNbN8:hover {
  background: #f7f8fa;
}

.ProfileMenu_logoutRow__HNbN8:active {
  background: #f1f3f6;
}

.ProfileMenu_logoutRow__HNbN8 .ProfileMenu_rowIcon__ZZnxt {
  display: none;
}

.ProfileMenu_switch__dpWrY {
  position: relative;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  background: #d1d5db;
  padding: 0;
  cursor: pointer;
}

.ProfileMenu_switchOn__unFhB {
  background: #4b5563;
}

.ProfileMenu_switchThumb___ezRs {
  position: absolute;
  top: 2px;
  inset-inline-start: 2px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.18);
  transition: inset-inline-start 140ms ease;
  pointer-events: none;
}

.ProfileMenu_switchOn__unFhB .ProfileMenu_switchThumb___ezRs {
  inset-inline-start: 18px;
}

.ProfileMenu_nestedPanel__j82DL {
  animation: ProfileMenu_nestedPanelIn__qX6xa 180ms ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .ProfileMenu_nestedPanel__j82DL {
    animation: none;
  }
}

@keyframes ProfileMenu_nestedPanelIn__qX6xa {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

[dir='rtl'] .ProfileMenu_nestedPanel__j82DL {
  animation-name: ProfileMenu_nestedPanelInRtl__F7J6r;
}

@keyframes ProfileMenu_nestedPanelInRtl__F7J6r {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ProfileMenu_dropdownAnchor__4a2YH {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 9999;
}

.ProfileMenu_triggerWrap__tShP2 {
  position: relative;
}

.ProfileMenu_inDropdown__bvkW4 {
  width: 100%;
  max-width: none;
}

/* ==========================================================================
   ZeroSpread School — Stage Gateways (chapters / candles / TA overviews)
   BASE (tokens · type · actions · motion) is copied verbatim from the approved
   /school homepage stylesheet (public-home/school-home.module.css) so the
   gateways share its exact personality. Stage-specific language only below.
   ========================================================================== */

.gateway_root___6Od0 {
  --bg: #000000;
  --bg-2: #07080a;
  --surface: #0b0d10;
  --surface-2: #101318;
  --text: #f4f5f3;
  --text-2: rgba(244, 245, 243, 0.68);
  --text-3: rgba(244, 245, 243, 0.46);
  --text-4: rgba(244, 245, 243, 0.26);
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-3: rgba(255, 255, 255, 0.22);
  --green: #a3ff12;
  --green-ink: #a3ff12;
  --green-soft: rgba(163, 255, 18, 0.14);
  --amber: #d6a23e;
  --btn-ink: #000;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;

  --ease: cubic-bezier(0.22, 0.61, 0.21, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(20px, 2.5vw, 48px);
  --section: clamp(96px, 9vw, 168px);
  --header: var(--zs-header-h, 64px);

  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: var(--zs-font-institutional);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0;
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color 500ms var(--ease), color 500ms var(--ease);
}

html.light .gateway_root___6Od0 {
  --bg: #f6f6f2;
  --bg-2: #eeeee8;
  --surface: #ffffff;
  --surface-2: #fafaf7;
  --text: #0b0d0c;
  --text-2: rgba(11, 13, 12, 0.7);
  --text-3: rgba(11, 13, 12, 0.5);
  --text-4: rgba(11, 13, 12, 0.3);
  --line: rgba(11, 13, 12, 0.08);
  --line-2: rgba(11, 13, 12, 0.14);
  --line-3: rgba(11, 13, 12, 0.26);
  --green-ink: #5f9400;
  --green-soft: rgba(132, 214, 0, 0.18);
  --amber: #a86f14;
  --shadow: 0 1px 2px rgba(11, 13, 12, 0.04), 0 12px 40px -24px rgba(11, 13, 12, 0.18);
}

.gateway_root___6Od0 *,
.gateway_root___6Od0 *::before,
.gateway_root___6Od0 *::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

.gateway_root___6Od0 :where(h1, h2, h3, h4, p, ol, ul, dl, dd, dt, figure, figcaption) {
  margin: 0;
  padding: 0;
}

.gateway_root___6Od0 :where(ol, ul) {
  list-style: none;
}

.gateway_root___6Od0 :where(a) {
  color: inherit;
  text-decoration: none;
}

.gateway_root___6Od0 :where(button) {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-align: start;
}

.gateway_root___6Od0 :focus-visible {
  outline: 1px solid var(--green);
  outline-offset: 4px;
  border-radius: 6px;
}

.gateway_root___6Od0 svg {
  /* SVG geometry is authored LTR; Arabic text still shapes correctly, and
     text-anchor start/end keep their geometric meaning inside an RTL page. */
  direction: ltr;
}

.gateway_root___6Od0 svg text {
  font-family: inherit;
}

.gateway_container__PmoBf {
  position: relative;
  width: 100%;
  max-width: 1840px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.gateway_num__XcH0Q {
  font-variant-numeric: lining-nums tabular-nums;
  unicode-bidi: isolate;
}

/* ---------- Type ---------- */

.gateway_line__a7Kh_ {
  display: block;
}

.gateway_lineMuted__rOjjw {
  color: var(--text-3);
}

.gateway_eyebrow__YJ9PB {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-block-end: 28px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: var(--text-2);
}

.gateway_eyebrowDot__3Ikoc {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.gateway_h2__4knjj {
  font-size: clamp(34px, 3.6vw, 64px);
  font-weight: 700;
  line-height: 1.16;
  color: var(--text);
  text-wrap: balance;
}

.gateway_lead__VN7DE {
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.95;
  color: var(--text-2);
  max-width: 50ch;
  text-wrap: pretty;
}

.gateway_source__Jasvx {
  margin-block-start: 22px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-3);
}

.gateway_sectionHead__L7Glm {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: end;
  gap: 32px clamp(40px, 6vw, 120px);
  margin-block-end: clamp(48px, 5vw, 88px);
}

.gateway_sectionHead__L7Glm > :last-child {
  justify-self: end;
}

/* ---------- Actions ---------- */

.gateway_ctaRow__IA_cZ {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.gateway_ctaRow__IA_cZ[data-align="center"] {
  justify-content: center;
}

.gateway_btnPrimary__ff7bc {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding-inline: 28px 22px;
  border-radius: 12px;
  background: var(--green);
  color: var(--btn-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 220ms var(--ease);
}

.gateway_btnPrimary__ff7bc:hover {
  background: #b4ff45;
}

.gateway_btnQuiet__p3Xrm {
  display: inline-flex;
  align-items: center;
  height: 54px;
  padding-inline: 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid transparent;
  background: linear-gradient(var(--line-3), var(--line-3)) no-repeat left 0 bottom 14px / 100% 1px;
  transition: background-size 260ms var(--ease);
}

.gateway_btnQuiet__p3Xrm:hover {
  background-image: linear-gradient(var(--text), var(--text));
}

.gateway_arrow__VpSGL {
  transition: transform 240ms var(--ease);
}

[dir="ltr"] .gateway_arrow__VpSGL {
  transform: scaleX(-1);
}

[dir="ltr"] .gateway_coordBar__3AUb9 span,
[dir="ltr"] .gateway_factBar__SNRTz span,
[dir="ltr"] .gateway_railFill__MqrHg,
[dir="ltr"] .gateway_groupBar__KtuDu span,
[dir="ltr"] .gateway_thresholdSegs__1xZDh li::after {
  transform-origin: left center;
}

.gateway_btnPrimary__ff7bc:hover .gateway_arrow__VpSGL,
.gateway_inlineLink__BqvBC:hover .gateway_arrow__VpSGL {
  transform: translateX(-3px);
}

.gateway_inlineLink__BqvBC {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-block: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--line-2);
  transition: border-color 220ms var(--ease);
}

.gateway_inlineLink__BqvBC:hover {
  border-color: var(--green);
}

/* ==========================================================================
   Motion system (driven by SchoolHomeMotion)
   ========================================================================== */

.gateway_root___6Od0 [data-reveal] {
  transition:
    opacity 900ms var(--ease) var(--d, 0ms),
    transform 1000ms var(--ease-out) var(--d, 0ms),
    clip-path 1100ms var(--ease-out) var(--d, 0ms);
}

.gateway_root___6Od0[data-motion="on"] [data-reveal]:not([data-revealed]) {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
}

.gateway_root___6Od0[data-motion="on"] [data-reveal="mask"]:not([data-revealed]) {
  opacity: 1;
  transform: translate3d(0, 32px, 0);
  clip-path: inset(0 0 calc(100% - 1px) 0);
}

.gateway_root___6Od0 [data-reveal="mask"] {
  clip-path: inset(0 0 0 0);
}

@keyframes gateway_heroIn__fFDZ8 {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.gateway_heroIn__fFDZ8 {
  animation: gateway_heroIn__fFDZ8 1100ms var(--ease-out) var(--d, 0ms) both;
}

/* ==========================================================================
   Gateway frame
   ========================================================================== */

.gateway_root___6Od0 {
  min-height: 100vh;
  padding-block-start: var(--header);
}

.gateway_needsData__YRvk0 {
  transition: opacity 600ms var(--ease);
}

.gateway_root___6Od0[data-ready="false"] .gateway_needsData__YRvk0 {
  opacity: 0 !important;
}

.gateway_footnote__BdSK_ {
  margin-block-start: 16px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-3);
}

/* ==========================================================================
   01 · Stage identity
   ========================================================================== */

.gateway_identity__24zzl {
  position: relative;
  min-height: clamp(640px, calc(100svh - var(--header)), 980px);
  padding-block: clamp(28px, 4vh, 56px) clamp(36px, 5vh, 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(32px, 5vh, 64px);
}

.gateway_identityGrid__aSG9d {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 3vw, 72px);
  flex: 1;
}

.gateway_crumb__OOnb_ {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-block-end: clamp(28px, 4vh, 48px);
  font-size: 14px;
  color: var(--text-3);
}

.gateway_crumb__OOnb_ a {
  color: var(--text-2);
  border-bottom: 1px solid var(--line-2);
  padding-block-end: 2px;
  transition: border-color 200ms var(--ease);
}

.gateway_crumb__OOnb_ a:hover {
  border-color: var(--text);
}

.gateway_title__s5HVg {
  font-size: clamp(44px, 4.3vw, 92px);
  font-weight: 700;
  line-height: 1.14;
  color: var(--text);
}

@media (min-width: 1101px) {
  .gateway_title__s5HVg .gateway_line__a7Kh_ {
    white-space: nowrap;
  }
}

.gateway_heroLead__Gt3rE {
  margin-block: clamp(24px, 2.6vw, 40px) clamp(30px, 3vw, 44px);
  font-size: clamp(17px, 1.2vw, 20px);
  line-height: 1.95;
  color: var(--text-2);
  max-width: 50ch;
  text-wrap: pretty;
}

.gateway_lockedLine__W_Sri {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-block: -12px 28px;
  font-size: 15px;
  color: var(--text-2);
}

.gateway_visual__MRmEc {
  position: relative;
  align-self: stretch;
  display: grid;
  place-items: center;
  min-height: 420px;
  border-inline-start: 1px solid var(--line);
  padding-inline-start: clamp(16px, 3vw, 56px);
}

.gateway_visualIndex__S5Rot {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  font-size: clamp(72px, 7vw, 128px);
  font-weight: 700;
  line-height: 1;
  color: var(--line-2);
}

.gateway_visualSvg__4kG5H {
  width: min(100%, 640px);
  height: auto;
  max-height: 64vh;
  overflow: visible;
}

/* shared chapter-state language for the three drawings */
.gateway_layer___0EgN rect {
  fill: none;
  stroke: var(--line-3);
  stroke-width: 1;
}

.gateway_layer___0EgN text {
  fill: var(--text-3);
}

.gateway_layerNo__VW_nP {
  font-size: 12px;
}

.gateway_layerLabel__zNVR8 {
  font-size: 14px;
}

.gateway_layer___0EgN[data-state="passed"] rect {
  fill: var(--text);
  stroke: var(--text);
}

.gateway_layer___0EgN[data-state="passed"] text {
  fill: var(--bg);
}

.gateway_layer___0EgN[data-state="current"] rect {
  stroke: var(--green-ink);
  stroke-width: 1.6;
  fill: var(--green-soft);
}

.gateway_layer___0EgN[data-state="current"] text {
  fill: var(--text);
}

.gateway_layer___0EgN[data-state="locked"] rect {
  stroke-dasharray: 3 4;
  stroke: var(--line-2);
}

.gateway_layer___0EgN[data-state="locked"] text {
  fill: var(--text-4);
}

.gateway_root___6Od0[data-motion="on"][data-ready="true"] .gateway_layer___0EgN {
  animation: gateway_layerIn__fZ5HO 900ms var(--ease-out) calc(300ms + var(--i) * 70ms) both;
}

@keyframes gateway_layerIn__fZ5HO {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.gateway_axis__Pbjhu {
  stroke: var(--line-2);
  stroke-width: 1;
}

.gateway_candle__c2i8i line {
  stroke: var(--text-3);
  stroke-width: 1.4;
}

.gateway_candle__c2i8i rect {
  fill: none;
  stroke: var(--line-3);
  stroke-width: 1.2;
}

.gateway_candle__c2i8i[data-state="passed"] rect {
  fill: var(--text);
  stroke: var(--text);
}

.gateway_candle__c2i8i[data-state="passed"][data-up="false"] rect {
  fill: var(--bg);
  stroke: var(--text);
}

.gateway_candle__c2i8i[data-state="passed"] line {
  stroke: var(--text-2);
}

.gateway_candle__c2i8i[data-state="current"] rect {
  stroke: var(--green-ink);
  stroke-width: 1.8;
  fill: var(--green-soft);
}

.gateway_candle__c2i8i[data-state="locked"] rect {
  stroke-dasharray: 3 3;
  stroke: var(--line-2);
}

.gateway_candle__c2i8i[data-state="locked"] line {
  stroke: var(--line-2);
}

.gateway_candleNo__kX2Wb {
  font-size: 12px;
  fill: var(--text-4);
}

.gateway_candle__c2i8i[data-state="current"] .gateway_candleNo__kX2Wb,
.gateway_swing__hgSGr[data-state="current"] .gateway_candleNo__kX2Wb {
  fill: var(--text);
}

.gateway_root___6Od0[data-motion="on"][data-ready="true"] .gateway_candle__c2i8i {
  animation: gateway_candleGrow__P0pLp 900ms var(--ease-out) calc(280ms + var(--i) * 90ms) both;
}

@keyframes gateway_candleGrow__P0pLp {
  from {
    opacity: 0;
    transform: scaleY(0.2);
  }
  60% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.gateway_zone__nbKHi {
  fill: var(--line);
}

.gateway_level__6XBmd {
  stroke: var(--text-3);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.gateway_tag__ItpG5 {
  font-size: 13px;
  fill: var(--text-3);
}

.gateway_structure__hUAWV {
  fill: none;
  stroke: var(--text);
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-dasharray: var(--len) var(--len);
  stroke-dashoffset: 0;
}

.gateway_root___6Od0[data-motion="on"][data-ready="true"] .gateway_structure__hUAWV {
  animation: gateway_drawLen__IQx3O 1600ms var(--ease-out) 250ms both;
}

.gateway_root___6Od0[data-motion="on"][data-ready="true"] .gateway_level__6XBmd,
.gateway_root___6Od0[data-motion="on"][data-ready="true"] .gateway_zone__nbKHi,
.gateway_root___6Od0[data-motion="on"][data-ready="true"] .gateway_tag__ItpG5 {
  animation: gateway_fadeIn___YNXy 900ms var(--ease) 1500ms both;
}

.gateway_root___6Od0[data-motion="on"][data-ready="true"] .gateway_level__6XBmd[data-k="2"],
.gateway_root___6Od0[data-motion="on"][data-ready="true"] .gateway_tag__ItpG5[data-k="2"] {
  animation-delay: 1750ms;
}

@keyframes gateway_drawLen__IQx3O {
  from {
    stroke-dashoffset: var(--len);
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes gateway_fadeIn___YNXy {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.gateway_swing__hgSGr circle {
  fill: var(--bg);
  stroke: var(--line-3);
  stroke-width: 1.3;
}

.gateway_swing__hgSGr line {
  stroke: var(--line-3);
}

.gateway_swing__hgSGr[data-state="passed"] circle {
  fill: var(--text);
  stroke: var(--text);
}

.gateway_swing__hgSGr[data-state="passed"] line {
  stroke: var(--text);
}

.gateway_swing__hgSGr[data-state="current"] circle {
  fill: var(--green);
  stroke: var(--green-ink);
  r: 5.5;
}

.gateway_swing__hgSGr[data-state="locked"] circle {
  stroke-dasharray: 2 2;
}

.gateway_root___6Od0[data-motion="on"][data-ready="true"] .gateway_swing__hgSGr {
  animation: gateway_fadeIn___YNXy 600ms var(--ease) calc(400ms + var(--i) * 110ms) both;
}

/* coordinate strip */

.gateway_coords__8FdGE {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
}

.gateway_coord__QLGq1 {
  padding-block: 20px 4px;
  padding-inline-end: 24px;
}

.gateway_coord__QLGq1 + .gateway_coord__QLGq1 {
  padding-inline-start: 24px;
  border-inline-start: 1px solid var(--line);
}

.gateway_coord__QLGq1 dt {
  font-size: 13px;
  color: var(--text-3);
  margin-block-end: 8px;
}

.gateway_coord__QLGq1 dd {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(18px, 1.4vw, 24px);
  font-weight: 500;
}

.gateway_coordBar__3AUb9 {
  position: relative;
  flex: 1;
  max-width: 140px;
  height: 2px;
  background: var(--line-2);
  overflow: hidden;
}

.gateway_coordBar__3AUb9 span {
  position: absolute;
  inset: 0;
  background: var(--text);
  transform-origin: right center;
  transition: transform 900ms var(--ease-out);
}

.gateway_statusDot__BT2Pb {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-3);
}

.gateway_coord__QLGq1 dd[data-status="in-progress"] .gateway_statusDot__BT2Pb {
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.gateway_coord__QLGq1 dd[data-status="completed"] .gateway_statusDot__BT2Pb {
  background: var(--text);
}

.gateway_coord__QLGq1 dd[data-status="locked"] {
  color: var(--text-3);
}

/* ==========================================================================
   02 · Current position
   ========================================================================== */

.gateway_position__DlVwk {
  padding-block: clamp(64px, 6vw, 112px);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.gateway_positionSheet__bs9_9 {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 80px);
  align-items: start;
  padding: clamp(28px, 3.6vw, 64px);
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.gateway_positionNumeral__Ls9Yg {
  font-size: clamp(120px, 13vw, 240px);
  font-weight: 700;
  line-height: 0.9;
  color: var(--text);
  letter-spacing: 0;
}

.gateway_positionSheet__bs9_9[data-locked="true"] .gateway_positionNumeral__Ls9Yg {
  color: var(--text-4);
}

.gateway_positionLock__Xdgqn {
  width: clamp(64px, 6vw, 110px);
  height: auto;
}

.gateway_positionKicker__7pu2g {
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: var(--text-3);
  margin-block-end: 12px;
}

.gateway_positionTitle__PhF1k {
  font-size: clamp(30px, 2.8vw, 52px);
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}

.gateway_positionSub__I4dWZ {
  margin-block-start: 14px;
  font-size: 17px;
  line-height: 1.9;
  color: var(--text-2);
  max-width: 56ch;
}

.gateway_facts__k_cwa {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-block-start: clamp(28px, 3vw, 44px);
  border-top: 1px solid var(--line);
}

.gateway_facts__k_cwa > div {
  padding-block: 18px;
  padding-inline-end: 20px;
  border-bottom: 1px solid var(--line);
}

.gateway_facts__k_cwa dt {
  font-size: 13px;
  color: var(--text-3);
  margin-block-end: 8px;
}

.gateway_facts__k_cwa dd {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.gateway_factSub__WSrXm {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-3);
}

.gateway_factBar__SNRTz {
  position: relative;
  width: 80px;
  height: 2px;
  background: var(--line-2);
  overflow: hidden;
  align-self: center;
}

.gateway_factBar__SNRTz span {
  position: absolute;
  inset: 0;
  background: var(--text);
  transform-origin: right center;
}

.gateway_positionCta__m8p4v {
  margin-block-start: clamp(28px, 3vw, 40px);
}

/* ==========================================================================
   03 · Chapter path (signature)
   ========================================================================== */

.gateway_path__RP9o3 {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
}

.gateway_legend__QGt0V {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13px;
  color: var(--text-3);
}

.gateway_legend__QGt0V li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gateway_legend__QGt0V li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  border: 1px solid var(--line-3);
}

.gateway_legend__QGt0V li[data-state="passed"]::before {
  background: var(--text);
  border-color: var(--text);
}

.gateway_legend__QGt0V li[data-state="current"]::before {
  background: var(--green-soft);
  border-color: var(--green-ink);
}

.gateway_legend__QGt0V li[data-state="locked"]::before {
  border-style: dashed;
  border-color: var(--line-2);
}

.gateway_rail__XR6L_ {
  position: relative;
  --node: 44px;
}

.gateway_railTrack__hb_tj {
  position: absolute;
  inset-inline: calc(50% / var(--n));
  top: calc(var(--node) / 2);
  height: 1px;
  background: var(--line-2);
}

.gateway_railFill__MqrHg {
  position: absolute;
  inset: 0;
  background: var(--text);
  transform-origin: right center;
  transform: scaleX(min(var(--progress, 1), var(--reach)));
  transition: transform 300ms linear;
}

.gateway_railList__FZVYU {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 0 8px;
}

.gateway_railItem__o_L_n {
  position: relative;
  min-width: 0;
}

.gateway_railNode__NIi_x {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding-block-end: 18px;
  text-align: center;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: border-color 300ms var(--ease);
}

.gateway_railItem__o_L_n[data-selected="true"] .gateway_railNode__NIi_x {
  border-bottom-color: var(--text);
}

.gateway_railMark__TSkE4 {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  border-radius: 50%;
  background: var(--bg);
}

.gateway_nodeGlyph__236KL {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--line-3);
  stroke-width: 1.3;
  transition: fill 300ms var(--ease), stroke 300ms var(--ease);
}

.gateway_railItem__o_L_n[data-state="passed"] .gateway_nodeGlyph__236KL {
  fill: var(--text);
  stroke: var(--text);
}

.gateway_railItem__o_L_n[data-state="current"] .gateway_nodeGlyph__236KL {
  fill: var(--green-soft);
  stroke: var(--green-ink);
  stroke-width: 1.6;
}

.gateway_railItem__o_L_n[data-state="open"] .gateway_nodeGlyph__236KL {
  stroke: var(--text-2);
}

.gateway_railItem__o_L_n[data-state="locked"] .gateway_nodeGlyph__236KL {
  stroke-dasharray: 2 2;
  stroke: var(--line-3);
}

.gateway_railCheck__VkmxD {
  position: absolute;
  inset-block-end: 2px;
  inset-inline-start: 2px;
  width: 12px;
  height: 12px;
  color: var(--text);
  background: var(--bg);
  border-radius: 50%;
}

.gateway_railNo__TN0bq {
  font-size: 13px;
  color: var(--text-4);
}

.gateway_railTitle__CJgSK {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.8em;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-2);
  transition: color 300ms var(--ease);
}

.gateway_railItem__o_L_n[data-state="current"] .gateway_railTitle__CJgSK,
.gateway_railItem__o_L_n[data-selected="true"] .gateway_railTitle__CJgSK {
  color: var(--text);
}

.gateway_railItem__o_L_n[data-state="locked"] .gateway_railTitle__CJgSK {
  color: var(--text-4);
}

.gateway_railState__KDGge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-3);
}

.gateway_railItem__o_L_n[data-state="current"] .gateway_railState__KDGge {
  color: var(--green-ink);
  font-weight: 500;
}

.gateway_railItem__o_L_n[data-state="locked"] .gateway_railState__KDGge {
  color: var(--text-4);
}

.gateway_root___6Od0[data-motion="on"] .gateway_rail__XR6L_:not([data-revealed]) .gateway_railItem__o_L_n {
  opacity: 1;
}

.gateway_root___6Od0[data-motion="on"] .gateway_railItem__o_L_n {
  opacity: clamp(0.35, calc((var(--progress, 1) * 1.6 - var(--at) * 0.9) * 3 + 0.35), 1);
  transition: opacity 400ms var(--ease);
}

.gateway_railInlineDetail__yrYXr {
  display: none;
}

.gateway_detailPanel__X1DzW {
  margin-block-start: clamp(28px, 3vw, 44px);
  animation: gateway_panelIn__ID31x 600ms var(--ease-out) both;
}

@keyframes gateway_panelIn__ID31x {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.gateway_detail__QTCJX {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "kicker foot"
    "title foot"
    "desc foot";
  gap: 8px 48px;
  align-items: start;
  padding-block: 28px;
  border-block: 1px solid var(--line-2);
}

.gateway_detailKicker__0Uj_Y {
  grid-area: kicker;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-3);
}

.gateway_detailState__RolVp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gateway_detailState__RolVp[data-state="current"] {
  color: var(--green-ink);
  font-weight: 500;
}

.gateway_detailState__RolVp[data-state="passed"] {
  color: var(--text);
}

.gateway_detailDot__hO8x6 {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.gateway_detailTitle__5fOmO {
  grid-area: title;
  font-size: clamp(22px, 1.9vw, 32px);
  font-weight: 700;
  line-height: 1.35;
}

.gateway_detailDesc__5eI7Y {
  grid-area: desc;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-2);
  max-width: 70ch;
}

.gateway_detailFoot__V02RH {
  grid-area: foot;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.gateway_detailMeta__GAL4y {
  font-size: 14px;
  color: var(--text-3);
  max-width: 30ch;
  line-height: 1.7;
}

/* ==========================================================================
   04 · What this stage builds
   ========================================================================== */

.gateway_builds__utQ_u {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}

.gateway_groups__pVOtK {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-2);
}

.gateway_group__rilZb {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-block: 28px 8px;
  padding-inline-end: 28px;
}

.gateway_group__rilZb + .gateway_group__rilZb {
  padding-inline-start: 28px;
  border-inline-start: 1px solid var(--line);
}

.gateway_group__rilZb[data-current="true"]::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline: 0;
  height: 2px;
  background: var(--text);
}

.gateway_groupRange__EmCdw {
  font-size: 13px;
  color: var(--text-3);
}

.gateway_groupTitle__XovYD {
  font-size: clamp(19px, 1.5vw, 26px);
  font-weight: 700;
  line-height: 1.4;
}

.gateway_groupTopics__jZNmj {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-block-start: 6px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-2);
}

.gateway_groupTopics__jZNmj li {
  position: relative;
  padding-inline-start: 16px;
}

.gateway_groupTopics__jZNmj li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.85em;
  width: 6px;
  height: 1px;
  background: var(--text-3);
}

.gateway_groupDone__7mrLt {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block-start: auto;
  padding-block-start: 18px;
  font-size: 13px;
  color: var(--text-3);
}

.gateway_groupBar__KtuDu {
  position: relative;
  width: 64px;
  height: 2px;
  background: var(--line-2);
  overflow: hidden;
}

.gateway_groupBar__KtuDu span {
  position: absolute;
  inset: 0;
  background: var(--text);
  transform-origin: right center;
}

/* ==========================================================================
   05 · Next gate
   ========================================================================== */

.gateway_gate__yZMrM {
  padding-block: var(--section);
  border-top: 1px solid var(--line);
}

.gateway_gateGrid__l_oNX {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 120px);
  align-items: center;
}

.gateway_gateText__gu2bd .gateway_lead__VN7DE {
  margin-block-start: 26px;
}

.gateway_gateAction__cNEi8 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-block-start: 30px;
}

.gateway_gateMeta__mZ7Iq {
  font-size: 15px;
  color: var(--text-2);
}

.gateway_gateEligible__O_IKg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
}

.gateway_gateEligible__O_IKg::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.gateway_threshold__1cYcF {
  display: flex;
  align-items: flex-end;
  padding-block-end: 0;
  gap: clamp(20px, 2.4vw, 40px);
}

.gateway_thresholdSegs__1xZDh {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 6px;
  padding-block-end: 0;
  margin-block-end: -1px;
}

.gateway_thresholdSegs__1xZDh li {
  position: relative;
  height: 8px;
  border-radius: 2px;
  background: var(--line-2);
  overflow: hidden;
}

.gateway_thresholdSegs__1xZDh li::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--text);
  transform-origin: right center;
  transform: scaleX(0);
  transition: transform 700ms var(--ease-out) calc(var(--i) * 70ms);
}

.gateway_thresholdSegs__1xZDh li[data-passed="true"]::after {
  transform: scaleX(clamp(0, calc(var(--progress, 1) * 3 - 0.2), 1));
}

.gateway_portal__2YXp7 {
  position: relative;
  flex: none;
  width: clamp(170px, 14vw, 230px);
}

.gateway_portalSvg__B3e3J {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.gateway_portalArch__7Gd0q {
  fill: none;
  stroke: var(--line-3);
  stroke-width: 2;
  stroke-dasharray: 6 6;
}

.gateway_portalInner__Wp3bK {
  fill: var(--line);
  stroke: var(--line-2);
  stroke-width: 1;
}

.gateway_portalFloor__o7JJD {
  stroke: var(--line-3);
  stroke-width: 1;
}

.gateway_portalLock__Iy9TT {
  fill: none;
  stroke: var(--text-3);
  stroke-width: 1.6;
}

.gateway_portalSignal__zWbKn {
  fill: var(--green);
  stroke: var(--green-soft);
  stroke-width: 8;
}

.gateway_threshold__1cYcF[data-open="true"] .gateway_portalArch__7Gd0q {
  stroke: var(--text);
  stroke-dasharray: none;
}

.gateway_threshold__1cYcF[data-open="true"] .gateway_portalInner__Wp3bK {
  fill: var(--surface);
  stroke: var(--line-3);
}

.gateway_portalName__KT7nW {
  position: absolute;
  inset-inline: 0;
  bottom: 28px;
  padding-inline: 44px;
  text-align: center;
  font-size: clamp(15px, 1.15vw, 19px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-3);
}

.gateway_threshold__1cYcF[data-open="true"] .gateway_portalName__KT7nW {
  color: var(--text);
}

/* ==========================================================================
   Notes (legacy feature, quiet)
   ========================================================================== */

.gateway_notes__aJtSR {
  padding-block: 0 clamp(64px, 6vw, 112px);
}

.gateway_notesBox__xZT24 {
  border-block: 1px solid var(--line);
}

.gateway_notesBox__xZT24 summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 22px;
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 500;
}

.gateway_notesBox__xZT24 summary::-webkit-details-marker {
  display: none;
}

.gateway_notesBox__xZT24 summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--text-3);
}

.gateway_notesBox__xZT24[open] summary::after {
  content: "−";
}

.gateway_notesMeta__DOUmb {
  margin-inline-start: auto;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-3);
}

.gateway_notesArea__sM6i9 {
  display: block;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  line-height: 1.8;
  resize: vertical;
}

.gateway_notesActions__Qa4bx {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 16px 24px;
  font-size: 14px;
}

.gateway_notesSave__xFmnn {
  height: 40px;
  padding-inline: 18px;
  border-radius: 10px;
  background: var(--text) !important;
  color: var(--bg) !important;
  font-weight: 500;
}

.gateway_notesClear__DVBS8 {
  color: var(--text-3);
  border-bottom: 1px solid var(--line-2) !important;
}

.gateway_notesSaved__cDMqB {
  color: var(--text-2);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1280px) {
  .gateway_groups__pVOtK {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gateway_group__rilZb:nth-child(3) {
    padding-inline-start: 0;
    border-inline-start: 0;
  }

  .gateway_group__rilZb:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .gateway_railTitle__CJgSK {
    font-size: 13.5px;
  }
}

@media (max-width: 1100px) {
  .gateway_sectionHead__L7Glm {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .gateway_sectionHead__L7Glm > :last-child {
    justify-self: start;
  }

  .gateway_identityGrid__aSG9d,
  .gateway_gateGrid__l_oNX {
    grid-template-columns: 1fr;
  }

  .gateway_identity__24zzl {
    min-height: 0;
  }

  .gateway_visual__MRmEc {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
    padding-inline-start: 0;
    padding-block-start: 32px;
    min-height: 0;
  }
}

/* Chapter path: vertical below 980px */
@media (max-width: 980px) {
  .gateway_rail__XR6L_ {
    --node: 40px;
  }

  .gateway_railTrack__hb_tj {
    inset-inline: auto;
    inset-inline-start: calc(var(--node) / 2);
    top: calc(var(--node) / 2);
    bottom: calc(var(--node) / 2);
    width: 1px;
    height: auto;
  }

  .gateway_railFill__MqrHg {
    transform-origin: top center;
    transform: scaleY(min(var(--progress, 1), var(--reach)));
  }

  .gateway_railList__FZVYU {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .gateway_railNode__NIi_x {
    display: grid;
    grid-template-columns: var(--node) 32px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 12px;
    padding-block: 10px;
    text-align: start;
    border-bottom: 0;
  }

  .gateway_railMark__TSkE4 {
    grid-row: span 2;
  }

  .gateway_railNo__TN0bq {
    grid-row: span 2;
  }

  .gateway_railTitle__CJgSK {
    min-height: 0;
    -webkit-line-clamp: 2;
    font-size: 15px;
  }

  .gateway_railState__KDGge {
    grid-column: 3;
  }

  .gateway_railItem__o_L_n[data-selected="true"] .gateway_railNode__NIi_x {
    border-bottom: 0;
  }

  .gateway_railInlineDetail__yrYXr {
    display: block;
    padding-inline-start: calc(var(--node) + 12px);
    padding-block-end: 12px;
  }

  .gateway_detailPanel__X1DzW {
    display: none;
  }

  .gateway_detail__QTCJX {
    grid-template-columns: 1fr;
    grid-template-areas:
      "kicker"
      "title"
      "desc"
      "foot";
    padding-block: 18px;
  }

  .gateway_detailTitle__5fOmO {
    font-size: 20px;
  }

  .gateway_detailDesc__5eI7Y {
    font-size: 15px;
  }
}

@media (max-width: 760px) {
  .gateway_coords__8FdGE {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gateway_coord__QLGq1:nth-child(3) {
    padding-inline-start: 0;
    border-inline-start: 0;
  }

  .gateway_coord__QLGq1:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .gateway_positionSheet__bs9_9 {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 20px;
  }

  .gateway_positionNumeral__Ls9Yg {
    font-size: 96px;
  }

  .gateway_groups__pVOtK {
    grid-template-columns: 1fr;
  }

  .gateway_group__rilZb + .gateway_group__rilZb {
    padding-inline-start: 0;
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .gateway_group__rilZb:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .gateway_threshold__1cYcF {
    flex-direction: column;
    align-items: stretch;
  }

  .gateway_portal__2YXp7 {
    align-self: center;
    width: 170px;
  }

  .gateway_thresholdSegs__1xZDh li {
    height: 28px;
  }

  .gateway_visualIndex__S5Rot {
    font-size: 64px;
  }

  .gateway_legend__QGt0V {
    gap: 6px 14px;
  }
}

@media (max-width: 420px) {
  .gateway_title__s5HVg {
    font-size: 38px;
  }

  .gateway_h2__4knjj {
    font-size: 30px;
  }
}

/* ==========================================================================
   Reduced motion: every value at its final, readable state.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .gateway_root___6Od0 *,
  .gateway_root___6Od0 *::before,
  .gateway_root___6Od0 *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }

  .gateway_root___6Od0 [data-progress] {
    --progress: 1 !important;
  }
}

