/* Services section: the working demo on the left, the choices on the right. */
.systems .system-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
.cap-controls h2 { font-size: clamp(2.3rem, 4.5vw, 4.4rem); line-height: .99; }
.cap-controls p { margin-top: .8rem; color: var(--on-dark-muted); }
.cap-detail .cap-preview img { height: clamp(110px, 14vw, 185px); aspect-ratio: auto; object-position: 65% center; }
.cap-detail h3 { font-size: 1.35rem; }
.try-stage { position: relative; justify-self: center; width: 100%; max-width: 33rem; min-width: 0; overflow: hidden; border: .35rem solid #3a3c43; border-radius: 1.1rem; background: #f3ede5; box-shadow: 0 28px 60px -20px #000c, 0 0 0 1px #ffffff1a; }
.demo-screen { position: relative; }
/* Beside the choices, the frame reaches further left, into the page margin on wide screens. */
@media (min-width: 801px) { .try-stage { justify-self: stretch; width: auto; max-width: none; margin-right: clamp(0rem, 3vw, 4rem); } }
@media (min-width: 1500px) { .try-stage { margin-left: -6rem; } }
/* Shown over the frame until the demo has arrived. */
.demo-loading { position: absolute; inset: 2rem 0 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: .3rem; background: #faf9f5; color: #4a4642; font-size: .95rem; }
.demo-loading[hidden] { display: none; }
.demo-loading a { display: inline-flex; align-items: center; min-height: 2.75rem; color: #221e1d; font-size: .85rem; text-underline-offset: .25em; }
.demo-screen[hidden] { display: none; }
.demo-bar { display: flex; align-items: center; gap: .25rem; padding: .45rem .6rem; background: #dedbd7; color: #221e1d; }
.demo-bar i { width: .42rem; height: .42rem; border-radius: 50%; background: #71c7ff; }
.demo-bar span { margin-left: .6rem; font: 600 .8rem monospace; }
.demo-screen iframe { display: block; width: 100%; height: clamp(400px, 60vh, 540px); border: 0; background: #faf9f5; }
@media (max-width: 800px) {
  .systems .system-grid { grid-template-columns: minmax(0, 1fr); }
  .systems .cap-list { display: contents; }
  .cap-controls { grid-row: 1; }
  .try-stage { grid-row: 2; }
  .cap-detail { grid-row: 3; }
}

/* "Plan this project" is the section's button, so it must not take the link colour. */
.cap-list a#scope { color: var(--peach-ink); text-decoration: none; margin-top: .3rem; }

/* Short desktop screens (most laptops): size by height as well, so the demo and its choices fit in one view. */
@media (min-width: 801px) and (max-height: 860px) {
  .systems { padding-block: 1.25rem; }
  .demo-screen iframe { height: clamp(320px, calc(100svh - 13rem), 540px); }
  .cap-controls h2 { font-size: clamp(1.8rem, min(3.4vw, 7vh), 3.4rem); }
  .cap-controls p { margin-top: .4rem; }
  .cap-list .caps { margin-block: .8rem; }
  .cap-detail .cap-preview img { height: 13vh; margin-bottom: .6rem; }
  .cap-detail h3 { font-size: 1.15rem; }
  .cap-list output { min-height: 0; margin-block: .2rem .3rem; }
}
@media (min-width: 801px) and (max-height: 700px) {
  .cap-detail .cap-preview { display: none; }
}

/* Parts of each demo, flying into its screen. */
.flying { position:absolute; z-index:3; translate:-50% -50%; display:grid; gap:.15rem; padding:.5rem .65rem; border-radius:.6rem; background:#fff; color:#1d2430; box-shadow:0 10px 26px #0006; font:400 clamp(.68rem,1.1vw,.85rem)/1.3 system-ui,sans-serif; text-align:left; white-space:nowrap; pointer-events:none }
.flying strong { font-size:1.08em } .flying small { font-size:.9em; color:#5b6474 }
.flying img { display:block; width:100%; object-fit:cover; border-radius:.35rem }
.flying-logo strong { font:400 2.1em/1 Georgia,serif; letter-spacing:-.06em }
.flying-hero { width:min(62%,300px); padding:.35rem } .flying-hero img { aspect-ratio:2 } .flying-hero strong { font-family:Georgia,serif; font-weight:400; font-size:1.35em; padding:0 .25rem; white-space:normal }
.flying-product { width:min(27%,125px); padding:.35rem } .flying-product img { aspect-ratio:1 }
.flying-bar,.flying-button { background:var(--tone); color:#fff; font-weight:600 }
.flying-bar { border-radius:.35rem; padding:.7rem 1rem; border:1px solid #ffffff66 }
.flying-tile { min-width:5.5em; border-top:5px solid var(--tone); color:var(--tone) } .flying-tile strong { font-size:1.9em; line-height:1 } .flying-tile small { color:var(--tone) }
.flying-card { border-left:5px solid var(--tone) }
@media(max-width:600px) { .flying { font-size:.62rem; padding:.35rem .45rem } .flying-card small { max-width:17ch; overflow:hidden; text-overflow:ellipsis } }
