/* ==========================================================================
   Bilsan — Platform pages
   platforms.index (overview) and platforms.show (profile)

   Builds on site.css tokens and components. All page classes use the `pf-`
   prefix. Platform colours come from the nearest [data-accent] scope:
   --pc (fills, borders) · --pc-ink (text/icons) · --pc-tint (soft background).
   Logical properties only, so every layout mirrors in RTL.
   ========================================================================== */

/* ------------------------------------------------------ 1. Index: jump nav */
.pf-list-section { padding-top: clamp(2.5rem, 5vw, 4rem); }

.pf-jump {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .75rem 1.25rem;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}
.pf-jump__label { margin: 0; flex-shrink: 0; }
.pf-jump__list {
  display: flex;
  flex: 1 1 auto;
  gap: .55rem;
  min-width: 0;
  margin: 0;
  padding: .2rem 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.pf-jump__list::-webkit-scrollbar { display: none; }
.pf-jump__link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding-block: .38rem;
  padding-inline: .4rem 1rem;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  background: var(--c-surface);
  color: var(--c-ink);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.pf-jump__link:hover { color: var(--c-ink); border-color: var(--pc); box-shadow: var(--shadow-1); }
.pf-jump__icon { width: 28px; height: 28px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: var(--pc-tint); color: var(--pc-ink); }
.pf-jump__cat { font-size: .8rem; font-weight: 600; color: var(--c-muted); }
@media (max-width: 1199.98px) { .pf-jump__cat { display: none; } }
@media (max-width: 767.98px) {
  .pf-jump { flex-direction: column; align-items: stretch; gap: .6rem; }
  .pf-jump__list { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
}

/* ------------------------------------------------ 2. Index: platform rows */
.pf-rows { display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); }

.pf-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  scroll-margin-top: calc(var(--header-h) + 1.25rem);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.pf-row::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 2;
  height: 3px;
  background: var(--pc);
}
.pf-row:hover { border-color: var(--c-line-strong); box-shadow: var(--shadow-2); }
@media (min-width: 992px) {
  .pf-row { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); }
}

.pf-row__main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
}
.pf-row__main > :not(.pf-row__watermark) { position: relative; }
.pf-row__watermark {
  position: absolute;
  inset-block-end: -5rem;
  inset-inline-end: -4rem;
  color: var(--pc-ink);
  opacity: .05;
  pointer-events: none;
}
@media (max-width: 575.98px) { .pf-row__watermark { width: 200px; height: 200px; inset-block-end: -3rem; inset-inline-end: -3rem; } }

.pf-row__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.pf-row__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--radius-md); background: var(--pc-tint); color: var(--pc-ink); }
.pf-row__index { font-size: .8rem; font-weight: 800; letter-spacing: .08em; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.pf-row__category {
  margin: 0 0 .35rem;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pc-ink);
}
.pf-row__name { margin: 0 0 .55rem; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); line-height: 1.1; }
:root[dir="rtl"] .pf-row__name { line-height: 1.35; }
.pf-row__name a { color: var(--c-ink); }
.pf-row__name a:hover { color: var(--pc-ink); }
.pf-row__tagline { margin-bottom: .9rem; max-width: 52ch; font-size: 1.08rem; font-weight: 700; line-height: 1.55; color: var(--c-ink-2); text-wrap: balance; }
.pf-row__text { margin-bottom: 1.6rem; max-width: 62ch; line-height: 1.8; }
.pf-row__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.1rem; margin-top: auto; }
.pf-row__extra { font-size: .9rem; color: var(--c-text); }
.pf-row__meta { display: inline-flex; align-items: center; gap: .45rem; margin: 1.25rem 0 0; font-size: .85rem; font-weight: 600; color: var(--c-muted); }

.pf-row__aside {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 1.5rem;
  min-width: 0;
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  border-top: 1px solid var(--c-line);
  background: var(--c-bg-alt);
}
@media (min-width: 992px) {
  .pf-row__aside { border-top: 0; border-inline-start: 1px solid var(--c-line); }
}
.pf-row__block + .pf-row__block { padding-top: 1.5rem; border-top: 1px solid var(--c-line); }
.pf-row__sub,
.pf-glance__sub,
.pf-stage__sub {
  margin: 0 0 .8rem;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.pf-row__highlights li { font-size: .92rem; }
.pf-row .chain--sm .chain__step { background: var(--c-surface); border-color: var(--c-line); }
.pf-row__audience .chip { background: var(--c-surface); font-weight: 600; }

/* ------------------------------------------------- 3. Index: portfolio */
.pf-cluster {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.6rem 1.5rem 1.7rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
}
.pf-cluster__top { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.1rem; }
.pf-cluster__icon { width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0; border-radius: var(--radius-md); background: var(--c-brand-soft); color: var(--c-brand-text); }
.pf-cluster__layer { color: var(--c-brand-text); }
.pf-cluster__title { margin-bottom: .9rem; font-size: 1.15rem; line-height: 1.4; }
.pf-cluster__members { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.pf-member {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .28rem .75rem;
  border-radius: 999px;
  background: var(--pc-tint);
  color: var(--pc-ink);
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.4;
  transition: box-shadow .2s ease;
}
.pf-member:hover { color: var(--pc-ink); box-shadow: inset 0 0 0 1px var(--pc); }
.pf-cluster__members-text { margin-bottom: 1rem; font-size: .9rem; font-weight: 700; color: var(--c-ink-2); }
.pf-cluster__text { margin: 0; font-size: .93rem; line-height: 1.8; }

.pf-investor {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--c-band);
  color: var(--c-on-band-muted);
}
.pf-investor::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(38rem 20rem at 100% 0%, rgba(var(--brand-rgb), .3), transparent 70%);
}
:root[dir="rtl"] .pf-investor::before { background: radial-gradient(38rem 20rem at 0% 0%, rgba(var(--brand-rgb), .3), transparent 70%); }
.pf-investor__head { display: flex; align-items: flex-start; gap: 1rem; max-width: 780px; margin-bottom: 1.75rem; }
.pf-investor__icon { width: 48px; height: 48px; display: grid; place-items: center; flex-shrink: 0; border-radius: var(--radius-md); background: rgba(255, 255, 255, .08); color: var(--c-band-accent); }
.pf-investor__kicker { margin: 0 0 .35rem; font-size: var(--fs-xs); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--c-band-accent); }
.pf-investor__title { margin: 0; font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem); color: var(--c-on-band); text-wrap: balance; }
.pf-investor__points { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 992px) { .pf-investor__points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; } }
.pf-investor__point { padding-top: 1rem; border-top: 1px solid var(--c-band-line); }
.pf-investor__n { display: block; margin-bottom: .5rem; font-size: .8rem; font-weight: 800; color: var(--c-band-accent); font-variant-numeric: tabular-nums; }
.pf-investor__point p { margin: 0; font-size: .95rem; line-height: 1.8; color: var(--c-on-band-muted); }
.pf-investor__actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 2rem; }
.pf-investor :is(a, button):focus-visible { outline-color: #FFFFFF; }

/* --------------------------------------------------------- 4. Show: hero */
.pf-hero { padding-bottom: clamp(2.5rem, 5vw, 4.25rem); }
.pf-hero__watermark {
  position: absolute;
  inset-block-start: -4.5rem;
  inset-inline-end: -5rem;
  color: var(--pc-ink);
  opacity: .05;
  pointer-events: none;
}
@media (max-width: 767.98px) { .pf-hero__watermark { width: 240px; height: 240px; inset-block-start: -2rem; inset-inline-end: -4rem; } }

.pf-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 3.5rem; align-items: start; }
@media (min-width: 992px) { .pf-hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.pf-hero__main { min-width: 0; }
.pf-hero__identity { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.2rem; }
.pf-hero__icon {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  background: var(--pc);
  color: #FFFFFF;
  box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--pc) 80%, transparent);
}
.pf-hero__names { min-width: 0; }
.pf-hero__title { margin: 0; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); line-height: 1.05; }
:root[dir="rtl"] .pf-hero__title { line-height: 1.3; }
.pf-hero__category {
  margin: .35rem 0 0;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pc-ink);
}
.pf-hero__tagline { margin-bottom: .9rem; max-width: 42ch; font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); font-weight: 700; line-height: 1.5; color: var(--c-ink-2); text-wrap: balance; }
.pf-hero__lead { margin: 0; max-width: 62ch; font-size: var(--fs-lead); line-height: 1.8; color: var(--c-text); }
.pf-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
@media (max-width: 575.98px) {
  .pf-hero__icon { width: 56px; height: 56px; }
  .pf-hero__actions .btn { flex: 1 1 100%; }
}

.pf-glance {
  position: relative;
  overflow: hidden;
  padding: clamp(1.35rem, 2.5vw, 1.9rem);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow-2);
}
.pf-glance::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; height: 3px; background: var(--pc); }
.pf-glance__title { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.25rem; font-size: 1.05rem; }
.pf-glance__title::before { content: ""; width: 8px; height: 8px; flex-shrink: 0; border-radius: 2px; background: var(--pc); }
.pf-glance__block + .pf-glance__block { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--c-line); }
.pf-glance__highlights li { font-size: .92rem; }
.pf-glance__audience { gap: .35rem; }

/* ------------------------------------------------- 5. Show: market stage */
.pf-stage-section { padding-block: clamp(2.5rem, 5vw, 4rem) 0; }
.pf-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background: var(--c-surface);
}
.pf-stage::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; z-index: 1; width: 4px; background: var(--pc); }
.pf-stage__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: clamp(1.35rem, 3vw, 2rem) clamp(1.35rem, 3vw, 2.25rem);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg-alt);
}
.pf-stage__heading .kicker { margin-bottom: .45rem; color: var(--pc-ink); }
.pf-stage__title { margin: 0; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.9rem); }
.pf-stage__badge { margin-bottom: .2rem; }

.pf-stage__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem 3rem; padding: clamp(1.35rem, 3vw, 2.25rem); }
@media (min-width: 992px) { .pf-stage__grid--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.pf-stage__card-title { margin-bottom: .9rem; font-size: 1.15rem; line-height: 1.45; }
.pf-stage__points li { font-size: .95rem; }
.pf-stage__points li:last-child { margin-bottom: 0; }
.pf-stage__path { min-width: 0; container-type: inline-size; }

/* Engagement path: neutral numbered steps (no step is marked complete). */
.pf-stepper { display: grid; margin: 0; padding: 0; list-style: none; }
.pf-stepper__step { position: relative; display: flex; align-items: flex-start; gap: .9rem; padding-bottom: 1.15rem; }
.pf-stepper__step:last-child { padding-bottom: 0; }
.pf-stepper__step:not(:last-child)::after {
  content: "";
  position: absolute;
  inset-inline-start: calc(1rem - 1px);
  top: 2.25rem;
  bottom: .2rem;
  width: 2px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--pc) 32%, transparent);
}
.pf-stepper__marker {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 2px solid var(--pc);
  border-radius: 50%;
  background: var(--c-surface);
  color: var(--pc-ink);
  font-size: .82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.pf-stepper__label { padding-top: .22rem; font-weight: 700; line-height: 1.5; color: var(--c-ink-2); }
@container (min-width: 480px) {
  .pf-stepper { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .pf-stepper__step { flex-direction: column; gap: .75rem; padding-bottom: 0; padding-inline-end: 1rem; }
  .pf-stepper__step:not(:last-child)::after {
    top: calc(1rem - 1px);
    bottom: auto;
    inset-inline-start: 2.6rem;
    inset-inline-end: .6rem;
    width: auto;
    height: 2px;
  }
  .pf-stepper__label { padding-top: 0; font-size: .95rem; }
}

.pf-stage__detail { padding: clamp(1.35rem, 3vw, 2.25rem); border-top: 1px solid var(--c-line); }
.pf-stage__detail > * + * { margin-top: 1.25rem; }
.pf-stage__detail-title { margin-bottom: 0; font-size: 1.2rem; line-height: 1.45; }
.pf-stage__detail > .pf-stage__status { margin-top: .6rem; }
.pf-stage__status { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .65rem; margin: 0; font-size: .92rem; font-weight: 700; color: var(--pc-ink); }
.pf-stage__status-label { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c-muted); }
.pf-stage__foot { padding: 1rem clamp(1.35rem, 3vw, 2.25rem) 1.35rem; border-top: 1px solid var(--c-line); }
.pf-stage__foot .link-arrow { color: var(--pc-ink); }
.pf-stage__foot .link-arrow:hover { color: var(--c-ink); }

/* ---------------------------------------------- 6. Show: profile layout */
.pf-profile { padding-top: clamp(2.75rem, 5vw, 4.25rem); }
.pf-profile.section--rule { border-top-color: var(--c-line); }
.pf-layout { display: block; }
.pf-main { min-width: 0; container: pfmain / inline-size; }
@media (min-width: 992px) {
  .pf-layout { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: clamp(2.5rem, 4vw, 4.5rem); }
}
@media (min-width: 1200px) {
  .pf-layout { grid-template-columns: 17rem minmax(0, 1fr); }
}

/* ------------------------------------------------ 7. Show: contents rail */
.pf-toc__head { margin-bottom: .5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--c-line); }
.pf-toc__platform { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: .7rem; font-size: .95rem; font-weight: 800; line-height: 1.3; color: var(--c-ink); }
.pf-toc__platform-icon { width: 26px; height: 26px; display: grid; place-items: center; flex-shrink: 0; border-radius: var(--radius-sm); background: var(--pc-tint); color: var(--pc-ink); }
.pf-toc__title { margin: 0 0 .7rem; }
.pf-toc__progress { height: 3px; overflow: hidden; border-radius: 3px; background: var(--c-line); }
.pf-toc:not(.is-enhanced) .pf-toc__progress { display: none; }
.pf-toc__progress-bar { display: block; height: 100%; background: var(--pc); transform: scaleX(0); transform-origin: left center; transition: transform .12s linear; }
:root[dir="rtl"] .pf-toc__progress-bar { transform-origin: right center; }

.pf-toc__list { position: relative; margin: 0; padding: .25rem 0; list-style: none; }
.pf-toc__link {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  padding: .42rem .75rem;
  border-inline-start: 2px solid transparent;
  border-start-end-radius: var(--radius-sm);
  border-end-end-radius: var(--radius-sm);
  color: var(--c-text);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.45;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.pf-toc__link:hover { background: var(--c-bg-alt); color: var(--c-ink); }
.pf-toc__link:focus-visible { outline-offset: -2px; }
.pf-toc__link[aria-current="true"] { border-inline-start-color: var(--pc); background: var(--pc-tint); color: var(--pc-ink); font-weight: 700; }
.pf-toc__n { flex-shrink: 0; font-size: .72rem; font-weight: 800; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.pf-toc__link[aria-current="true"] .pf-toc__n { color: var(--pc-ink); }

.pf-toc__tools { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; margin-top: .5rem; padding-top: .75rem; border-top: 1px solid var(--c-line); }
.pf-toc__tool {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .75rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--c-muted);
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  text-align: start;
  cursor: pointer;
}
.pf-toc__tool:hover { background: var(--c-bg-alt); color: var(--c-ink); }

/* Desktop: sticky rail beside the sections; only the list scrolls. */
@media (min-width: 992px) {
  .pf-toc {
    position: sticky;
    top: calc(var(--header-h-condensed) + env(safe-area-inset-top) + 1.5rem);
    align-self: start;
  }
  .pf-toc__inner,
  .pf-toc__panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: calc(100vh - var(--header-h-condensed) - env(safe-area-inset-top) - 3rem);
  }
  @supports (height: 100dvh) {
    .pf-toc__inner,
    .pf-toc__panel { max-height: calc(100dvh - var(--header-h-condensed) - env(safe-area-inset-top) - 3rem); }
  }
  .pf-toc__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--c-line-strong) transparent; }
  .pf-toc__toggle { display: none !important; }
}

/* Mobile: without JS the list is shown in full; enhanced → sticky bar + panel. */
@media (max-width: 991.98px) {
  .pf-toc { margin-bottom: 2rem; }
  .pf-toc:not(.is-enhanced) .pf-toc__panel { padding: 1rem; border: 1px solid var(--c-line); border-radius: var(--radius-lg); background: var(--c-surface); }
  .pf-toc.is-enhanced {
    position: sticky;
    top: calc(var(--header-h-condensed) + env(safe-area-inset-top) + .5rem);
    z-index: 1020;
    margin-bottom: 1.75rem;
  }
  .pf-toc.is-enhanced .pf-toc__inner { position: relative; }
  .pf-toc__toggle {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    min-height: 48px;
    padding: .55rem .9rem;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--c-surface) 94%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    box-shadow: var(--shadow-2);
    color: var(--c-ink);
    font: inherit;
    text-align: start;
    cursor: pointer;
  }
  .pf-toc__toggle:focus-visible { outline-offset: 2px; }
  .pf-toc__toggle-label {
    flex-shrink: 0;
    padding-inline-end: .75rem;
    border-inline-end: 1px solid var(--c-line);
    font-size: var(--fs-xs);
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--pc-ink);
  }
  .pf-toc__toggle-current { display: flex; flex: 1 1 auto; align-items: baseline; gap: .5rem; min-width: 0; white-space: nowrap; }
  .pf-toc__toggle-current .pf-toc__n { color: var(--pc-ink); }
  .pf-toc__toggle-text { overflow: hidden; text-overflow: ellipsis; font-size: .92rem; font-weight: 700; }
  .pf-toc__chevron { flex-shrink: 0; color: var(--c-muted); transition: transform .25s var(--ease); }
  .pf-toc.is-open .pf-toc__chevron { transform: rotate(180deg); }

  .pf-toc.is-enhanced .pf-toc__panel {
    position: absolute;
    inset-inline: 0;
    top: calc(100% + .4rem);
    display: none;
    flex-direction: column;
    max-height: min(65vh, 30rem);
    padding: .5rem;
    border: 1px solid var(--c-line);
    border-radius: var(--radius-md);
    background: var(--c-surface);
    box-shadow: var(--shadow-3);
  }
  .pf-toc.is-enhanced.is-open .pf-toc__panel { display: flex; animation: pf-drop .2s var(--ease) both; }
  .pf-toc.is-enhanced .pf-toc__head { display: none; }
  .pf-toc.is-enhanced .pf-toc__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .pf-toc.is-enhanced .pf-toc__tools { flex-direction: row; flex-wrap: wrap; justify-content: space-between; margin-top: .25rem; padding-top: .4rem; }
  .pf-toc__link { padding-block: .55rem; }

  /* Anchor targets clear the sticky header and the contents bar. */
  .pf-sec { scroll-margin-top: 4.5rem; }
}
@keyframes pf-drop { from { opacity: 0; translate: 0 -6px; } }

/* ------------------------------------------------------ 8. Show: sections */
.pf-sec { padding-block: clamp(2.25rem, 4vw, 3.25rem); border-top: 1px solid var(--c-line); }
.pf-sec:first-child { padding-top: 0; border-top: 0; }
.pf-sec:last-child { padding-bottom: 0; }
.pf-sec__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.pf-sec__num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  min-width: 2.75rem;
  height: 2.75rem;
  padding-inline: .35rem;
  border-radius: var(--radius-md);
  background: var(--pc-tint);
  color: var(--pc-ink);
  font-size: .95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.pf-sec__title { margin: 0; font-size: clamp(1.4rem, 1.15rem + .95vw, 1.95rem); text-wrap: balance; }

.pf-note { margin: 0; }
.pf-sec .pf-sec__body > * + * { margin-top: 1.5rem; }

.pf-prose p { max-width: 75ch; margin-bottom: 1rem; line-height: 1.85; }
.pf-prose p:last-child { margin-bottom: 0; }
:root[dir="rtl"] .pf-prose p { line-height: 2; }
.pf-prose .pf-prose__lead { font-size: var(--fs-lead); line-height: 1.8; color: var(--c-ink-2); }

/* Grids follow the width of the profile column (container queries). */
.pf-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
@container pfmain (min-width: 540px) {
  .pf-grid--2,
  .pf-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container pfmain (min-width: 780px) {
  .pf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@supports not (container-type: inline-size) {
  @media (min-width: 768px) {
    .pf-grid--2,
    .pf-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
}

/* groups (default) */
.pf-group { height: 100%; padding: 1.25rem 1.3rem 1.3rem; border: 1px solid var(--c-line); border-radius: var(--radius-md); background: var(--c-surface); }
.pf-group__title { display: flex; align-items: center; gap: .55rem; margin-bottom: .85rem; font-size: 1rem; line-height: 1.4; }
.pf-group__title::before { content: ""; width: 8px; height: 8px; flex-shrink: 0; border-radius: 2px; background: var(--pc); }
.pf-group__text { margin-bottom: .75rem; font-size: .92rem; }
.pf-group__text:last-child { margin-bottom: 0; }
.pf-group__items li:last-child { margin-bottom: 0; }
.pf-groups--single .pf-group { border-color: transparent; background: var(--c-bg-alt); }

/* groups: module catalogue */
.pf-modules__stats { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0 0 1.25rem; }
.pf-modules__stat { display: flex; align-items: baseline; gap: .6rem; padding: .6rem 1rem; border: 1px solid var(--c-line); border-radius: var(--radius-md); background: var(--c-surface); }
.pf-modules__stat dd { order: -1; margin: 0; font-size: 1.6rem; font-weight: 800; line-height: 1; color: var(--pc-ink); font-variant-numeric: tabular-nums; }
.pf-modules__stat dt { font-size: .85rem; font-weight: 700; color: var(--c-muted); }
.pf-modules__grid { margin: 0; padding: 0; list-style: none; columns: 1; column-gap: 1rem; }
@container pfmain (min-width: 540px) { .pf-modules__grid { columns: 2; } }
@container pfmain (min-width: 820px) { .pf-modules__grid { columns: 3; } }
@supports not (container-type: inline-size) {
  @media (min-width: 768px) { .pf-modules__grid { columns: 2; } }
}
.pf-module {
  display: inline-block;
  width: 100%;
  margin-bottom: 1rem;
  padding: 1.05rem 1.1rem 1.15rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  background: var(--c-surface);
  vertical-align: top;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
}
.pf-module__title { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin: 0 0 .75rem; font-size: .98rem; line-height: 1.4; }
.pf-module__count {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  min-width: 1.75rem;
  height: 1.5rem;
  padding-inline: .45rem;
  border-radius: 999px;
  background: var(--pc-tint);
  color: var(--pc-ink);
  font-size: .75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.pf-module__text { margin-bottom: .65rem; font-size: .88rem; }
.pf-module__items { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.pf-module__item {
  padding: .18rem .6rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-xs);
  background: var(--c-bg-alt);
  color: var(--c-ink-2);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.5;
}

/* groups: roadmap phases */
.pf-roadmap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.pf-roadmap__phase {
  position: relative;
  padding: 1.2rem 1.3rem 1.3rem;
  padding-inline-start: 4rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  background: var(--c-surface);
}
.pf-roadmap__marker {
  position: absolute;
  top: 1.15rem;
  inset-inline-start: 1.1rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pc);
  color: #FFFFFF;
  font-size: .85rem;
  font-weight: 800;
}
.pf-roadmap__title { margin-bottom: .75rem; font-size: 1.05rem; line-height: 1.4; }
.pf-roadmap__text { margin-bottom: .75rem; font-size: .92rem; }
.pf-roadmap__items li:last-child { margin-bottom: 0; }
@container pfmain (min-width: 700px) {
  .pf-roadmap--2,
  .pf-roadmap--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-roadmap--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pf-roadmap__phase { padding-top: 4.1rem; padding-inline-start: 1.3rem; }
  .pf-roadmap__marker { top: 1.2rem; inset-inline-start: 1.3rem; }
  :is(.pf-roadmap--2, .pf-roadmap--3) .pf-roadmap__phase:not(:last-child)::after {
    content: "";
    position: absolute;
    top: calc(2.2rem - 1px);
    inset-inline-start: 3.7rem;
    inset-inline-end: calc(-1.25rem - 1px);
    height: 2px;
    background: color-mix(in srgb, var(--pc) 35%, transparent);
  }
}

/* cards */
.pf-card { position: relative; height: 100%; padding: 1.2rem 1.3rem 1.3rem; border: 1px solid var(--c-line); border-radius: var(--radius-md); background: var(--c-surface); transition: border-color .2s ease, box-shadow .2s ease; }
.pf-card:hover { border-color: var(--c-line-strong); box-shadow: var(--shadow-1); }
.pf-card__n { display: block; margin-bottom: .55rem; font-size: .75rem; font-weight: 800; color: var(--pc-ink); font-variant-numeric: tabular-nums; }
.pf-card__tag { margin-bottom: .6rem; }
.pf-card__title { margin-bottom: .45rem; font-size: 1rem; line-height: 1.4; }
.pf-card__title:last-child { margin-bottom: 0; }
.pf-card__text { margin: 0; font-size: .9rem; line-height: 1.7; }
.pf-cards--facts .pf-card { border-color: transparent; border-top: 3px solid var(--pc); background: var(--c-bg-alt); }
.pf-cards--facts .pf-card__title { margin-bottom: .5rem; font-size: 1.28rem; color: var(--pc-ink); }

/* flow */
.pf-flow { padding: 1.1rem 1.2rem 1.25rem; border: 1px solid var(--c-line); border-radius: var(--radius-md); background: var(--c-bg-alt); }
.pf-flow__label { margin: 0 0 .8rem; }
.pf-flow .chain__step { background: var(--c-surface); }

/* callout */
.pf-callout { display: flex; align-items: flex-start; gap: .9rem; }
.pf-callout__icon { flex-shrink: 0; margin-top: .15rem; color: var(--pc-ink); }
.pf-callout__body { min-width: 0; }
.pf-callout__body p { margin-bottom: .5rem; line-height: 1.8; }
.pf-callout__body p:last-child { margin-bottom: 0; }
.pf-callout .callout__title { margin-bottom: .4rem; }

/* note */
.pf-note__body { min-width: 0; }
.pf-note__body p { margin: 0; }
.pf-note__body p + p { margin-top: .4rem; }

/* table: scroll with a sticky first column; stacked cards on small screens */
.pf-table { position: relative; }
.pf-table__scroll:focus-visible { outline-offset: 2px; }
.pf-table__table { min-width: 620px; }
.pf-table__table tbody th { font-weight: 700; color: var(--c-ink-2); background: var(--c-surface); text-align: start; vertical-align: top; }
.pf-table__table tbody tr:hover th { background: var(--c-surface-2); }
.pf-table__table thead th:first-child,
.pf-table__table tbody th { position: sticky; inset-inline-start: 0; z-index: 1; }
.pf-table.is-scrollable .pf-table__table thead th:first-child,
.pf-table.is-scrollable .pf-table__table tbody th { box-shadow: inset -1px 0 0 var(--c-line), 8px 0 12px -10px rgba(21, 23, 28, .35); }
:root[dir="rtl"] .pf-table.is-scrollable .pf-table__table thead th:first-child,
:root[dir="rtl"] .pf-table.is-scrollable .pf-table__table tbody th { box-shadow: inset 1px 0 0 var(--c-line), -8px 0 12px -10px rgba(21, 23, 28, .35); }
.pf-table__hint { display: none; align-items: center; gap: .4rem; margin: .6rem 0 0; font-size: .8rem; color: var(--c-muted); }
.pf-table.is-scrollable .pf-table__hint { display: flex; }
.pf-table.is-scrolled-end .pf-table__hint { visibility: hidden; }

@media (max-width: 575.98px) {
  .pf-table__scroll { overflow: visible; border: 0; border-radius: 0; background: none; }
  .pf-table__table { display: block; min-width: 0; }
  .pf-table__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .pf-table__table tbody { display: grid; gap: .75rem; }
  .pf-table__table tr { display: block; overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--radius-md); background: var(--c-surface); }
  .pf-table__table tbody th,
  .pf-table__table tbody td { position: static; display: block; padding: .7rem 1rem; border-bottom: 1px solid var(--c-line); box-shadow: none !important; }
  .pf-table__table tbody th { background: var(--pc-tint); color: var(--c-ink); }
  .pf-table__table tbody tr:last-child td:not(:last-child) { border-bottom: 1px solid var(--c-line); }
  .pf-table__table tbody tr > :last-child { border-bottom: 0; }
  .pf-table__table tbody tr:hover td { background: none; }
  .pf-table__table tbody tr:hover th { background: var(--pc-tint); }
  .pf-table__table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: .15rem;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-muted);
  }
  .pf-table__table td[data-label=""]::before { display: none; }
  .pf-table__hint { display: none !important; }
}

/* canvas: Business Model Canvas */
.pf-canvas { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; }
.pf-canvas__cell { min-width: 0; padding: 1rem 1.05rem 1.1rem; border: 1px solid var(--c-line); border-radius: var(--radius-md); background: var(--c-surface); }
.pf-canvas__cell--vp { border-color: color-mix(in srgb, var(--pc) 32%, transparent); background: var(--pc-tint); }
.pf-canvas__key {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .75rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--pc-ink);
}
.pf-canvas__icon { flex-shrink: 0; }
.pf-canvas__list { margin: 0; padding: 0; list-style: none; }
.pf-canvas__list li { position: relative; margin-bottom: .32rem; padding-inline-start: .9rem; font-size: .85rem; line-height: 1.55; color: var(--c-text); }
.pf-canvas__list li:last-child { margin-bottom: 0; }
.pf-canvas__list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--pc); opacity: .55; }
@container pfmain (min-width: 520px) {
  .pf-canvas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container pfmain (min-width: 520px) and (max-width: 859.98px) {
  .pf-canvas__cell:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@container pfmain (min-width: 860px) {
  .pf-canvas:not(.pf-canvas--classic) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pf-canvas--classic {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    grid-template-areas:
      "kp kp ka ka vp vp cr cr cs cs"
      "kp kp kr kr vp vp ch ch cs cs"
      "co co co co co rs rs rs rs rs";
  }
  .pf-canvas--classic .pf-canvas__list li { font-size: .82rem; }
  .pf-canvas--classic :is(.pf-canvas__cell--co, .pf-canvas__cell--rs) .pf-canvas__list { columns: 2; column-gap: 1.5rem; }
  .pf-canvas--classic :is(.pf-canvas__cell--co, .pf-canvas__cell--rs) .pf-canvas__list li { break-inside: avoid; }
  .pf-canvas__cell--kp { grid-area: kp; }
  .pf-canvas__cell--ka { grid-area: ka; }
  .pf-canvas__cell--kr { grid-area: kr; }
  .pf-canvas__cell--vp { grid-area: vp; }
  .pf-canvas__cell--cr { grid-area: cr; }
  .pf-canvas__cell--ch { grid-area: ch; }
  .pf-canvas__cell--cs { grid-area: cs; }
  .pf-canvas__cell--co { grid-area: co; }
  .pf-canvas__cell--rs { grid-area: rs; }
}

/* --------------------------------------------------- 9. Show: other platforms */
.pf-back { margin: clamp(2rem, 4vw, 2.75rem) 0 0; }
.pf-back__link { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--c-ink-2); }
.pf-back__link:hover { color: var(--c-brand-text); }
.pf-back__icon { transform: scaleX(-1); transition: translate .25s var(--ease); }
:root[dir="rtl"] .pf-back__icon { transform: none; }
.pf-back__link:hover .pf-back__icon { translate: -3px 0; }
:root[dir="rtl"] .pf-back__link:hover .pf-back__icon { translate: 3px 0; }

/* ------------------------------------------------- 10. Arabic typography */
:root[dir="rtl"] :is(.pf-row__category, .pf-row__sub, .pf-glance__sub, .pf-stage__sub, .pf-hero__category,
  .pf-investor__kicker, .pf-toc__toggle-label, .pf-stage__status-label, .pf-canvas__key) {
  letter-spacing: 0;
  text-transform: none;
}
:root[dir="rtl"] :is(.pf-row__category, .pf-row__sub, .pf-glance__sub, .pf-stage__sub, .pf-hero__category, .pf-investor__kicker, .pf-canvas__key) { font-size: .9rem; }
:root[dir="rtl"] .pf-toc__toggle-label { font-size: .85rem; }
:root[dir="rtl"] .pf-table__table td::before { font-size: .8rem; letter-spacing: 0; text-transform: none; }

/* ---------------------------------------------------------------- 11. Print */
@media print {
  .pf-page {
    --c-ink: #15171C;
    --c-ink-2: #2B2F36;
    --c-text: #33373D;
    --c-muted: #5A5F66;
    --c-line: #D9D5D2;
    --c-line-strong: #BDB8B4;
    --c-bg: #FFFFFF;
    --c-bg-alt: #F7F5F4;
    --c-surface: #FFFFFF;
    --c-surface-2: #FBFAF9;
    --c-warn-bg: #FFF6E2;
    --c-warn-line-strong: #E3B04B;
    --c-warn-text: #6E4A00;
    --accent-ink-share: 100%;
    --tint-soft-share: 100%;
    --shadow-1: none;
    --shadow-2: none;
    --shadow-3: none;
  }
  .pf-page :is(.pf-toc, .pf-jump, .pf-hero__actions, .pf-row__actions, .pf-stage__foot, .pf-others, .cta-section,
    .pf-table__hint, .pf-hero__watermark, .pf-row__watermark, .pf-investor__actions, .breadcrumbs) { display: none !important; }
  .pf-page :is(.section, .page-hero) { padding-block: 1rem; }
  .pf-layout { display: block; }
  .pf-hero { border-bottom: 2px solid var(--pc); background: none; }
  .pf-hero__grid { gap: 1.25rem; }
  .pf-glance { box-shadow: none; break-inside: avoid; }
  .pf-stage-section { padding-bottom: 0; }
  .pf-sec { padding-block: 1.1rem; }
  .pf-sec:first-child { padding-top: 0; }
  .pf-sec__head { break-after: avoid; page-break-after: avoid; }
  .pf-page :is(.pf-card, .pf-group, .pf-module, .pf-canvas__cell, .pf-roadmap__phase, .callout, .note, .pf-flow,
    .pf-stage__grid, .pf-row, .pf-cluster, .pf-investor__point, .pf-glance) { break-inside: avoid; page-break-inside: avoid; }
  .pf-table__table tr { break-inside: avoid; page-break-inside: avoid; }
  .pf-table__scroll { overflow: visible !important; }
  .pf-table__table { min-width: 0 !important; }
  .pf-table__table :is(thead th, tbody th) { position: static !important; box-shadow: none !important; }
  .pf-investor { border: 1px solid var(--c-line); background: #FFFFFF !important; color: #000000 !important; }
  .pf-investor::before { display: none; }
  .pf-investor :is(.pf-investor__title, .pf-investor__point p) { color: #000000 !important; }
  .pf-page a { color: inherit; text-decoration: none; }
  .pf-page .reveal { opacity: 1 !important; animation: none !important; translate: none !important; }
  .pf-page :is(.pf-hero__icon, .pf-sec__num, .pf-roadmap__marker, .pf-stepper__marker, .pf-row::before, .pf-stage::before, .pf-glance::before, .pf-cards--facts .pf-card) {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Mishwar flagship card (partials.mishwar.card) above the page's own sections. */
.pf-flagship { padding-bottom: 0; }
