/* About: the order of a groom, drawn in hairlines. Read top to bottom like the page. */

/* The opening: a plain stack on a phone, the title on the seam at the left on a desk. */
.gtt-order{
  padding-block:clamp(1.25rem,3vh,2.5rem);
  padding-inline:clamp(1rem,4vw,3rem);
}
.gtt-order-title{margin:0 0 1rem;font-size:1.75rem;line-height:1.12;font-weight:500}
.gtt-order-body h2{font-weight:500;margin-block:0 1.1rem}
.gtt-intro{
  margin:0 0 clamp(1.1rem,2.5vh,1.75rem);
  font-size:clamp(1.125rem,.6vw + 1rem,1.3rem);line-height:1.5;max-width:60ch;
}

/* The diagram: four stops, a right-angled path under them, marks at its extremes. */
.gtt-sequence{margin:0}
.gtt-diagram{margin-block:.5rem;margin-inline:.4rem}
.gtt-runs{
  position:absolute;inset:0;width:100%;height:100%;
  fill:none;stroke:currentColor;stroke-width:.12rem;stroke-linejoin:miter;
  clip-path:inset(-.5rem);
  transition:clip-path 1.8s linear;
}
.gtt-run-wide{display:none}
.gtt-stages{
  position:relative;
  display:grid;grid-template-columns:minmax(0,1fr);
  grid-template-rows:repeat(4,minmax(6.5rem,1fr));
  list-style:none;margin:0;padding:0;
}
.gtt-stage{
  grid-row:var(--stop);
  display:flex;flex-direction:column;justify-content:flex-end;
  padding-block:.5rem .75rem;padding-inline:1rem;
}
.gtt-stage h3{margin:0 0 .2rem;font-size:1.375rem;font-weight:500;line-height:1.15}
.gtt-stage p{margin:0;max-width:none;font-size:1.0625rem;line-height:1.4}
.gtt-sequence-note{margin-block-start:1rem;font-size:1rem;line-height:1.45;max-width:60ch}

/* Waiting below the fold, the path starts unclipped to nothing and draws on arrival. */
.gtt-undrawn .gtt-runs{clip-path:inset(-.5rem -.5rem 100% -.5rem)}
.gtt-drawn .gtt-runs{clip-path:inset(-.5rem)}

/* Three short paragraphs under the diagram. */
.gtt-leftout{padding-block-start:clamp(1.75rem,5vh,3.5rem)}
.gtt-leftout-text{display:grid;gap:1rem clamp(1.25rem,3vw,2.5rem)}
.gtt-leftout-text p{margin:0;max-width:none;font-size:var(--reading);line-height:1.55}

/* The owner's words, in a wider measure, with the lead beside them. */
.gtt-voice{align-items:start}
.gtt-voice-text,.gtt-voice-print{grid-column:1/-1}
.gtt-voice-text h2{font-weight:500;margin-block-end:1rem}
.gtt-voice-text p{
  max-width:58ch;font-size:clamp(1.125rem,.5vw + 1.02rem,1.3rem);line-height:1.55;
}
.gtt-voice-print{padding:.4rem}
.gtt-voice-print figcaption{font-size:1rem;max-width:36ch}

/* The hand-off: the questions as plain links, the phone at picture size. */
.gtt-ask{align-items:center}
.gtt-ask-text,.gtt-ask-dial{grid-column:1/-1}
.gtt-ask-text h2{font-weight:500}
.gtt-ask-ways{list-style:none;margin:0 0 .5rem;padding:0;display:grid;gap:.2rem;font-size:var(--reading)}
.gtt-ask-ways a{display:inline-block;padding-block:.4rem;font-weight:600}
.gtt-ask-dial{display:grid;justify-items:start;align-content:center;gap:.75rem}
.gtt-ask-dial p{margin:0}
.gtt-ask-phone{display:inline-block;padding:.45rem .6rem}

@media (min-width:60rem){
  .gtt-order{
    display:grid;grid-template-columns:auto minmax(0,1fr);
    column-gap:clamp(1.25rem,3vw,3rem);
  }
  .gtt-order-title{
    margin:0;writing-mode:vertical-rl;text-orientation:mixed;
    font-size:clamp(1.875rem,2.2vw,2.25rem);line-height:1.15;
    padding-block-start:clamp(.75rem,1.5vw,1.25rem);
    border-block-start:var(--edge) solid var(--rule-seam);
  }
  .gtt-run-tall{display:none}
  .gtt-run-wide{display:inline}
  .gtt-stages{grid-template-columns:repeat(4,minmax(0,1fr))}
  .gtt-stage{grid-column:var(--stop)}
  .gtt-undrawn .gtt-runs{clip-path:inset(-.5rem 100% -.5rem -.5rem)}
  .gtt-leftout-text{grid-template-columns:repeat(3,minmax(0,1fr))}
  .gtt-voice-text{grid-column:1/8}
  .gtt-voice-print{grid-column:8/-1}
  .gtt-ask-text{grid-column:1/8}
  .gtt-ask-dial{grid-column:8/-1}
}

@media (prefers-reduced-motion:reduce){
  .gtt-runs{transition:none}
}
