/* AGS explanatory motion. Each .ags-anim figure is complete as written (the HTML is the final
   frame). motion.js arms a figure only when motion is allowed, hides its steps, then plays them
   once when it scrolls into view. Reduced motion, no JS and print all show the final frame. */
:root { --ease-in: cubic-bezier(.22, 1, .36, 1); --ease-move: cubic-bezier(.65, 0, .35, 1); }

.ags-anim { position: relative; margin: 0; }
.ags-anim.armed:not(.done) [data-step] { opacity: 0; transform: translateY(12px); }
.ags-anim.armed.playing [data-step] {
  opacity: 1; transform: none;
  transition: opacity .55s var(--ease-in), transform .55s var(--ease-in);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.anim-caption { margin-top: 18px; font-size: 13px; color: var(--text-muted); letter-spacing: .01em; }
.anim-replay {
  background: none; border: 0; padding: 4px 0; margin-left: 12px; cursor: pointer;
  font: 500 13px var(--sans); color: var(--gold); text-decoration: underline; text-underline-offset: 3px;
}
.anim-replay[hidden] { display: none; }
@media print { .ags-anim [data-step] { opacity: 1 !important; transform: none !important; } .anim-replay { display: none; } }

/* ── (a) Athlete journey: levelling-up step graph (United States) ───────
   Five levels rise left to right. Each stage is a step: a gold tread on top, a gold riser up from
   the level before, its age band and name on the step and the description beneath. On narrow
   screens the steps stack as a list that steps in at each level. */
.journey { list-style: none; margin: 0; padding: 64px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--border-strong); --rise: 40px; }
.journey .stage { position: relative; margin-top: calc((4 - var(--i, 0)) * var(--rise)); padding: 22px clamp(16px, 1.8vw, 26px) 32px; background: linear-gradient(180deg, rgba(201, 169, 110, 0.10), rgba(201, 169, 110, 0) 80%); }
.journey .stage + .stage { border-left: 1px solid var(--border); }
.journey .stage::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--gold); transform-origin: left; transition: transform .6s var(--ease-move); }
.journey .stage + .stage::before { content: ""; position: absolute; left: -1px; top: -1px; width: 2px; height: calc(var(--rise) + 2px); background: var(--gold); transform-origin: bottom; transition: transform .3s var(--ease-move); }
.journey .lvl { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.journey .age { font-family: var(--serif); font-size: clamp(22px, 2vw, 27px); line-height: 1.2; color: var(--gold); margin-bottom: 6px; }
.journey .stage-name { font-size: 12.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; transition: color .4s; }
.journey .stage p { font-size: 15px; color: var(--text-secondary); line-height: 1.65; }
.journey .mark18 { position: absolute; left: -1px; bottom: calc(100% + 1px); padding: 0 0 10px 12px; border-left: 1px dashed var(--gold); font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--gold); max-width: 100%; }
.ags-anim .stage.current .stage-name, .ags-anim:not(.armed) .journey .stage:last-child .stage-name { color: var(--gold); }
.ags-anim.armed:not(.done) .journey .stage:not(.lit)::after { transform: scaleX(0); }
.ags-anim.armed:not(.done) .journey .stage:not(.lit)::before { transform: scaleY(0); }
@media (max-width: 900px) {
  .journey { grid-template-columns: 1fr; padding: 0; border-bottom: 0; }
  .journey .stage { margin: 0 0 0 calc(var(--i, 0) * 14px); padding: 18px 0 22px 22px; background: linear-gradient(90deg, rgba(201, 169, 110, 0.10), rgba(201, 169, 110, 0) 70%); }
  .journey .stage + .stage { border-left: 0; border-top: 1px solid var(--border); }
  .journey .stage::after { left: 0; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform-origin: top; }
  .journey .stage + .stage::before { left: calc(-14px - 0px); top: -1px; width: 16px; height: 2px; transform-origin: left; }
  .ags-anim.armed:not(.done) .journey .stage:not(.lit)::after { transform: scaleY(0); }
  .ags-anim.armed:not(.done) .journey .stage:not(.lit)::before { transform: scaleX(0); }
  .journey .mark18 { position: static; display: inline-block; margin-bottom: 12px; padding: 4px 10px; border: 1px solid var(--gold); white-space: normal; }
}

/* Phases: the grid lines stay put; each card's contents rise in. */
.ags-anim.armed .pillar[data-step] { opacity: 1; transform: none; }
.ags-anim.armed:not(.done) .pillar[data-step] > * { opacity: 0; transform: translateY(12px); }
.ags-anim.armed.playing .pillar[data-step] > * { opacity: 1; transform: none; transition: opacity .55s var(--ease-in), transform .55s var(--ease-in); transition-delay: calc(var(--d, 0) * 1ms); }

/* ── (b) Platform phases (home) ─────────────────────────────────────── */
.phase-rail { display: block; width: 100%; height: 14px; margin: 56px 0 -6px; overflow: visible; }
.phase-rail .line { stroke: var(--border-strong); stroke-width: 1.5; }
.phase-rail .gold { stroke: var(--gold); stroke-width: 2; }
.phase-rail .tick { fill: var(--bg); stroke: var(--gold); stroke-width: 1.5; }
.ags-anim.armed:not(.done) .phase-rail .gold { stroke-dasharray: 1; stroke-dashoffset: 1; }
.ags-anim.armed:not(.done) .phase-rail .tick { opacity: 0; }
.phase-rail .tick { transition: opacity .4s var(--ease-in); }
.phase-glyph { display: block; width: 56px; height: 56px; margin-bottom: 28px; overflow: visible; }
.phase-glyph * { fill: none; stroke: var(--gold); stroke-width: 1.5; }
.phase-glyph .fill { fill: var(--gold); stroke: none; }
.ags-anim.armed:not(.done) .phase-glyph [data-g] { opacity: 0; }
.phase-glyph [data-g] { transition: opacity .4s var(--ease-in), transform .6s var(--ease-move); transform-box: fill-box; transform-origin: center; }
.ags-anim .pillar-num { transition: color .5s, opacity .5s; }
.ags-anim.done .pillar:last-child .pillar-num, .ags-anim:not(.armed) .pillar:last-child .pillar-num { color: var(--gold); opacity: 1; }
@media (max-width: 1024px) { .phase-rail { display: none; } }

/* ── (c) Student Athlete app (United States) ────────────────────────── */
.app-demo { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: center; margin-top: 64px; }
.app-demo .app-copy h3 { font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1.3; margin-bottom: 18px; }
.app-demo .app-copy ol { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.app-demo .app-copy li { counter-increment: s; padding: 14px 0; border-top: 1px solid var(--border); font-size: 16px; color: var(--text-secondary); line-height: 1.6; }
.app-demo .app-copy li::before { content: "0" counter(s); font-family: var(--serif); color: var(--gold); margin-right: 14px; }
.app-demo .app-copy li b { color: var(--text); font-weight: 500; }
.app-stage { position: relative; padding-bottom: 40px; }
.phone {
  border-radius: 34px; background: #0d0d0d; border: 1px solid rgba(17,17,17,.2);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); padding: 26px 16px 34px; color: #ece8e1; font-family: var(--sans);
  display: flex; flex-direction: column; gap: 10px; overflow: hidden;
}
.phone .bar { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 6px; }
.phone .bar .t { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #a39c92; }
.phone .bar .n { font-family: var(--serif); font-size: 19px; }
.phone .card { background: #18181b; border: 1px solid #2a2724; border-radius: 14px; padding: 12px 13px; }
.phone .k { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #a39c92; margin-bottom: 8px; display: flex; justify-content: space-between; }
.phone .k .ok { color: #c9a96e; letter-spacing: .06em; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 54px; }
.week .day { display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; height: 100%; position: relative; }
.week .day i { display: block; height: var(--h); background: #3a3631; border-radius: 2px; transform-origin: bottom; transition: transform .45s var(--ease-in); transition-delay: calc(var(--d, 0) * 1ms); }
.week .day.today i { background: #c9a96e; }
.week-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 5px; font-size: 9.5px; color: #8f887e; text-align: center; }
.week-days .today { color: #c9a96e; font-weight: 600; }
.ags-anim.armed:not(.done) .week .day i { transform: scaleY(0); }
.ags-anim.armed.playing .week .day i { transform: none; }
.lesson .title { font-size: 13.5px; line-height: 1.35; margin-bottom: 9px; }
.lesson .track { height: 5px; background: #2e2b28; border-radius: 3px; overflow: hidden; }
.lesson .fill { height: 100%; width: 100%; background: #c9a96e; border-radius: 3px; transition: width 1.2s var(--ease-move), background .3s; }
.ags-anim.armed:not(.done) .lesson .fill { width: 62%; background: #8f887e; }
.checkin .q { font-size: 13px; line-height: 1.4; margin-bottom: 10px; }
.mood { display: flex; gap: 9px; align-items: center; }
.mood span { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid #5a554e; transition: background .3s, border-color .3s; }
.mood span.on { background: #c9a96e; border-color: #c9a96e; }
.mood em { font-style: normal; font-size: 12px; color: #c9a96e; margin-left: 4px; transition: opacity .3s; }
.ags-anim.armed:not(.done) .mood span.on { background: none; border-color: #5a554e; }
.ags-anim.armed:not(.done) .mood em, .ags-anim.armed:not(.done) .checkin .reply { opacity: 0; }
.checkin .reply { font-size: 11.5px; color: #a39c92; margin-top: 9px; transition: opacity .4s; }
.hub-toast {
  position: absolute; left: -48px; bottom: 0; width: 260px; background: #fff; color: #111; border-radius: 12px;
  border: 1px solid rgba(17,17,17,.12); border-left: 3px solid var(--gold); box-shadow: 0 18px 40px -18px rgba(0,0,0,.35);
  padding: 12px 14px; font-size: 13px; line-height: 1.45;
}
.hub-toast b { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 4px; }
.ags-anim.armed:not(.done) .checkmark path { stroke-dashoffset: 20; }
.checkmark { width: 12px; height: 12px; vertical-align: -1px; margin-right: 4px; }
.checkmark path { fill: none; stroke: #c9a96e; stroke-width: 2.2; stroke-dasharray: 20; stroke-dashoffset: 0; transition: stroke-dashoffset .3s var(--ease-in); }
@media (max-width: 900px) {
  .app-demo { grid-template-columns: 1fr; gap: 40px; }
  .app-stage { max-width: 300px; margin: 0 auto; width: 100%; }
  .hub-toast { left: auto; right: -8px; width: 230px; }
}

/* ── (d) Scam detection (founder) ───────────────────────────────────── */
.scam { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; margin: 28px 0 8px; align-items: start; }
.scam .offer { border: 1px solid var(--border-strong); border-radius: 12px; padding: 18px 20px; background: var(--bg-card); transition: border-color .4s, opacity .6s, transform .6s var(--ease-in); }
.scam .offer.flagged { border-color: var(--gold); }
.scam .offer.dimmed { opacity: .5; transform: scale(.985); }
.scam .from { font-size: 12.5px; color: var(--text-muted); margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.scam .from::before { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--border-strong); flex: none; }
.scam .msg { font-size: 16.5px; line-height: 1.55; color: var(--text); }
.scam .flag-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-top: 12px; font-weight: 600; transition: opacity .4s; }
.scam .checks { list-style: none; margin: 0; padding: 0; }
.scam .checks li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 15.5px; color: var(--text); }
.scam .checks li:first-child { padding-top: 0; }
.scam .ico { width: 18px; height: 18px; flex: none; position: relative; }
.scam .ico svg { width: 18px; height: 18px; display: block; }
.scam .ico .warn { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linejoin: round; }
.scam .ico .spin { position: absolute; inset: 0; border: 1.6px solid var(--border-strong); border-top-color: var(--gold); border-radius: 50%; opacity: 0; }
.scam .ico.checking .spin { opacity: 1; animation: ags-spin .6s linear infinite; }
.scam .ico.checking svg { opacity: 0; }
@keyframes ags-spin { to { transform: rotate(360deg); } }
.scam .people { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.scam .person { border-top: 2px solid var(--border-strong); padding-top: 12px; transition: border-color .5s; }
.scam .person.alerted { border-color: var(--gold); }
.scam .person .who { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.scam .person .what { font-size: 15px; color: var(--text); transition: opacity .4s; }
.scam .verdict { grid-column: 1 / -1; display: inline-block; justify-self: start; border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; padding: 7px 16px; font-size: 14.5px; font-weight: 500; }
.ags-anim.armed:not(.done) .scam .flag-label, .ags-anim.armed:not(.done) .scam .person .what { opacity: 0; }
.ags-anim.armed:not(.done) .scam .person.alerted { border-color: var(--border-strong); }
@media (max-width: 760px) { .scam { grid-template-columns: 1fr; } .scam .people { grid-template-columns: 1fr; } }

/* ── (e) Who does what (governance) ─────────────────────────────────── */
.roles { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 150px 72px minmax(0, 1fr); align-items: center; gap: 0 28px; margin: 8px 0 40px; padding: 8px 0; }
.roles .side h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; margin-bottom: 14px; }
.roles .pill { border: 1px solid var(--border-strong); border-radius: 10px; padding: 12px 16px; margin-bottom: 12px; background: var(--bg); position: relative; z-index: 1; transition: border-color .4s; }
.roles .pill:last-child { margin-bottom: 0; }
.roles .pill b { display: block; font-size: 15.5px; font-weight: 600; color: var(--text); }
.roles .pill span { font-size: 14px; color: var(--text-secondary); }
.roles .ags .pill { border-left: 3px solid var(--gold); }
.roles .pill.hit { border-color: var(--gold); }
.roles .athlete { width: 150px; height: 150px; border-radius: 50%; border: 1.5px solid var(--gold); display: grid; place-items: center; background: var(--bg); position: relative; z-index: 1; font-family: var(--serif); font-size: 22px; color: var(--text); }
.roles .boundary { align-self: stretch; position: relative; display: flex; justify-content: center; }
.roles .boundary::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1.5px dashed var(--border-strong); }
.roles .boundary span { position: relative; z-index: 1; align-self: center; writing-mode: vertical-rl; transform: rotate(180deg); background: var(--bg); padding: 10px 0; font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); }
.roles svg.links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.roles svg.links path { fill: none; stroke-width: 1.5; }
.roles svg.links .a { stroke: var(--gold); }
.roles svg.links .p { stroke: var(--text-muted); opacity: .6; }
.roles .dot { position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--gold); z-index: 2; opacity: 0; pointer-events: none; }
.roles-caption { font-size: 15.5px; color: var(--text); margin: -16px 0 36px; transition: opacity .5s; }
.ags-anim.armed:not(.done) .roles-caption { opacity: 0; }
.ags-anim.armed:not(.done) svg.links path { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); }
@media (max-width: 860px) {
  .roles { grid-template-columns: 1fr; gap: 20px; justify-items: stretch; }
  .roles .athlete { justify-self: center; width: 120px; height: 120px; }
  .roles .boundary { height: 32px; }
  .roles .boundary::before { top: 50%; bottom: auto; left: 0; right: 0; border-left: 0; border-top: 1.5px dashed var(--border-strong); }
  .roles .boundary span { writing-mode: horizontal-tb; transform: none; padding: 0 10px; }
  .roles svg.links, .roles .dot { display: none; }
}

/* Journey steps appear in turn, each tread drawing as its level arrives. */
.ags-anim .journey .stage { transition: opacity .5s var(--ease-in), transform .5s var(--ease-in); }
.ags-anim.armed:not(.done) .journey .stage:not(.lit) { opacity: 0; transform: translateY(12px); }
.ags-anim.armed:not(.done) .phase-glyph .l { transform: translateX(-6px); }
.ags-anim.armed:not(.done) .phase-glyph .r { transform: translateX(6px); }
.phone::after { content: ""; display: block; width: 96px; height: 4px; border-radius: 2px; background: #3a3631; margin: 14px auto 0; }
