/* Phones (≤760px). The same journey as the desktop, laid out for a tall screen:
   headline on top, the scene in the middle band, one slot underneath that holds the
   paragraph first and then that beat's figures. All sizes hang off --band and --slot. */
@media(max-width:760px){
 .continuous-journey{height:1100vh;height:1100svh}
 /* The headline is on screen from first paint, before the scene has loaded. flow.js takes over the opacity once it runs. */
 .flow-copy[data-flow-copy="0"]{opacity:1}
 /* 100lvh: the stage keeps one size while the browser toolbar shows and hides. The text is
    placed in svh from the top, so it is never under the toolbar. */
 .flow-stage{height:100vh;height:100lvh;--edge:6vw;--top:5.1rem;--slot:calc(100svh - 16rem);--strip:3.1rem}
 /* A paper veil over everything outside the band, so the scene fades out before it reaches the type. */
 .flow-stage::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(to bottom,var(--paper) calc(var(--band-top,30%) - 1.5rem),transparent calc(var(--band-top,30%) + 1rem),transparent calc(var(--band-bottom,62%) - 2.5rem),var(--paper) calc(var(--band-bottom,62%) - .25rem))}
 .flow-copy{inset:0}
 .flow-copy .copy-lockup{position:absolute;inset:0;width:auto;padding:var(--top) var(--edge) 0}
 .flow-copy .copy-lockup .flow-eyebrow{position:static;margin:0 0 .7rem;max-width:none;width:auto;font:500 11px/1.5 var(--mono);letter-spacing:.12em;color:var(--accent)}
 .flow-copy .copy-lockup h1,.flow-copy .copy-lockup h2{position:static;width:auto;max-width:none;margin:0;font:500 clamp(1.9rem,8.6vw,2.6rem)/1.04 var(--display);letter-spacing:-.045em;white-space:normal}
 .flow-copy .copy-lockup h1 span,.flow-copy .copy-lockup h1 em{display:block}
 .flow-copy .copy-lockup .flow-body{position:absolute;left:var(--edge);right:var(--edge);top:var(--slot);bottom:auto;width:auto;max-width:34ch;margin:0;font:400 16px/1.5 var(--body);color:var(--muted)}
 .flow-copy .hero-link,.hero-proof{display:none}
 /* Beats 02 to 05: the scene and the figures tell it, so the paragraph is not shown. It stays
    in the page for screen readers and search. */
 .flow-copy:not([data-flow-copy="0"]) .copy-lockup .flow-body{top:auto;left:0;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

 /* Figures stand on the bottom strip and take only their own height; the scene gets the rest. */
 .flow-note{left:var(--edge);right:var(--edge);top:auto;bottom:calc(var(--strip) + .9rem);bottom:calc(100lvh - 100svh + var(--strip) + .9rem);width:auto;background:none}
 .flow-bottom{left:var(--edge);right:var(--edge);top:calc(100svh - var(--strip));bottom:auto;gap:1rem;font-size:11px}
 .flow-bottom>a{font:500 12px/1.5 var(--body);letter-spacing:0;text-transform:none;gap:.6rem;padding-bottom:.35rem}
 .flow-bottom>a#flow-start{display:none}
 /* The beat number is already in the eyebrow; the standing note that these are examples matters more. */
 .flow-bottom>p#flow-stage-note{display:block;margin:0 0 0 auto;width:11.5rem;max-width:none;text-align:right;font:500 10.5px/1.45 var(--mono);letter-spacing:.06em;color:var(--muted)}
 .flow-bottom>span#flow-counter{display:none}

 /* ---- The slot: that beat's figures, in the paragraph's place. */
 .flow-note>span{font:500 11px/1.5 var(--mono);letter-spacing:.08em}
 .cost-note>b{color:var(--accent)}
 .setup-note>b,.cost-note>b{display:block;font:500 3rem/1 var(--display);letter-spacing:-.05em;margin:.45rem 0 .4rem}
 .setup-note>b small{font-size:.36em;letter-spacing:0}
 .setup-note>p,.cost-note>p{margin:0;font:14px/1.5 var(--body);color:var(--muted)}

 .dims-note dl{margin:.55rem 0 0;border-bottom:1px solid var(--rule)}
 .dims-note dl>div{display:grid;grid-template-columns:6.6rem minmax(0,1fr);align-items:baseline;padding:.36rem 0;border-top:1px solid var(--rule)}
 .dims-note dt{font:500 16px/1.25 var(--display);color:var(--accent)}
 .dims-note dd{margin:0;font:14px/1.35 var(--body);color:var(--muted)}
 .dims-note>p{margin:.6rem 0 0;font:13px/1.45 var(--body);color:var(--muted)}

 /* The check as a ledger in two columns: the brands on the left, the reconciliation on the right. */
 .check-panel table,.board-panel table{border-collapse:collapse;width:100%;margin-top:.5rem;font-variant-numeric:tabular-nums}
 .check-panel tbody{display:grid;grid-template-rows:repeat(4,auto);grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);column-gap:1.4rem}
 .check-panel tr{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem;padding:.26rem 0;border-top:1px solid var(--rule)}
 .check-panel th{font:400 14px/1.3 var(--body);text-align:left;white-space:nowrap}
 .check-panel td{font:500 14px/1.3 var(--mono);text-align:right}
 .check-panel tr.untagged{color:var(--accent)}
 .check-panel tr.difference{color:var(--accent);border-top-color:var(--ink)}
 .check-panel tr.difference th,.check-panel tr.difference td{font-weight:600}
 .check-panel.is-agreed tr.untagged{color:var(--muted)}
 .check-panel.is-agreed tr.difference,.check-panel.is-agreed>span,.check-panel.is-agreed #check-status{color:var(--agree)}
 .check-panel #check-status{margin:.55rem 0 0;font:500 11px/1.45 var(--mono);letter-spacing:.05em;color:var(--accent)}

 .board-panel>span{color:var(--agree)}
 .board-panel th,.board-panel td{padding:.26rem .25rem;border-top:1px solid var(--rule);font:14px/1.3 var(--body);text-align:right}
 .board-panel thead th{font:500 11px/1.3 var(--mono);letter-spacing:.04em;color:var(--muted);border-top:0;padding-top:0}
 .board-panel tbody th{text-align:left;padding-left:0;font-weight:400}
 .board-panel td{font:500 14px/1.3 var(--mono)}
 .board-panel td.strong{color:var(--agree);background:color-mix(in srgb,var(--agree) 10%,transparent)}
 .board-panel td.weak{color:var(--accent);background:color-mix(in srgb,var(--accent) 9%,transparent)}
 .board-line{margin:.55rem 0 0;font:500 16px/1.3 var(--display);letter-spacing:-.015em}

 /* Two labels share the top of the rack and a phone is too narrow for them side by side:
    the left one steps up a row. flow.js keeps all three inside the screen. */
 .halo-label{font-size:10.5px;letter-spacing:.05em;padding:5px 7px}
 .halo-label[data-halo="2"]{translate:calc(-100% + 14px) calc(-200% - 5px)}
}
/* Short phones, and any phone with the browser toolbars showing. */
@media(max-width:760px) and (max-height:700px){
 .flow-stage{--top:4.7rem;--slot:calc(100svh - 15rem);--strip:2.7rem}
 .check-panel tr{padding:.2rem 0}.board-panel th,.board-panel td{padding-block:.22rem}
 .flow-copy .copy-lockup .flow-eyebrow{margin-bottom:.5rem}
 .flow-copy .copy-lockup h1,.flow-copy .copy-lockup h2{font-size:clamp(1.7rem,7.6vw,2.1rem)}
 .flow-copy .copy-lockup .flow-body{font-size:15px;line-height:1.45}
 .setup-note>b,.cost-note>b{font-size:2.5rem}
 .dims-note>p{display:none}
}
/* ---- Below the journey. The three "How I work" cards had no phone styles: labels ran
   into their paragraphs and the cards into each other. Same rhythm as the desktop cards. */
@media(max-width:760px){
 .exception-section{padding-block:4.5rem}
 .case-heading .section-index{margin:0 0 1rem}
 .case-heading h2{font:500 clamp(2rem,9vw,2.6rem)/1.05 var(--display);letter-spacing:-.045em;margin:0 0 1.1rem}
 .case-heading>p:last-child{margin:0;font:16px/1.6 var(--body);color:var(--muted)}
 .case-grid{display:grid;gap:3rem;margin-top:3rem}
 .case-card{border-top:2px solid var(--accent);padding-top:1.1rem}
 .case-card .section-index{margin:0 0 .35rem}
 .case-card .case-object{margin:0 0 1.1rem;font:500 11px/1.5 var(--mono);letter-spacing:.06em;color:var(--muted)}
 .case-card h3{font:500 1.7rem/1.1 var(--display);letter-spacing:-.04em;margin:0 0 1.3rem;max-width:none}
 .case-card dl{margin:0}
 .case-card dl>div{border-top:1px solid var(--rule);padding:.9rem 0}
 .case-card dt{font:500 11px/1.5 var(--mono);letter-spacing:.08em;color:var(--accent);margin:0 0 .4rem}
 .case-card dd{margin:0;font:16px/1.6 var(--body);color:var(--muted)}
}
