:root {
  --ink: #192b38;
  --paper: #f8f2ea;
  --gold: #ff9b64;
  --muted: #d6dfe4;
}

.hero { background: radial-gradient(ellipse at 85% 5%, #304958, transparent 65%); }
h1 { font-size: clamp(2.65rem, 6vw, 5.5rem); }
h1 span {
  display: block;
  margin-top: .6rem;
  font-size: .47em;
  line-height: 1.12;
  letter-spacing: -.025em;
}
.intro { max-width: 52ch; }
.screens {
  position: relative;
  padding: 7% 14% 10% 0;
}
.screen-desktop, .screen-mobile {
  background: var(--paper);
  border: 5px solid #101d27;
  border-radius: 10px;
  box-shadow: 0 12px 26px #101d2780;
}
.screen-desktop { width: 100%; height: auto; }
.screens .screen-mobile {
  position: absolute;
  width: 29%;
  aspect-ratio: 390 / 844;
  overflow: hidden;
  right: 0;
  bottom: 0;
  border-radius: 14px;
}
.screen-mobile > img { width: 100%; height: 100%; object-fit: cover; }
.screen-mobile iframe {
  position: absolute;
  inset: 0 auto auto 0;
  width: 390px;
  height: 844px;
  border: 0;
  transform-origin: top left;
  pointer-events: none;
}
.demo-toggle {
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: var(--paper);
  padding: .4rem .65rem;
  font: inherit;
  cursor: pointer;
}
.demo-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.case-facts, .case-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.case-facts { margin-block: 2.5rem 0; }
.case-facts div { border-top: 1px solid var(--line); padding-top: 1rem; }
.case-facts dt { font-weight: 700; color: var(--gold); }
.case-facts dd { margin: .35rem 0 0; color: var(--muted); }
.case-pair { align-items: start; }
.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.timeline li { counter-increment: step; border-top: 2px solid #e66a25; padding: 1rem 0; }
.timeline li::before { content: counter(step, decimal-leading-zero); color: #934018; font: 700 1.15rem Outfit, sans-serif; }
.timeline h3 { margin: .45rem 0; font: 700 1.15rem/1.2 Outfit, sans-serif; }
.case-gallery { align-items: start; margin-top: 2rem; }
.case-mobile img { width: min(100%, 215px); }
.case-cta {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  padding: .85rem 1.2rem;
  margin-top: 1.5rem;
  font-weight: 700;
  text-underline-offset: .2em;
}
.visual a:focus-visible { outline-color: #934018; }
@media (max-width: 840px) {
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .case-facts, .case-gallery, .timeline { grid-template-columns: 1fr; }
}
