/* Fightplan case page: Basin's front desk, a working app demo (2026-11-21, KD-58 portfolio). Page: /work/front-desk.
   Loaded after styles.css, inner.css and work.css; no script of its own (site.js and inner.js run as on the other
   case pages). The app is its own page (/assets/work/front-desk/) and plays here in an iframe inside a device frame:
   a browser frame on laptops and tablets, a plain screen-shaped frame on phones. The frame is sized so the whole
   board shows without the app having to scroll on a laptop screen.
   Blocks:
     .fd-stage   the black stage: the heading and four steps, the frame, the caption
     .fd-show    how it works (inner.css .show): four facts and the link to the apps page on the left
     .fd-mirror  on its right, from 1024 px up, the same app on a phone: an inert copy that mirrors the frame above */

.fd-stage{border-top:1px solid var(--border);background:var(--black);padding:var(--space-7) 0 var(--space-6)}
.fd-wrap{max-width:1400px;margin:0 auto;padding:0 max(var(--gutter),3vw)}
.fd-head{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,8fr);column-gap:var(--space-7);align-items:end;margin-bottom:var(--space-5)}
.fd-head h2{font-size:clamp(40px,4.4vw,64px);line-height:.92}
.fd-head h2 > .label{display:block;margin-bottom:var(--space-3)}
.fd-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--border-strong)}
.fd-steps li{padding:var(--space-3) var(--space-4) 0 0;font-size:var(--text-md);line-height:1.4;color:var(--fg-2)}
.fd-steps li + li{padding-left:var(--space-4);border-left:1px solid var(--border)}
.fd-steps b{display:block;margin-bottom:4px;font-family:var(--font-display);font-weight:700;font-size:15px;letter-spacing:.06em;color:var(--muted)}

/* the frame: the app fills it; on a laptop the frame takes the window's height less the room for the bar and caption */
.fd-frame{width:100%;background:#121314}
.fd-frame .frame-view{aspect-ratio:auto;height:clamp(560px,calc(100vh - 190px),800px)}
.fd-frame iframe{display:block;width:100%;height:100%;border:0;background:#121314;color-scheme:dark}
.fd-cap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 var(--space-5);padding:var(--space-3) 0 0}
.fd-cap .work-cap{padding:0}
.fd-cap .link-arrow{min-height:44px;color:var(--fg-2)}
.fd-cap .link-arrow:hover{color:var(--fg)}
.fd-cap .link-arrow .icon{width:18px;height:18px}

/* how it works: the facts one under another beside the phone mirror; the mirror only from 1024 px up */
.fd-show .fd-specs{grid-template-columns:minmax(0,1fr);margin-top:var(--space-5);padding-bottom:0}
.fd-show .show-line{margin-top:var(--space-5)}
.fd-show .link-arrow{min-height:44px}
.fd-show .link-arrow .icon{width:18px;height:18px}
.fd-mirror{align-items:center}
.fd-mirror .frame-phone{width:min(100%,360px);background:#121314}
.fd-mirror iframe{display:block;width:100%;height:100%;border:0;background:#121314;color-scheme:dark}
.fd-mirror .work-cap{width:min(100%,360px)}
@media (max-width:1023px){
  .fd-mirror{display:none}
}

@media (max-width:1023px){
  .fd-head{grid-template-columns:minmax(0,1fr);row-gap:var(--space-5)}
  .fd-frame .frame-view{height:clamp(560px,calc(100vh - 160px),760px)}
}
@media (max-width:767px){
  .fd-stage{padding:var(--space-6) 0 var(--space-5)}
  .fd-wrap{padding:0 var(--gutter)}
  .fd-head{margin-bottom:var(--space-4)}
  .fd-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fd-steps li,.fd-steps li + li{padding:var(--space-3) var(--space-3) var(--space-3) 0;border-left:0;font-size:var(--text-sm)}
  .fd-steps li:nth-child(even){padding-left:var(--space-3);border-left:1px solid var(--border)}
  .fd-steps li:nth-child(n+3){border-top:1px solid var(--border)}
  /* phones: a plain screen-shaped frame, a little shorter than the window so the page around it stays in reach */
  .fd-frame .frame-bar{display:none}
  .fd-frame .frame-view{height:min(760px,calc(100vh - 120px));height:min(760px,calc(100svh - 120px));min-height:520px}
  .fd-cap{flex-direction:column;align-items:flex-start}
  .fd-cap .link-arrow{min-height:44px}
}
