/*
 * botany.tech — What's next (owner, 12.11.2026; docs/brief/screens/12-roadmap-v4.md).
 * Desktop: the composition of her "Key Milestone" ref, the heading centred,
 * one line across the content (fading at both ends, not to the screen edge),
 * three points evenly spaced, the quarter over each point, the name and one
 * line under it, centred. The line and dot style of her second ref: a thin
 * grey line, small solid black dots, Launch's dot in a thin ring.
 * Phones: the same line stood up on the left, each stage to its right.
 * No pictures, no icons. whats-next-v2.js draws it in once.
 *
 *   section.wnm > .container > h2.wnm-h  ol.wnm-list > li.wnm-st(--now)
 *     p.wnm-when  i.wnm-dot  h3.wnm-name  p.wnm-d
 */
.wnm .wnm-h{margin:0}

/* the dot: a small black point; Launch's sits in a thin ring */
.wnm-dot{position:relative;display:block;width:var(--dot);height:var(--dot)}
.wnm-dot::before{content:'';position:absolute;inset:calc(50% - 5px);border-radius:50%;background:var(--ink900);z-index:1}
.wnm-st--now .wnm-dot::before{inset:calc(50% - 6px)}
.wnm-st--now .wnm-dot::after{content:'';position:absolute;inset:0;border-radius:50%;border:1px solid var(--l500);background:var(--s0)}

.wnm-when{margin:0;font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:13px;line-height:18px;font-weight:500;letter-spacing:.04em;color:var(--ink300);white-space:nowrap}
.wnm .wnm-name{margin:0;font-size:24px;line-height:30px;font-weight:500;letter-spacing:-.02em;color:var(--ink900)}
.wnm-st:not(.wnm-st--now) .wnm-name{color:var(--ink500)}
.wnm-d{margin:6px 0 0;font-size:15px;line-height:22px;color:var(--ink500)}

/* ---------- phones: the line stood up on the left; each stage a full row,
   the name left and its quarter at the right end (owner, 12.11.2026: the
   right half stood empty) ---------- */
.wnm-list{--dot:24px;position:relative;list-style:none;margin:36px 0 0;padding:0;display:grid;row-gap:48px}
.wnm-list::before{content:'';position:absolute;left:calc(var(--dot) / 2 - .5px);top:15px;bottom:-32px;width:1px;background:var(--l300);transform-origin:top;
  -webkit-mask-image:linear-gradient(to bottom,#000 75%,transparent);mask-image:linear-gradient(to bottom,#000 75%,transparent)}
.wnm-st{display:grid;grid-template-columns:var(--dot) minmax(0,1fr) auto;grid-template-areas:"dot name when" "dot d d";column-gap:16px;align-items:baseline}
.wnm-st .wnm-dot{grid-area:dot;align-self:start;margin-top:3px}
.wnm-st .wnm-name{grid-area:name}
.wnm-st .wnm-when{grid-area:when;text-align:right}
.wnm-st .wnm-d{grid-area:d}

/* ---------- from 760: Key Milestone ---------- */
@media (min-width:760px){
  .wnm .wnm-h{text-align:center}
  .wnm-list{--when:22px;--gap:18px;--dot:30px;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:24px;margin-top:56px}
  .wnm-list::before{left:0;right:0;width:auto;bottom:auto;top:calc(var(--when) + var(--gap) + var(--dot) / 2 - .5px);height:1px;transform-origin:left;
    -webkit-mask-image:linear-gradient(to right,transparent,#000 8%,#000 92%,transparent);mask-image:linear-gradient(to right,transparent,#000 8%,#000 92%,transparent)}
  .wnm-st{display:flex;flex-direction:column;align-items:center;text-align:center;min-width:0}
  .wnm-st .wnm-dot{align-self:center;margin:var(--gap) 0 0}
  .wnm-st .wnm-when{order:-1;text-align:center;font-size:14px;line-height:var(--when)}
  .wnm .wnm-name{margin-top:var(--gap);font-size:26px;line-height:32px;letter-spacing:-.02em;white-space:nowrap}
  .wnm-d{margin-top:8px;max-width:300px;font-size:16px;line-height:24px;text-wrap:balance}
}
@media (min-width:1100px){.wnm .wnm-name{font-size:28px;line-height:34px}}
/* more air before Questions (owner, 12.11.2026) */
.wnm{padding-bottom:112px}
@media (min-width:760px){.wnm{padding-bottom:176px}}

/* ---------- motion: visible by default; the script arms the start, then lets it go.
   The line draws, then one stage at a time: its dot, then its words. ---------- */
@media (prefers-reduced-motion:no-preference){
  .wnm-st:nth-child(1){--i:0}.wnm-st:nth-child(2){--i:1}.wnm-st:nth-child(3){--i:2}
  .wnm-list::before{transition:transform .9s cubic-bezier(.4,0,.2,1)}
  .wnm-dot{transition:transform .45s cubic-bezier(.3,1.4,.5,1),opacity .3s ease;transition-delay:calc(.55s + var(--i,0) * .55s)}
  .wnm-st > :not(.wnm-dot){transition:opacity .55s ease,transform .7s cubic-bezier(.2,.8,.2,1);transition-delay:calc(.7s + var(--i,0) * .55s)}
  .wnm-list.is-armed::before{transform:scale(1,0)}
  .wnm-list.is-armed .wnm-dot{opacity:0;transform:scale(.3)}
  .wnm-list.is-armed .wnm-st > :not(.wnm-dot){opacity:0;transform:translateY(8px)}
  @media (min-width:760px){.wnm-list.is-armed::before{transform:scale(0,1)}}
}

/* ---------- 17.11.2026 (owner): an icon over each stage, Launch's dot like
   the others, and on a desktop the quarter right over the name ---------- */
.wnm-st--now .wnm-dot::after{content:none}
.wnm-st--now .wnm-dot::before,.wnm-dot::before{inset:calc(50% - 5px)}
.wnm-ic{display:grid;place-items:center;flex:none;width:var(--ic,36px);height:var(--ic,36px);border-radius:50%;background:var(--s2);color:var(--ink300);transition:color .3s ease}
.wnm-ic svg{width:52%;height:52%;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.wnm-list .wnm-st.is-on .wnm-ic{color:var(--ink900)}
/* phones: dot, icon, then the name with its quarter at the right end */
.wnm-st{grid-template-columns:var(--dot) var(--ic,36px) minmax(0,1fr) auto;grid-template-areas:"dot ic name when" "dot ic d d"}
.wnm-st .wnm-ic{grid-area:ic;align-self:start;margin-top:-3px}
@media (min-width:760px){
  .wnm-list{--ic:52px}
  .wnm-list::before{top:calc(var(--ic) + var(--gap) + var(--dot) / 2 - .5px)}
  .wnm-st .wnm-ic{order:-2;margin:0;align-self:center}
  .wnm-st .wnm-dot{order:-1}
  .wnm-st .wnm-when{order:0;margin-top:var(--gap)}
  .wnm .wnm-name{margin-top:4px}
}
/* 17.11.2026 (owner): the icons drawn on a dot grid in square points, like
   the site's Doto labels, instead of the line icons */
.wnm-ic svg{width:50%;height:50%;fill:currentColor;stroke:none}
/* 17.11.2026 (owner): the icons with no grey disc behind them, a size larger */
.wnm-list{--ic:24px}
.wnm-ic{background:none;border-radius:0}
.wnm-ic svg{width:100%;height:100%}
.wnm-st .wnm-ic{margin-top:3px}
@media (min-width:760px){.wnm-list{--ic:34px}.wnm-st .wnm-ic{margin:0}}
/* 17.11.2026 (owner): larger icons on a finer 9-point grid; on phones the
   icon first, then the name with its quarter, then the line under it */
.wnm-list{--ic:40px}
.wnm-st{grid-template-columns:var(--dot) minmax(0,1fr) auto;grid-template-areas:"dot ic ic" ". name when" ". d d"}
.wnm-st .wnm-ic{grid-area:ic;justify-self:start;align-self:center;margin:0 0 12px}
.wnm-st .wnm-dot{align-self:start;margin-top:calc((var(--ic) - var(--dot)) / 2)}
.wnm-list::before{top:calc(var(--ic) / 2)}
@media (min-width:760px){
  .wnm-list{--ic:44px}
  .wnm-list::before{top:calc(var(--ic) + var(--gap) + var(--dot) / 2 - .5px)}
  .wnm-st .wnm-ic{margin:0;align-self:center;justify-self:auto}
  .wnm-st .wnm-dot{margin:var(--gap) 0 0;align-self:center}
}
/* 17.11.2026 (owner): the icons in round points, like Doto with its round
   dots, on an 11-point grid, larger; Stocks as three candles */
.wnm-list{--ic:52px}
@media (min-width:760px){.wnm-list{--ic:72px}}
/* 17.11.2026 (owner): the icons not lit sit quieter; more room under the heading */
/* on the drawing, not the icon box: the box's own opacity is the entrance's,
   so the stages still come in one by one, Launch first */
.wnm-ic svg{transform-origin:0 100%;transition:opacity .3s ease,transform .45s cubic-bezier(.2,.8,.2,1)}
.wnm-list .wnm-st:not(.is-on) .wnm-ic svg{opacity:.6;transform:scale(.74)}
/* 17.11.2026 (owner): the lit stage's icon full size, the others smaller */
@media (min-width:760px){.wnm-ic svg{transform-origin:50% 100%}}
.wnm-list{margin-top:52px}
@media (min-width:760px){.wnm-list{margin-top:88px}}
/* the line a shade fainter (owner, 17.11.2026) */
.wnm-list::before{background:var(--l100)}
/* 17.11.2026 (owner): the entrance was too slow; the same order (line, then
   Launch, Stocks, AI agent), 0.1s apart and quick */
@media (prefers-reduced-motion:no-preference){
  .wnm-list::before{transition:transform .45s cubic-bezier(.4,0,.2,1)}
  .wnm-dot{transition:transform .35s cubic-bezier(.3,1.4,.5,1),opacity .2s ease;transition-delay:calc(.1s + var(--i,0) * .1s)}
  .wnm-st > :not(.wnm-dot){transition:opacity .35s ease,transform .45s cubic-bezier(.2,.8,.2,1);transition-delay:calc(.1s + var(--i,0) * .1s)}
}
