/* ==========================================================================
   Grey Sky Capital: product page (product.html)
   --------------------------------------------------------------------------
   Technical Summary
   - Same language as the homepage: paper grounds, ink type, mono labels,
     data laid out as ruled rows and tables. Neon is an accent only: each
     strategy's cloud logo, the open folder tab's crown, one marker dot, and a
     thin edge on hover. Never as text on paper (GSCD-2.1).
   - Principles first (dark, pinned), then a light statement band set like a
     pull quote, with the PMS and AIF ticket sizes as its footer.
   - Risk and return: points only, axes from zero with no values.
   - Folder: tabs overlap like folders in a drawer; the open tab rises onto
     the panel and alone carries its strategy's accent crown.
   - Panel: header (logo, eyebrow, name, tagline, best for, actions); four key
     facts in a ruled row; allocation ranges in ink beside three numbered
     points; fees, risks and full terms in a closed drawer. The only motion is
     a quiet fade on tab change.
   ========================================================================== */

[data-accent="lime"]   { --acc: var(--lime); }
[data-accent="azure"]  { --acc: var(--azure); }
[data-accent="flare"]  { --acc: var(--flare); }
[data-accent="pink"]   { --acc: var(--pink); }
[data-accent="yellow"] { --acc: var(--yellow); }

/* ---------------------------------------------------------------- Statement */
/* A light band set like a pull quote between the dark principles and the chart */
.pstatement { background: var(--paper-100); padding: clamp(80px, 10vw, 144px) 0; text-align: center; }
.pstatement__inner { display: grid; justify-items: center; gap: clamp(20px, 2.4vw, 28px); }
.pstatement__quote {
  margin: 0; max-width: 24ch; color: var(--ink-head);
  font-size: var(--d1-size); line-height: var(--d1-lh); letter-spacing: var(--d1-tr); font-weight: 700; text-wrap: balance;
}
.pstatement__foot { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; margin: 0; font-size: 15px; color: var(--ink-body); }
.pstatement__foot > span { display: inline-flex; align-items: center; gap: 8px; }
.pstatement__sep { width: 1px; height: 18px; background: var(--paper-300); }

/* ------------------------------------------------- Risk and return: the frontier */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.pvector { background: var(--paper-200); padding: var(--space-chapter) 0 var(--space-continue); }
.pvector__layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pvector__copy { display: grid; gap: 18px; align-content: center; }
.pvector__lede { font-size: var(--lead-size); line-height: var(--lead-lh); color: var(--ink-body); max-width: 40ch; }
.pvector__key { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pvector__chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border: 1px solid var(--paper-300); border-radius: 999px;
  background: var(--paper-100); color: var(--text-head); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.pvector__chip--index i { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--ink-head); }   /* strategy chips carry their mark (main.css, Strategy key) */
.pvector__chip:hover, .pvector__chip.is-focus { border-color: var(--text-head); }
.pvector__chip:focus-visible { outline: 2px solid var(--text-head); outline-offset: 2px; }
.pvector__chip--index { cursor: default; color: var(--ink-muted); border-style: dashed; }
.pvector__chip--index i { background: var(--grey-500); }
.pvector__chip-more { display: none; }
.pvector__hint { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.pvector__figure { margin: 0; display: grid; gap: 12px; }
.pvector__chart { background: var(--paper-100); border: 1px solid var(--paper-300); border-radius: 12px; padding: clamp(10px, 2vw, 24px) clamp(8px, 2vw, 22px) clamp(6px, 1.4vw, 14px); }
.pvector__note { color: var(--ink-muted); }

/* The chart */
.fr { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font-mono); }
.fr-axis { fill: none; stroke: var(--ink-head); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .5s var(--ease) .05s; }   /* the whole draw takes about 1.5 s (UAT, 3 Dec 2026) */
.fr-axis__label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; fill: var(--ink-muted); opacity: 0; transition: opacity .35s var(--ease) .35s; }
/* Every dot rises from the risk axis (--rise) to its height, in order of risk, then lands with a ripple */
.fr-index circle {
  fill: var(--grey-400); stroke: var(--ink-head); stroke-width: 1.3; transform-box: fill-box; transform-origin: center;
  opacity: 0; transform: translateY(var(--rise)) scale(.6);
  transition: transform .55s cubic-bezier(.22, 1, .36, 1), opacity .2s var(--ease); transition-delay: calc(.4s + var(--i) * 50ms);
}
.fr-index__label { font-size: 11.5px; fill: var(--ink-muted); opacity: 0; transition: opacity .3s var(--ease); transition-delay: calc(.75s + var(--i) * 50ms); }
.fr-strat { cursor: pointer; outline: none; transition: opacity .3s var(--ease); }
.fr-hit { fill: transparent; }
.fr-dot {
  fill: var(--acc); stroke: var(--ink-head); stroke-width: 2; transform-box: fill-box; transform-origin: center;
  opacity: 0; transform: translateY(var(--rise)) scale(.6);
  transition: transform .6s cubic-bezier(.22, 1, .36, 1), opacity .2s var(--ease); transition-delay: calc(.55s + var(--i) * 90ms);
}
.fr-ripple { fill: none; stroke: var(--ink-head); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.fr-strat__label { font-family: var(--font-sans); font-size: 13.5px; font-weight: 600; fill: var(--ink-head); opacity: 0; transition: opacity .3s var(--ease); transition-delay: calc(.95s + var(--i) * 90ms); paint-order: stroke; stroke: var(--paper-100); stroke-width: 5px; stroke-linejoin: round; }
.fr-guide { stroke: var(--ink-head); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0; transition: opacity .25s var(--ease); }

.fr.is-drawn .fr-axis__label, .fr.is-drawn .fr-index__label, .fr.is-drawn .fr-strat__label { opacity: 1; }
.fr.is-drawn .fr-axis { stroke-dashoffset: 0; }
.fr.is-drawn .fr-index circle, .fr.is-drawn .fr-dot { opacity: 1; transform: none; }
.fr.is-drawn .fr-ripple { animation: fr-ripple .8s var(--ease) forwards; animation-delay: calc(1s + var(--i) * 90ms); }
@keyframes fr-ripple { 0% { opacity: .55; transform: scale(.8); } 100% { opacity: 0; transform: scale(2.6); } }
.fr.is-live .fr-dot { transition: transform .3s var(--ease); transition-delay: 0s; }   /* after the draw, hover answers at once */

/* Focus: one strategy lifts, the rest dim, guides drop to both axes */
.fr.has-focus .fr-strat:not(.is-focus) { opacity: .3; }
.fr.has-focus .fr-indices { opacity: .45; transition: opacity .3s var(--ease); }
.fr .fr-strat.is-focus .fr-guide { opacity: .55; }
.fr.is-live .fr-strat.is-focus .fr-dot { transform: scale(1.3); }
.fr.is-live .fr-strat.is-focus .fr-ripple { animation: fr-ripple 1.6s var(--ease) infinite; }

/* Reduced motion: drawn at rest */
.fr.is-static *, .fr.is-static { transition: none !important; animation: none !important; }

/* ---------------------------------------------------------------- Folder */
/* Entry point beside the frontier: a quiet ruled link to the PMS vs AIF section */
.pvector__cmp {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin-top: 8px;
  padding: 14px 16px; border: 1px solid var(--paper-300); border-radius: 12px; background: var(--paper-100);
  color: var(--text-head); text-decoration: none; transition: border-color .2s, transform .2s;
}
.pvector__cmp-pills { display: inline-flex; align-items: center; gap: 6px; }
.pvector__cmp-or { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); }
.pvector__cmp-text { font-weight: 600; }
.pvector__cmp-go { transition: transform .2s; }
.pvector__cmp:hover { border-color: var(--text-head); }
.pvector__cmp:hover .pvector__cmp-go { transform: translateX(4px); }
.pvector__cmp:focus-visible { outline: 2px solid var(--text-head); outline-offset: 2px; }

.pfolder { background: var(--paper-200); padding: var(--space-continue) 0 var(--space-chapter); }
.pfolder__head { display: grid; gap: 16px; margin-bottom: clamp(28px, 4vw, 44px); }
.pfolder__live { justify-self: start; }   /* one live performance link for every strategy */

.folder { position: relative; }
.folder:not([data-accent]) { --acc: var(--lime); }   /* before JS picks the open tab */
.folder__tabs {
  position: relative; z-index: 2; display: flex; align-items: flex-end; padding: 18px 0 0 2px;   /* headroom: a scrolling strip clips anything above it */
  overflow-x: auto; overflow-y: visible; scrollbar-width: none; scroll-snap-type: x proximity;
  margin-bottom: -1px;
}
.folder__tabs::-webkit-scrollbar { display: none; }
.folder__tab {
  position: relative; flex: 1 1 0; min-width: 176px; margin-left: -10px; scroll-snap-align: start;
  display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; text-align: left;
  padding: 16px 24px 14px 18px; border: 1px solid var(--paper-300); border-bottom: 0; border-radius: 12px 12px 0 0;
  background: var(--paper-300); color: var(--ink-body); font: inherit; cursor: pointer;
  transform: translateY(8px); z-index: calc(5 - var(--i));
  box-shadow: 0 -6px 14px -12px rgb(13 18 21 / .25);
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.folder__tab:first-child { margin-left: 0; }
.folder__tab:hover { transform: translateY(4px); background: var(--paper-200); }
.folder__tab[aria-selected="true"] {
  z-index: 10; transform: none; background: var(--paper-100); padding-bottom: 18px;
  box-shadow: inset 0 3px 0 var(--acc), 0 -12px 26px -18px rgb(13 18 21 / .3);
}
.folder__tab:focus-visible { outline: 2px solid var(--text-head); outline-offset: -4px; }
.folder__logo { grid-row: 1 / span 2; width: 32px; height: auto; }
.folder__name { font-weight: 600; font-size: 16px; color: var(--text-head); white-space: nowrap; }
.folder__meta { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); white-space: nowrap; }
.folder__tab:not([aria-selected="true"]) .folder__meta { color: var(--ink-body); }   /* ink-muted is 4.06:1 on the closed tabs' paper-300 (WCAG 1.4.3) */

.folder__body {
  position: relative; z-index: 3; background: var(--paper-100); border: 1px solid var(--paper-300);
  border-radius: 12px; padding: clamp(28px, 4vw, 56px);
}
.folder.is-first .folder__body { border-top-left-radius: 0; }

/* ---------------------------------------------------------------- Panel */
.ppanel { display: grid; gap: clamp(32px, 4vw, 48px); opacity: 0; transition: opacity .45s var(--ease); }
.ppanel[hidden] { display: none; }   /* display: grid would otherwise override [hidden] */
.ppanel:focus-visible { outline: 2px solid var(--text-head); outline-offset: 12px; }   /* the panel is in the Tab order (WCAG 2.4.7) */
.ppanel.is-in { opacity: 1; }
.pp-rng__track i { transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); transition-delay: calc(.15s + var(--i) * 70ms); }
.ppanel.is-in .pp-rng__track i { transform: none; }
.pp-how li { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .6s var(--ease); transition-delay: calc(.2s + var(--i) * 110ms); }
.ppanel.is-in .pp-how li { opacity: 1; transform: none; }
.pp-key dd .odo { height: 1.06em; line-height: 1.06; }
.pp-key dd .mk { display: inline-block; white-space: nowrap; }   /* rust pen circle (homepage mark) around the defining figure */
.pp-head__tag .mk { white-space: normal; }
.pp-key dd .odo__col > span { height: 1.06em; }

/* Header */
.pp-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 28px; align-items: start; }
.pp-head__logo { width: 72px; height: auto; margin-top: 4px; }
.pp-head__text { display: grid; gap: 12px; }
.pp-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pp-head__meta .eyebrow { margin-left: 4px; }
.pp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 1px rgb(13 18 21 / .25); }
.pp-head__name { font-size: var(--d1-size); line-height: var(--d1-lh); letter-spacing: var(--d1-tr); font-weight: 700; color: var(--text-head); }
.pp-head__tag { font-size: var(--lead-size); line-height: var(--lead-lh); color: var(--ink-body); max-width: 44ch; }
.pp-head__best { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; color: var(--text-head); font-weight: 500; }
.pp-head__actions { display: grid; gap: 14px; justify-items: end; align-content: start; padding-top: 6px; }

/* Four key facts in a ruled row, like the homepage's figures */
.pp-keys { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--text-head); }
.pp-key { position: relative; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 8px; padding: 18px 16px 0 0; }   /* figures line up at the top even when a label wraps */
.pp-key + .pp-key { padding-left: 16px; border-left: 1px solid var(--hairline); }
.pp-key::after {
  content: ''; position: absolute; left: 0; right: 16px; top: -1px; height: 3px; background: var(--acc);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.pp-key + .pp-key::after { left: 16px; }
.pp-key:hover::after { transform: scaleX(1); }
.pp-key dd { margin: 0; font-size: var(--d2-size); line-height: var(--d2-lh); letter-spacing: var(--d2-tr); font-weight: 700; color: var(--text-head); font-variant-numeric: tabular-nums; }

/* Ranges and "how it works" */
.pp-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); }
.pp-col { display: grid; gap: 32px; align-content: start; }
.pp-block { display: grid; gap: 14px; align-content: start; }
.pp-small { font-size: 13px; line-height: 1.5; color: var(--ink-muted); }

.pp-rng { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--text-head); }
.pp-rng li { display: grid; grid-template-columns: 150px 1fr 64px; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--hairline); }
.pp-rng__label { color: var(--text-head); font-weight: 500; font-size: 15px; }
/* No ranges: a strategy whose mix is set with each client lists what it can hold */
.pp-custom { font-size: var(--d3-size); line-height: var(--d3-lh); letter-spacing: var(--d3-tr); font-weight: 700; color: var(--text-head); }
.pp-rng--plain li { grid-template-columns: 1fr; }
.pp-rng__track { position: relative; height: 6px; background: var(--paper-300); }
.pp-rng__track i { position: absolute; top: 0; bottom: 0; background: var(--ink-head); }
.pp-rng__val { font-family: var(--font-mono); font-size: var(--data-size); color: var(--ink-body); text-align: right; font-variant-numeric: tabular-nums; }

.pp-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; border-top: 1px solid var(--text-head); }
.pp-table th, .pp-table td { padding: 10px 0; text-align: right; border-bottom: 1px solid var(--hairline); font-family: var(--font-mono); font-size: var(--data-size); color: var(--ink-body); }
.pp-table thead th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); font-weight: 500; }
.pp-table th:first-child { text-align: left; font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: var(--text-head); }
.pp-table th + th, .pp-table td { padding-left: 14px; }   /* keeps neighbouring column headings apart */
.pp-table thead th:first-child { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); }

.pp-how { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--text-head); }
.pp-how li { display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; padding: 16px 0; border-bottom: 1px solid var(--hairline); }
.pp-how__n { grid-row: 1 / span 2; font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); padding-top: 3px; }
.pp-how b { font-size: var(--d3-size); line-height: var(--d3-lh); letter-spacing: var(--d3-tr); color: var(--text-head); }
.pp-how li > span:last-child { color: var(--ink-body); }

/* Fees, risks and full terms */
.pdetails { border-top: 1px solid var(--text-head); }
.pdetails summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0 4px; font-weight: 600; color: var(--text-head);
}
.pdetails summary::-webkit-details-marker { display: none; }
.pdetails summary i { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--text-head); flex: none; transition: background .3s var(--ease); }
.pdetails summary i::before, .pdetails summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--text-head); translate: -50% -50%; }
.pdetails summary i::after { rotate: 90deg; transition: rotate .3s var(--ease); }
.pdetails[open] summary i::after { rotate: 0deg; }
.pdetails summary:hover i { background: var(--paper-200); }
.pdetails summary:focus-visible { outline: 2px solid var(--text-head); outline-offset: 4px; }
.pdetails__body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 22px 0 6px; }
.pdetails__col { display: grid; gap: 10px; align-content: start; font-size: 14px; line-height: 1.55; color: var(--ink-body); }
.pdetails__col .eyebrow { margin-top: 8px; }
.pdetails__col .eyebrow:first-child { margin-top: 0; }
.pfacts { margin: 0; display: grid; }
.pfacts > div { display: grid; grid-template-columns: 108px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--hairline); }
.pfacts > div:first-child { border-top: 0; padding-top: 0; }
.pfacts dt { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); padding-top: 3px; }
.pfacts dd { margin: 0; color: var(--text-head); font-weight: 500; }
/* Fee options: numbered, the old figure struck through, the recommended one boxed */
.pp-fees { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pp-fee { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--hairline); }
.pp-fee.is-rec { border: 2px solid var(--text-head); }
.pp-fee__n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.pp-fee__tag { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; background: var(--lime); color: var(--fill-ink); }
.pp-fee p { grid-column: 1 / -1; margin: 0; font-size: 15px; color: var(--ink-body); }
.pp-fee b { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-head); }
.pp-was { text-decoration: line-through; color: var(--ink-muted); }
.pp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 18px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 6px; height: 1.5px; background: var(--ink-muted); }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1100px) {
  .pvector__layout { grid-template-columns: 1fr; }
  .pdetails__body { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .pp-head { grid-template-columns: auto minmax(0, 1fr); }
  .pp-head__actions { grid-column: 1 / -1; justify-items: start; grid-auto-flow: column; justify-content: start; align-items: center; padding-top: 0; }
  .pp-keys { grid-template-columns: 1fr 1fr; }
  .pp-key:nth-child(3) { padding-left: 0; border-left: 0; }
  .pp-key:nth-child(3)::after { left: 0; }
  .pp-key:nth-child(n+3) { margin-top: 18px; border-top: 1px solid var(--hairline); }
  .pp-grid { grid-template-columns: 1fr; }
  .pdetails__body { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .fr-strat__label { font-size: 22px; }
  .fr-index__label { display: none; }   /* named in the key instead */
  .pvector__chip-more { display: inline; }
  .pvector__chip--index { border-radius: 12px; line-height: 1.4; }
  .fr-axis__label { font-size: 17px; }
  .pvector__hint { display: none; }
  /* Phones: the same five folder tabs in one row, sized to fit, so nothing scrolls or drags. Each tab is its
     mark over its name (wrapped); the format and role line is left to the open panel. */
  .folder__tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 14px 0 0; align-items: stretch;
    overflow: visible; scroll-snap-type: none; }
  .folder__tab { min-width: 0; margin-left: 0; grid-template-columns: 1fr; justify-items: center; gap: 4px; text-align: center;
    align-content: start; padding: 9px 3px 10px; border-radius: 9px 9px 0 0; transform: none; }   /* one height, all sitting on the panel */
  .folder__tab:hover { transform: none; }
  .folder__tab[aria-selected="true"] { transform: none; padding-bottom: 10px; }
  .folder__logo { grid-row: auto; width: 24px; min-width: 24px; }
  .folder__name { font-size: 10.5px; line-height: 1.15; white-space: normal; overflow-wrap: anywhere; letter-spacing: -.01em; }
  .folder__meta { display: none; }
  .folder__tab .flagship { top: -9px; left: 50%; right: auto; width: max-content; transform: translateX(-50%); padding: 2px 5px; gap: 3px; font-size: 7px; letter-spacing: .08em; }
  .folder__tab .flagship::before { width: 6px; height: 6px; }
  .pp-head { grid-template-columns: 1fr; gap: 14px; }
  .pp-head__logo { width: 52px; margin-top: 0; }
  .pp-head__actions { grid-column: 1; }
  .pp-rng li { grid-template-columns: 1fr 56px; gap: 6px 10px; }
  .pp-rng__label { grid-column: 1 / -1; font-size: 14px; }
  .pvector__plot { aspect-ratio: 4 / 3; }
}
@media (max-width: 480px) {
  .pp-head__actions { grid-auto-flow: row; }
}

@media (prefers-reduced-motion: reduce) {
  .ppanel, .pp-rng__track i, .pp-how li { transition: none; transform: none; opacity: 1; }
  .folder__tab, .pp-key::after { transition: none; }
}

/* ============================== PMS vs AIF ==============================
   Paper-100 band after the folder. Segmented switch with a sliding ink thumb;
   a ruled two-column table; pills mark the columns (and each cell on phones). */
.pcompare { background: var(--paper-100); padding: var(--space-chapter) 0; border-top: 1px solid var(--paper-300); }
.pcompare__head { display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 760px; margin: 0 auto; }
.pcompare__lede { font-size: var(--lead-size); line-height: var(--lead-lh); color: var(--ink-body); max-width: 56ch; }
.pcompare__note { margin-top: 24px; color: var(--ink-muted); text-align: center; }
.cmp { margin-top: clamp(32px, 4vw, 48px); display: grid; gap: clamp(24px, 3vw, 36px); }

.cmp__table { border: 1px solid var(--paper-300); border-radius: 14px; background: var(--paper-100); overflow: hidden; }
.cmp__grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cmp__grid th, .cmp__grid td { text-align: left; vertical-align: top; padding: 18px clamp(16px, 2vw, 28px); border-top: 1px solid var(--paper-300); }
.cmp__grid thead th { border-top: 0; background: var(--paper-200); vertical-align: bottom; }
.cmp__grid thead th:first-child { width: 22%; }
.cmp__corner { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.cmp__col { display: grid; gap: 6px; justify-items: start; }
.cmp__col b { font-size: 17px; color: var(--text-head); }
.cmp__col small { font-size: 12px; color: var(--ink-muted); font-weight: 400; }
.cmp__grid tbody th { font-weight: 600; color: var(--text-head); }
.cmp__grid tbody td { color: var(--ink-body); line-height: 1.5; }
.cmp__grid tbody tr { transition: background .2s; }
.cmp__grid tbody tr:hover { background: var(--paper-200); }
.cmp__tag { display: none; }
/* rows rise in on each switch */
.cmp__view tbody tr { opacity: 0; transform: translateY(8px); }
.cmp__view.is-in tbody tr { opacity: 1; transform: none; transition: opacity .4s ease, transform .5s cubic-bezier(.2, .8, .2, 1), background .2s; transition-delay: calc(var(--i) * 45ms), calc(var(--i) * 45ms), 0s; }

.cmp__fit { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px clamp(20px, 3vw, 40px); align-items: center; }
.cmp__fitline { display: flex; align-items: flex-start; gap: 12px; margin: 0; color: var(--ink-body); line-height: 1.5; }
.cmp__fitline .fmt { margin-top: 1px; flex: none; }
.cmp__talk { font-weight: 600; color: var(--text-head); white-space: nowrap; text-decoration: none; border-bottom: 2px solid var(--lime); padding-bottom: 2px; }
.cmp__talk:hover .arrow { display: inline-block; transform: translateX(3px); }

@media (max-width: 860px) {
  .cmp__fit { grid-template-columns: 1fr; }
  .cmp__talk { justify-self: start; }
}
@media (max-width: 760px) {
  /* Phones: still a table (terms, PMS, AIF), in smaller type */
  .cmp__grid th, .cmp__grid td { padding: 12px 8px; font-size: 13px; line-height: 1.4; }
  .cmp__grid th:first-child, .cmp__grid td:first-child { padding-left: 12px; }
  .cmp__grid tr > :last-child { padding-right: 12px; }
  .cmp__grid thead th:first-child { width: 26%; }
  .cmp__grid tbody th { font-size: 12.5px; }
  .cmp__corner { font-size: 9px; letter-spacing: .08em; }
  .cmp__col { gap: 4px; }
  .cmp__col b { font-size: 13.5px; line-height: 1.2; }
  .cmp__col small { font-size: 10.5px; line-height: 1.3; }
}
@media (prefers-reduced-motion: reduce) {
  .cmp__view tbody tr { opacity: 1; transform: none; transition: none; }
}

/* ============================== PRINCIPLES OF INVESTMENT DESIGN ==============================
   Default (no JS): a vertical list of display type on slate-900. .is-stacked: three columns,
   one per group, that stack up once in view. Neon only on dark: the asset words of the
   market truths. */
.pprinciples { position: relative; background: var(--slate-900); color: var(--grey-100); }
/* The storm behind the principles: blended over slate so its blacks are the page's own dark, graded
   hot in the file (lightning near white, blacks navy) and lifted a little more here for punch. A
   scrim keeps the statement (left) and the stack (bottom) readable; the flashes show through the rest. */
.pman__sticky { position: relative; }
.pman__sticky > :not(.pman__media) { position: relative; z-index: 1; }
.pman__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--slate-900); pointer-events: none; }
.pman__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: screen; filter: contrast(1.1) saturate(1.3) brightness(1.04);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 12%, rgba(0, 0, 0, .3) 32%, black 66%); mask-image: linear-gradient(90deg, transparent 0%, transparent 12%, rgba(0, 0, 0, .3) 32%, black 66%); }   /* the flashes live on the open right */
.pman__stack li, .pman__title { text-shadow: 0 1px 2px color-mix(in srgb, var(--slate-900) 70%, transparent), 0 0 28px color-mix(in srgb, var(--slate-900) 55%, transparent); }
@media (max-width: 640px) {   /* the portrait crop zooms the footage: keep it as atmosphere behind the type */
  .pman__video { opacity: .5; object-position: 72% 50%; filter: contrast(1.05) saturate(1.2); -webkit-mask-image: linear-gradient(180deg, black 0%, black 55%, transparent 85%); mask-image: linear-gradient(180deg, black 0%, black 55%, transparent 85%); }
}
.pman__scrim { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--slate-900) 45%, transparent) 0%, transparent 50%),
    linear-gradient(0deg, color-mix(in srgb, var(--slate-900) 88%, transparent) 0%, color-mix(in srgb, var(--slate-900) 40%, transparent) 30%, transparent 55%),
    linear-gradient(180deg, color-mix(in srgb, var(--slate-900) 60%, transparent) 0%, transparent 22%); }
.pprinciples [data-acc="lime"]   { --acc: var(--lime); }
.pprinciples [data-acc="yellow"] { --acc: var(--yellow); }
.pprinciples [data-acc="azure"]  { --acc: var(--azure); }
.pman__sticky { padding: var(--space-chapter) 0; }
.pman__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; }
.pman__head { display: grid; gap: 12px; max-width: 640px; }
.pman__title { margin: 0; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -.01em; font-weight: 600; color: var(--grey-300); }

.pman__viewport { overflow: hidden; }
.pman__track { list-style: none; margin: 0; padding: clamp(32px, 5vw, 64px) var(--gutter, 24px) 0; display: grid; gap: 40px; }
.pman__slide, .pman__intro { --f: 1; }
.pman__no { display: block; margin-bottom: 14px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; color: var(--grey-400); }
.pman__text, .pman__gtitle {
  margin: 0; font-family: var(--font-sans); font-weight: 700; letter-spacing: -.035em; line-height: .98;
  font-size: clamp(44px, 7.4vw, 124px); color: var(--grey-100);
}
.pman__text em { font-style: normal; color: var(--acc); }
.pman__gno { display: block; margin-bottom: 14px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .12em; color: var(--lime); }
.pman__gtitle { color: transparent; -webkit-text-stroke: 1.5px var(--grey-300); }
.pman__bottom { display: none; }

/* Stacked (JS): the plain list is swapped for three columns, one per group. When the section
   comes into view (.is-in) the statements stack up in all three columns at once: each line rises
   into place 70ms after the one above it, about a second in all. No pin, no scroll link. */
.pman__stack { display: none; }
.pprinciples.is-stacked .pman__sticky { display: grid; gap: clamp(28px, 4vw, 56px); min-height: 80svh; align-content: center; }
.pprinciples.is-stacked .pman__viewport {                 /* the real list stays for readers, off screen */
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.pman__stack em { font-style: normal; color: var(--acc); }
.pprinciples.is-stacked .pman__stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px clamp(20px, 3vw, 48px); }
.pman__coltitle { margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--slate-600); font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-400); }
.pman__coltitle span { margin-right: 10px; color: var(--lime); }
.pman__stack ol { list-style: none; margin: 0; padding: 0; }
.pman__stack li {
  position: relative; padding: 7px 0; font-family: var(--font-sans); font-weight: 700; letter-spacing: -.015em; line-height: 1.2;
  font-size: clamp(16px, 1.6vw, 24px); color: var(--grey-100);
}
.pman__stack li::before { content: ''; position: absolute; left: -14px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--lime); opacity: 0; }
.pprinciples.is-stacked:not(.is-in) .pman__stack li { opacity: 0; transform: translateY(18px); }
.pprinciples.is-stacked.is-in .pman__stack li {
  transition: opacity .3s ease-out, transform .38s cubic-bezier(.2, .8, .2, 1);
  transition-delay: calc(var(--r) * 70ms + var(--c) * 40ms);
}
.pprinciples.is-stacked.is-in .pman__stack li::before { animation: pman-dot .5s ease-out both; animation-delay: calc(var(--r) * 70ms + var(--c) * 40ms); }
@keyframes pman-dot { 0% { opacity: 0; } 40% { opacity: 1; } 100% { opacity: 0; } }   /* a lime tick as each line lands */
@media (prefers-reduced-motion: reduce) {
  .pprinciples.is-stacked .pman__stack li { opacity: 1; transform: none; transition: none; }
  .pprinciples.is-stacked .pman__stack li::before { animation: none; }
}

@media (max-width: 860px) {
  .pman__head .pman__title { font-size: 17px; }
  /* Same three columns as on desktop, scaled down: the stacks keep their shape on phones */
  .pprinciples.is-stacked .pman__sticky { min-height: 0; }
  .pprinciples.is-stacked .pman__stack { gap: 8px 16px; }
  .pman__coltitle { margin-bottom: 4px; padding-bottom: 6px; font-size: 9px; letter-spacing: .08em; line-height: 1.3; }
  .pman__coltitle span { display: block; margin: 0 0 2px; }
  .pman__stack li { font-size: 13px; line-height: 1.2; letter-spacing: -.005em; padding: 4px 0; }
  .pman__stack li::before { left: -9px; width: 4px; height: 4px; margin-top: -2px; }
}
@media (max-width: 380px) {
  .pprinciples.is-stacked .pman__stack { gap: 6px 12px; }
  .pman__stack li { font-size: 12px; }
}

/* ------------------------------ Depth (tokens.css, --lit-*) ------------------------------ */
.pp-rng__track { height: 8px; border-radius: 4px; box-shadow: var(--lit-well); }
.pp-rng__track i { border-radius: 4px; background-image: var(--lit-bar); box-shadow: var(--lit-drop); }

/* Flagship badge on the products folder: on the tab's top edge, so the name and its chips keep their places */
.folder__tab .flagship { position: absolute; top: -10px; right: 14px; margin: 0; z-index: 1; }
