/* FLIGHT-STRIP COMPONENT FAMILY
   One anatomy for every divided component: a stub, a perforated rule with punched notches, a body.
   Shared by index.html and ideas.html; loaded after each page's own styles so it wins.
   ponytail: notches are page-coloured circles over the divider, not true cut-outs; they assume a --sky page behind the card. */
:root{--notch:14px;--strip-r:4px}

/* 1 · perforation: vertical dividers (stub | body) */
.strip,.why-row,.plan{border-radius:var(--strip-r)}
.strip .code,.why-row .fact,.plan>div:not(:last-child){position:relative}
.plan>div:not(:last-child){border-right:1px dashed var(--line)}
:is(.strip .code,.why-row .fact,.plan>div:not(:last-child))::before,
:is(.strip .code,.why-row .fact,.plan>div:not(:last-child))::after{
  content:"";position:absolute;right:calc(var(--notch) / -2);width:var(--notch);height:var(--notch);
  border-radius:50%;background:var(--sky);border:1px solid var(--line);z-index:1}
:is(.strip .code,.why-row .fact,.plan>div:not(:last-child))::before{top:calc(var(--notch) / -2)}
:is(.strip .code,.why-row .fact,.plan>div:not(:last-child))::after{bottom:calc(var(--notch) / -2)}

/* 1b · perforation: horizontal dividers (media / body) on cards, like a boarding-pass tear line */
.card,.sc-card{border-radius:var(--strip-r)}
.card>.body,.sc-card>.sc-body{position:relative;border-top:1px dashed var(--line)}
:is(.card>.body,.sc-card>.sc-body)::before,
:is(.card>.body,.sc-card>.sc-body)::after{
  content:"";position:absolute;top:calc(var(--notch) / -2);width:var(--notch);height:var(--notch);
  border-radius:50%;background:var(--sky);border:1px solid var(--line);z-index:1}
:is(.card>.body,.sc-card>.sc-body)::before{left:calc(var(--notch) / -2)}
:is(.card>.body,.sc-card>.sc-body)::after{right:calc(var(--notch) / -2)}
.sc-card.feat>.sc-body::before,.sc-card.feat>.sc-body::after{border-color:var(--amber)}
.strip.star .code::before,.strip.star .code::after{border-color:var(--amber)}

/* stacked layouts: the divider turns horizontal, so the vertical notches go */
@media (max-width:720px){.why-row .fact::before,.why-row .fact::after,.plan>div::before,.plan>div::after{display:none}.plan>div:not(:last-child){border-right:0}}
@media (max-width:640px){.strip .code::before,.strip .code::after{display:none}}

/* 2 · one tag shape: an outlined mono stamp, colour carries status (no pastel fills) */
.tag{border-radius:3px;background:transparent;border:1px solid currentColor;padding:4px 9px;font-weight:600}
.tag.BUILT,.tag.ADAPT,.tag.NEW{background:transparent}
.tag.zone{border-color:var(--line)}

/* 3 · one control shape: tabs, filter chips, flow and loop steps share radius and type */
.tab,.chip,.loop span,.flow li,nav.chapters a,.sc-jump a{border-radius:var(--strip-r)}
.tab,.chip{font:500 .85rem var(--mono);letter-spacing:.02em;padding:9px 14px}
.tab[aria-selected="true"],.chip[aria-pressed="true"]{box-shadow:inset 0 -3px 0 var(--amber)}

/* ideas showcase: art-less ideas become compact strips under the photo grid, not dark placeholder tiles */
.sc-more{margin-top:16px}
.sc-more .strip{background:var(--paper)}

/* projector scale: on a 1920 screen the page used 60% of the width at laptop type sizes */
@media (min-width:1600px){
  html{font-size:20px}
  .wrap{max-width:1440px}
}
body{font-size:1rem}

/* the close: as strong as the opening */
.ask{border-radius:var(--strip-r)}
.ask img{opacity:.72}
.ask::after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(5,14,29,.94) 12%,rgba(5,14,29,.5) 55%,rgba(5,14,29,.45))}
.ask .in{z-index:1}
.ask-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:8px;border:1px solid rgba(242,246,252,.28);border-radius:var(--strip-r);background:rgba(5,14,29,.55)}
.ask-steps div{padding:14px 18px;display:grid;gap:4px;position:relative}
.ask-steps div+div{border-left:1px dashed rgba(242,246,252,.32)}
.ask-steps b{font:600 .85rem var(--mono);letter-spacing:.06em;color:#F0A945}
.ask-steps span{color:#F2F6FC}
@media (max-width:640px){.ask-steps{grid-template-columns:1fr}.ask-steps div+div{border-left:0;border-top:1px dashed rgba(242,246,252,.32)}}

/* reading measure + no lone last words (detector: 90-95ch lines, ~30 stragglers) */
p{text-wrap:pretty}
.why-row p,.xp-row .txt p,.live-intro p,.strip .body p{max-width:72ch}

/* TRY IT LIVE: one demo open (Ask the wall), the rest as strips that open on click.
   ponytail: closed stages are clipped, not display:none, so canvases mount at their real width */
.live-item.closed{background:var(--paper);border:1px solid var(--line);border-radius:var(--strip-r);padding:16px;gap:0}
.live-item.closed .live-stage{max-height:0;min-height:0;overflow:hidden;visibility:hidden}
.live-open{justify-self:start;margin-top:6px;font:600 .85rem var(--mono);letter-spacing:.02em;padding:10px 16px;border-radius:var(--strip-r);border:1px solid var(--accent);background:var(--accent);color:#fff;cursor:pointer}
.live-open[aria-expanded="true"]{background:transparent;color:var(--accent)}
.live-list{gap:20px}
.live-item:not(.closed)+.live-item{margin-top:28px}

/* MENU: every chapter visible on desktop, no clipped last item; narrower screens scroll sideways */
@media (min-width:1200px){
  nav.chapters .wrap{max-width:none;justify-content:safe center;gap:0;padding-inline:16px}
  nav.chapters a{font-size:clamp(12.8px,.84vw,18px);padding:8px clamp(6px,.55vw,14px);letter-spacing:0}
}
