/* The Chalkies story on the front page. One pinned job-site stage; scrolling the page moves the camera.
   On a phone the caption sits above the drawing, on a wide screen beside it. The circles on the chalk line
   jump to a scene. Uses the colours and fonts from site.css. */
.st-world { --tag: #6B7279; position: relative; height: 610vh; }  /* six scenes, about 85vh each, plus one screen */
.st-stage {
  position: sticky; top: env(safe-area-inset-top, 0px);
  height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto; row-gap: 10px;
  padding-block: 10px 14px; overflow: hidden;
}
@supports (height: 100svh) {
  .st-world { height: 610svh; }
  .st-stage { height: calc(100svh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
}
.st-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.st-top .logo { width: 112px; height: 42px; }
.st-sub { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.st-what { margin: 0; min-width: 0; font: 700 13px/1.25 var(--body); color: var(--text2); }
.st-skip { flex: none; font: 800 14px/1 var(--body); color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; padding: 10px 2px; border-radius: 4px; }
.st-skip:focus-visible, .st-dot:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* captions stack in one grid cell, so the box is as tall as the longest one in any language */
.st-caps { display: grid; }
.st-cap { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 8px; opacity: 0; }
.st-cap:first-child { opacity: 1; }
.st-when { align-self: flex-start; margin: 0; font: 800 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--white); background: var(--tag); padding: 6px 9px; border-radius: 5px; }
.st-cap h2 { margin: 0; font: 900 clamp(32px, 9.2vw, 62px)/.95 var(--display); letter-spacing: .3px; text-transform: uppercase; text-wrap: balance; }
.st-cap h2 b { color: var(--blue); font-weight: 900; }
.st-cap p { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.4; max-width: 34em; }

.st-art { position: relative; min-height: 0; }
.st-art svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: hidden; }
.st-art .fd { font-family: var(--display); font-weight: 900; }
.st-art .fb8 { font-family: var(--body); font-weight: 800; }
.st-art .fb7 { font-family: var(--body); font-weight: 700; }
.st-art .fb5 { font-family: var(--body); font-weight: 500; }

.st-rail { display: flex; flex-direction: column; gap: 7px; }
.st-hint { margin: 0; font: 700 13px/1.2 var(--body); color: var(--text2); }
.st-dots { position: relative; height: 36px; margin-inline: 10px; }
.st-chalk { position: absolute; left: -10px; right: -10px; top: 50%; height: 5px; margin-top: -2.5px; background: var(--rule); border-radius: 3px; overflow: hidden; }
.st-chalk i { display: block; height: 100%; width: 0; background: var(--blue); }
.st-dot { position: absolute; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; display: grid; place-items: center; }
.st-dot i { display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--tag); }
.st-dot.st-on i { background: var(--blue); border-color: var(--blue); }
.st-dot.st-cur i { width: 22px; height: 22px; background: var(--blue); border-color: var(--ink); }

.st-end { padding-block: 44px 56px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.st-end h2 { margin: 0; font: 900 clamp(46px, 12.5vw, 92px)/.92 var(--display); letter-spacing: .3px; text-transform: uppercase; }
.st-end h2:focus { outline: none; }
.st-end h2 span, .st-end h2 b { display: block; }
.st-end h2 b { color: var(--blue); font-weight: 900; }
.st-end p { margin: 0; max-width: 36em; font-size: 17px; font-weight: 500; }
.st-soon { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 800 15px/1 var(--body); }
.st-soon span { color: var(--white); background: var(--orange); padding: 8px 11px; border-radius: 6px; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; }
.st-contact { font-weight: 700; }
.st-contact span { font-weight: 800; user-select: all; }

@media (min-width: 900px) {
  .st-stage { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto auto minmax(0, 1fr) auto; column-gap: 44px; row-gap: 12px; padding-block: 16px 20px; }
  .st-top, .st-sub, .st-rail { grid-column: 1 / -1; }
  .st-top .logo { width: 130px; height: 48px; }
  .st-what { font-size: 15px; }
  .st-skip { font-size: 16px; }
  .st-caps { align-self: center; }
  .st-cap { justify-content: center; gap: 14px; }
  .st-cap p { font-size: 19px; }
  .st-when { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .st-cap { transition: none; }
}
