/* About page: full-width ribbon hero, sticky-rail story, fact band, choices ledger, commitments, close. */

/* ---------- Hero: full-width ribbon behind centred copy ---------- */
.ab-hero { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(720px, 100vh, 920px); display: flex; }
.ab-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(50% 45% at 85% 75%, rgba(139,92,246,0.16), transparent 70%), radial-gradient(60% 50% at 55% 80%, rgba(0,85,255,0.18), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.ab-flow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block;
  -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent); mask-image: linear-gradient(180deg, #000 85%, transparent); }
.ab-hero__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(48% 42% at 50% 34%, rgba(0,0,0,0.78), transparent 75%); }
.ab-hero__inner { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding-top: 90px; padding-bottom: 34px; pointer-events: none; }
.ab-hero__inner a, .ab-hero__inner button { pointer-events: auto; }
.ab-hero__copy { max-width: 860px; margin: 0 auto; text-align: center; }
.ab-hero__copy > * + * { margin-top: 26px; }
.ab-hero__copy .lead { margin-left: auto; margin-right: auto; max-width: 620px; }
.ab-hero__copy .btn-row { justify-content: center; margin-top: 36px; }
.ab-eras { list-style: none; margin: 0; padding: 18px 0 0; display: flex; justify-content: space-between; position: relative;
  font: 11px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.14em; text-transform: uppercase; color: var(--subtle); }
.ab-eras::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.12), rgba(77,139,255,0.8) 70%, #a78bfa); }
.ab-eras li { position: relative; transition: color .4s; }
.ab-eras li::before { content: ""; position: absolute; left: 50%; top: -22px; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%;
  background: #04060c; border: 1px solid rgba(255,255,255,0.35); }
.ab-eras li:last-child { color: #c4b5fd; }
.ab-eras li:last-child::before { background: #a78bfa; border-color: #a78bfa; box-shadow: 0 0 12px #8b5cf6; }
@media (prefers-reduced-motion: no-preference) {
  .ab-eras li:not(:last-child) { animation: abEra 6s ease-in-out infinite; animation-delay: calc(var(--i) * 1.2s); }
  .ab-eras li:not(:last-child)::before { animation: abEraDot 6s ease-in-out infinite; animation-delay: calc(var(--i) * 1.2s); }
  .ab-eras li:last-child::before { animation: abEraNow 2.4s ease-in-out infinite; }
}
@keyframes abEra { 0%, 30%, 100% { color: var(--subtle); } 10%, 18% { color: #fff; } }
@keyframes abEraDot { 0%, 30%, 100% { background: #04060c; box-shadow: none; } 10%, 18% { background: #8fb2ff; box-shadow: 0 0 12px #4d8bff; } }
@keyframes abEraNow { 50% { box-shadow: 0 0 0 6px rgba(139,92,246,0.2), 0 0 20px #8b5cf6; } }

/* ---------- Story: sticky rail + chapters ---------- */
.ab-story__grid { display: grid; grid-template-columns: 220px 1fr; gap: 72px; margin-top: 64px; }
.ab-rail { list-style: none; margin: 0; padding: 0 0 0 22px; position: sticky; top: 140px; align-self: start; border-left: 1px solid var(--line); }
.ab-rail::before { content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: var(--p, 0%); background: linear-gradient(180deg, #8fb2ff, #0055fe); transition: height .5s ease; }
.ab-rail li { position: relative; padding: 9px 0; font-size: 14px; color: var(--subtle); transition: color .3s; }
.ab-rail li::before { content: ""; position: absolute; left: -26.5px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #04060c; border: 1px solid rgba(255,255,255,0.25); transition: background .3s, border-color .3s, box-shadow .3s; }
.ab-rail li.is-done { color: rgba(255,255,255,0.7); }
.ab-rail li.is-done::before { background: #0055fe; border-color: #0055fe; }
.ab-rail li.is-active { color: #fff; }
.ab-rail li.is-active::before { background: #8fb2ff; border-color: #8fb2ff; box-shadow: 0 0 0 5px rgba(0,85,255,0.2), 0 0 14px #0055fe; }

.ab-chapters { list-style: none; margin: 0; padding: 0; }
.ab-ch { padding: 0 0 96px; max-width: 680px; opacity: .35; transition: opacity .5s ease; }
.ab-ch:last-child { padding-bottom: 20px; }
.ab-ch.is-active, .ab-ch.is-done, html:not(.js) .ab-ch { opacity: 1; }
.ab-ch__when { display: inline-block; font: 13px ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.06em; color: #8fb2ff; text-transform: uppercase; }
.ab-ch h3 { margin-top: 14px; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; font-weight: 400; letter-spacing: -0.035em; }
.ab-ch p { margin-top: 18px; color: var(--muted); font-size: 18px; line-height: 30px; }
.ab-ch[data-step="3"] h3 { background: linear-gradient(90deg, #fff, #8fb2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Fact band ---------- */
.ab-facts-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(0,85,255,0.08), transparent 40%, transparent 60%, rgba(0,85,255,0.08)); }
.ab-facts { display: grid; grid-template-columns: repeat(4, 1fr); }
.ab-fact { padding: 44px 28px; }
.ab-fact + .ab-fact { border-left: 1px solid var(--line); }
.ab-fact small { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--subtle); }
.ab-fact b { display: block; margin-top: 10px; font-size: clamp(38px, 4vw, 54px); line-height: 1; font-weight: 400; letter-spacing: -0.05em; }
.ab-fact p { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 23px; }

/* ---------- Choices ledger ---------- */
.ab-choices__head { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
.ab-choices__head > div > * + * { margin-top: 22px; }
.ab-choices { list-style: none; margin: 64px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ab-choice { position: relative; display: grid; grid-template-columns: 70px 1.3fr 1fr; gap: 32px; align-items: baseline; padding: 34px 0; border-bottom: 1px solid var(--line); }
.ab-choice::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: #0055fe; transition: width .6s ease; }
.ab-choice:hover::after { width: 100%; }
.ab-choice__n { font: 14px ui-monospace, "SF Mono", Menlo, monospace; color: #8fb2ff; }
.ab-choice__we h3 { font-size: 26px; line-height: 1.2; font-weight: 400; letter-spacing: -0.03em; }
.ab-choice__we p { margin-top: 10px; color: var(--muted); }
.ab-choice__not { color: var(--subtle); font-size: 15px; padding-left: 26px; position: relative; }
.ab-choice__not::before { content: ""; position: absolute; left: 0; top: 12px; width: 14px; height: 1px; background: rgba(255,255,255,0.35); }

/* ---------- Commitments ---------- */
.ab-commit { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; }
.ab-commit__intro { position: sticky; top: 140px; }
.ab-commit__intro > * + * { margin-top: 22px; }
.ab-commit__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ab-commit__list li { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent); transition: border-color .3s, transform .3s; }
.ab-commit__list li:hover { border-color: rgba(0,85,255,0.45); transform: translateY(-3px); }
.ab-commit__list h3 { margin-top: 20px; font-size: 20px; font-weight: 500; letter-spacing: -0.4px; }
.ab-commit__list p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 24px; }

/* ---------- Close ---------- */
.ab-close { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; padding: 56px; border-radius: var(--radius);
  border: 1px solid rgba(0,85,255,0.3); background: radial-gradient(70% 90% at 100% 100%, rgba(0,85,255,0.2), transparent 60%), #03050b; }
.ab-close__copy > * + * { margin-top: 22px; }
.ab-close__copy .btn-row { margin-top: 32px; }
.ab-cities { list-style: none; margin: 0; padding: 0; }
.ab-cities li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ab-cities li:first-child { border-top: 1px solid var(--line); }
.ab-cities b { font-size: 26px; font-weight: 400; letter-spacing: -0.04em; }
.ab-cities span { font-size: 13px; color: var(--subtle); text-align: right; }
.ab-cities li:first-child span { color: #8fb2ff; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .ab-choices__head, .ab-commit, .ab-close { grid-template-columns: 1fr; }
  .ab-story__grid { grid-template-columns: 1fr; gap: 0; }
  .ab-rail { display: none; }
  .ab-ch { opacity: 1; padding-bottom: 56px; }
  .ab-facts { grid-template-columns: 1fr 1fr; }
  .ab-fact:nth-child(3) { border-left: 0; }
  .ab-fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ab-choice { grid-template-columns: 50px 1fr; }
  .ab-choice__not { grid-column: 2; }
  .ab-commit__intro { position: static; }
  .ab-close { padding: 32px; }
}
@media (max-width: 640px) {
  .ab-eras li:nth-child(2), .ab-eras li:nth-child(3) { display: none; }
  .ab-commit__list { grid-template-columns: 1fr; }
  .ab-fact { padding: 30px 16px; }
}
@media (max-width: 420px) {
  .ab-facts { grid-template-columns: 1fr; }
  .ab-fact + .ab-fact { border-left: 0; border-top: 1px solid var(--line); }
}
