/* styxtrade.com/about: the Styx story as a chaptered page. Uses site.css for the type, buttons, nav, final band and
   footer; this file adds the night-river reading page: a Silk water hero on Current blue, then a sticky chapter
   panel beside the reading column on deep night blue, with orange only for what matters. */

.about { --night: #0B1030; --night-2: #121A48; --hair: rgba(241, 234, 219, .13); --soft: rgba(241, 234, 219, .7);
  --faint: rgba(241, 234, 219, .55); --sky: #8FA2FF; --text: var(--cream); --nav-night: rgba(11, 16, 48, .92);
  background: var(--night); color: var(--text); }
/* Light (T113, the same choice as the dashboard and the homepage): the reading page on paper, the hero stays blue. */
:root[data-theme="light"] .about { --night: #F6F1E6; --night-2: #EFE7D6; --hair: rgba(20, 22, 28, .14); --soft: rgba(20, 22, 28, .74);
  --faint: rgba(20, 22, 28, .6); --sky: #2338E0; --text: var(--ink); --nav-night: rgba(246, 241, 230, .94); }
/* Grain reads on dark as a soft lift, not a darkening. */
.about::after { mix-blend-mode: soft-light; opacity: .5; }
:root[data-theme="light"] .about::after { mix-blend-mode: multiply; opacity: .32; }

/* Hero: Current blue with the Silk water drifting under the words. */
.ab-hero { position: relative; overflow: hidden; background: var(--blue); color: var(--cream); min-height: 78vh; min-height: 78svh;
  display: flex; align-items: flex-end; padding: calc(var(--nav) + 64px) 0 72px; }
.ab-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none;
  background: linear-gradient(transparent, var(--night)); }
.ab-hero__water { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ab-hero__in { position: relative; z-index: 1; }
.ab-eyebrow { font: 600 12px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: rgba(241, 234, 219, .85); }
.ab-k, .ab-panel__n { font: 600 12px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--orange); }
.ab-hero__title { margin: 18px 0 26px; font-weight: 700; font-size: clamp(46px, 7vw, 116px); line-height: .92; letter-spacing: -.055em; }
.ab-hero__title span { display: block; }
.ab-o { color: var(--orange); }
.ab-hero__lede { max-width: 620px; font-size: 18px; line-height: 1.55; color: rgba(241, 234, 219, .9); }

/* The book: sticky chapter panel on the left, reading column on the right. */
.ab-book { background: var(--night); overflow-x: clip; }
.ab-book__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 72px; }
.ab-panel { position: relative; border-right: 1px solid var(--hair); }
.ab-panel::before { content: ""; position: absolute; inset: 0 0 0 calc(-1 * var(--gutter)); pointer-events: none;
  background: radial-gradient(120% 60% at 0% 100%, rgba(255, 106, 43, .08), transparent 60%); }
.ab-panel__in { position: sticky; top: var(--nav); padding: 56px 48px 56px 0; min-height: calc(100vh - var(--nav)); }
.ab-panel__in::after { content: ""; position: absolute; right: -40px; bottom: 24px; width: 380px; height: 380px; pointer-events: none;
  opacity: .06; background: url("/assets/logo-white.svg?v=484060d1a341") no-repeat center / contain; }
.ab-panel__n { font-size: 13px; }
.ab-panel__title { margin: 14px 0 22px; font: 700 clamp(48px, 5.6vw, 92px)/.95 var(--display); letter-spacing: -.055em;
  transition: opacity 260ms var(--ease), transform 260ms var(--ease); }
.ab-panel__blurb { max-width: 420px; font-size: 18px; line-height: 1.5; color: var(--soft); transition: opacity 260ms var(--ease); }
.ab-panel.is-swap .ab-panel__title { opacity: 0; transform: translateY(8px); }
.ab-panel.is-swap .ab-panel__blurb { opacity: 0; }
.ab-toc { list-style: none; margin: 44px 0 0; padding: 0; position: relative; z-index: 1; }
.ab-toc a { display: grid; grid-template-columns: 40px auto 1fr; align-items: baseline; gap: 12px; padding: 13px 0; border-top: 1px solid var(--hair);
  text-decoration: none; color: var(--soft); transition: color var(--fast) var(--ease); }
.ab-toc li:last-child a { border-bottom: 1px solid var(--hair); }
.ab-toc i { font: 500 12px var(--mono); font-style: normal; letter-spacing: .08em; }
.ab-toc b { font: 600 17px var(--display); letter-spacing: -.02em; }
.ab-toc span { justify-self: end; font-size: 13px; color: var(--faint); }
.ab-toc a:hover, .ab-toc a.is-on { color: var(--text); }
.ab-toc a.is-on i { color: var(--orange); }

.ab-read { padding: 56px 0 96px; min-width: 0; }
.ab-ch { padding: 40px 0 72px; scroll-margin-top: var(--nav); }
.ab-ch + .ab-ch { border-top: 1px solid var(--hair); }
.ab-ch h2 { margin: 16px 0 28px; font-size: clamp(32px, 3.6vw, 54px); line-height: 1; letter-spacing: -.045em; }
.ab-ch h2 em { font-style: normal; color: var(--sky); }
.ab-ch > p:not(.ab-k):not(.ab-fine) { max-width: 660px; font-size: 17px; color: var(--soft); margin-top: 16px; }
.ab-ch > p.ab-lead { font: 400 23px/1.45 var(--display); letter-spacing: -.015em; color: var(--text); margin-top: 0; }
.ab-hl { color: var(--orange); font-weight: 600; }
.ab-myth { margin: 40px 0 0; padding: 28px 0 0 28px; border-left: 3px solid var(--orange); max-width: 660px; }
.ab-myth p { font: 500 24px/1.35 var(--display); letter-spacing: -.02em; }
.ab-myth footer { margin-top: 12px; font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }

/* Hairline grids: cells share 1px dividers. */
.ab-grid { display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); margin-top: 8px; }
.ab-grid--5 { grid-template-columns: 1fr 1fr; }
.ab-grid--5 .ab-cell--o { grid-column: 1 / -1; }
.ab-grid--3 { grid-template-columns: repeat(3, 1fr); margin-top: 32px; }
.ab-cell { background: var(--night); padding: 26px 24px 28px; transition: background-color 200ms var(--ease); }
.ab-cell:hover { background: var(--night-2); }
.ab-cell__n { font: 600 12px var(--mono); letter-spacing: .14em; color: var(--sky); }
.ab-cell h3 { margin: 14px 0 10px; font-size: 22px; line-height: 1.1; letter-spacing: -.03em; }
.ab-cell p { color: var(--soft); font-size: 15.5px; }
.ab-cell--o { background: var(--orange); color: var(--ink); }
.ab-cell--o:hover { background: var(--orange); }
.ab-cell--o .ab-cell__n, .ab-cell--o p { color: rgba(20, 22, 28, .78); }
.ab-big { font: 700 44px/1 var(--display) !important; letter-spacing: -.05em; color: var(--orange) !important; margin: 16px 0 12px; }

.ab-chip { display: inline-flex; align-items: center; gap: 8px; font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 9px; border: 1px solid var(--hair); color: var(--soft); }
.ab-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }
.ab-chip--live { border-color: rgba(255, 106, 43, .5); color: var(--text); }
.ab-chip--live::before { background: var(--orange); animation: abBreath 2.4s ease-in-out infinite; }
.ab-chip--soon::before { background: transparent; border: 1.5px solid var(--soft); }

/* Steps */
.ab-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ab-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--hair); }
.ab-steps li:last-child { border-bottom: 1px solid var(--hair); }
.ab-steps li > span { width: 40px; height: 40px; display: grid; place-items: center; border: 1.5px solid var(--sky); border-radius: 50%;
  font: 600 15px var(--mono); color: var(--text); }
.ab-steps li:last-child > span { border-color: var(--orange); background: var(--orange); color: var(--ink); }
.ab-steps h3 { font-size: 22px; letter-spacing: -.03em; margin: 6px 0 6px; }
.ab-steps p { color: var(--soft); max-width: 560px; }

/* Principles */
.ab-prin__row { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--hair); }
.ab-prin__row:last-child { border-bottom: 1px solid var(--hair); }
.ab-prin__k { font: 700 24px/1.1 var(--display); letter-spacing: -.035em; }
.ab-prin__row p:last-child { color: var(--soft); font-size: 16.5px; }

/* The share, as a tidy table */
.ab-split { display: grid; grid-template-columns: repeat(4, 1fr); margin: 32px 0 0; border-top: 3px solid var(--text); }
.ab-split div { padding: 16px 16px 0 0; }
.ab-split dt { font: 600 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.ab-split dd { margin: 8px 0 0; font: 700 40px/1 var(--display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.ab-split div:first-child dd { color: var(--orange); }
.ab-fine { margin-top: 18px; font-size: 13.5px; color: var(--faint); }

/* Roadmap */
.ab-road { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair);
  border: 1px solid var(--hair); }
.ab-road > li { background: var(--night); padding: 22px 22px 26px; }
.ab-road > li.is-now { background: var(--night-2); box-shadow: inset 0 3px 0 var(--orange); }
.ab-road ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.ab-road ul li { position: relative; padding-left: 18px; font-size: 15.5px; color: var(--soft); line-height: 1.45; }
.ab-road ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1.5px; background: var(--sky); }
.ab-road .is-now ul li { color: var(--text); }
.ab-road .is-now ul li::before { background: var(--orange); }

/* FAQ */
.ab-faq__list { border-top: 1.5px solid var(--text); }
.ab-faq details { border-bottom: 1px solid var(--hair); }
.ab-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 20px 0;
  font: 600 19px var(--display); letter-spacing: -.02em; transition: color var(--fast) var(--ease); }
.ab-faq summary::-webkit-details-marker { display: none; }
.ab-faq summary::after { content: "+"; font-weight: 500; color: var(--orange); transition: transform 200ms var(--ease); }
.ab-faq details[open] summary::after { transform: rotate(45deg); }
.ab-faq summary:hover { color: var(--sky); }
.ab-faq details p { color: var(--soft); padding: 0 0 22px; max-width: 640px; }

.about .final { margin-top: 0; }
.nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.about .nav.is-scrolled { background: var(--nav-night); color: var(--text); box-shadow: 0 1px 0 var(--hair); }

/* Reveal: chapters rise in once (only when the script runs). */
.js .ab-ch > * { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .ab-ch.is-in > * { opacity: 1; transform: none; }
.js .ab-ch.is-in > :nth-child(2) { transition-delay: 60ms; } .js .ab-ch.is-in > :nth-child(n+3) { transition-delay: 120ms; }
@keyframes abBreath { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@media (max-width: 1080px) {
  .ab-book__row { grid-template-columns: 1fr; }
  .ab-panel { border-right: 0; border-bottom: 1px solid var(--hair); }
  .ab-panel__in { position: static; min-height: 0; padding: 48px 0 40px; }
  .ab-panel__n, .ab-panel__title, .ab-panel__blurb { display: none; }
  .ab-toc { margin-top: 0; }
  .ab-panel__in::after { width: 240px; height: 240px; bottom: -20px; right: -60px; }
  .ab-read { padding-top: 16px; }
}
@media (max-width: 720px) {
  .ab-hero { min-height: 0; padding: calc(var(--nav) + 96px) 0 56px; }
  .ab-hero__title { font-size: 10.6vw; }
  .ab-eyebrow { font-size: 10.5px; letter-spacing: .14em; }
  .ab-hero__lede { font-size: 16px; }
  .ab-toc span { display: none; }
  .ab-toc a { grid-template-columns: 32px 1fr; }
  .ab-ch { padding: 32px 0 56px; }
  .ab-ch > p.ab-lead { font-size: 20px; }
  .ab-myth p { font-size: 20px; } .ab-myth { padding-left: 20px; }
  .ab-grid--5, .ab-grid--3, .ab-road { grid-template-columns: 1fr; }
  .ab-prin__row { grid-template-columns: 1fr; gap: 8px; }
  .ab-split { grid-template-columns: 1fr 1fr; }
  .ab-split div { padding-bottom: 16px; }
  .ab-steps li { grid-template-columns: 48px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .js .ab-ch > * { opacity: 1; transform: none; transition: none; }
  .ab-chip--live::before { animation: none; }
  .ab-panel__title, .ab-panel__blurb { transition: none; }
}
