/* Ever Clean Pest Control — the index poster. Phone first, desk added after. */

/* — the opening poster — */

.eve-open{padding-block:clamp(2.5rem,4vh,3.25rem) var(--breath)}
.eve-scene__grid{row-gap:1.6rem}
.eve-open__grid{row-gap:.9rem;grid-template-columns:minmax(0,1fr)}
.eve-open__sign{display:block;width:100%;max-width:100%;overflow:visible}

/* the one poster line: cut to the gutters, so both words sit inside them on any phone
   and the line spans the six columns on a desk */
.eve-open .eve-shout{font-size:clamp(1.7rem,10.9vw,4.2rem)!important;line-height:.86;
  letter-spacing:-.035em;margin:0;white-space:nowrap;max-width:100%}

.eve-open__said{margin:.45rem 0 0;max-width:36ch}

/* the cutout: a whole circle, no ring, clear of the gutters on a phone */
.eve-open__spot{width:min(100%,17rem);max-width:100%;aspect-ratio:1/1;margin:.9rem 0 0;justify-self:start}

.eve-open__ways{display:grid;gap:.55rem;justify-items:start;padding-top:.9rem}
.eve-open__name{display:inline-flex;align-items:center;min-height:44px;width:fit-content;padding:.2rem 0;
  font-family:'Archivo Black',Impact,'Segoe UI',sans-serif;font-size:var(--reading);line-height:1.1;
  letter-spacing:-.01em;text-decoration:none}
.eve-open__ways .eve-numerals{width:100%;margin:0}
.eve-open__ways .eve-button{margin-top:.55rem}

/* — every picture on this page is a whole shape: no border, no ring, no flap left lying over it — */

.eve-spot{border:0;outline:0;box-shadow:none}
.eve-spot img{display:block;width:100%;height:100%;object-fit:cover;border:0;outline:0}
eve-mask.eve-spot,eve-mask.eve-spot img{border:0!important;outline:0!important;box-shadow:none!important}
html.js eve-mask::after{display:none}

/* — the posters that follow — */

.eve-talk{display:grid;gap:.85rem;align-content:center;max-width:44ch}
.eve-talk p{margin:0;max-width:42ch}
.eve-turn{font-family:'Fira Sans Extra Condensed','Segoe UI',system-ui,sans-serif;font-size:var(--reading);
  line-height:1.28;margin:0;max-width:31ch;text-wrap:balance}

.eve-inside__spot{width:min(100%,22rem);justify-self:end}
.eve-bed__spot{width:min(100%,20rem);justify-self:start}
.eve-out__spot{width:min(100%,18rem);justify-self:end}
.eve-before__spot{width:min(100%,18rem);justify-self:start}
.eve-list__spot{width:min(100%,19rem);justify-self:start}

.eve-ready{list-style:none;margin:0;padding:0;display:grid;gap:.4rem}
.eve-ready li{font-size:var(--reading);line-height:1.35;padding-left:1.55rem;position:relative}
.eve-ready li::before{content:"";position:absolute;left:0;top:.55em;width:.62rem;height:.62rem;
  border-radius:50%;background:var(--signal)}

/* the roll: rows held apart by air, no rule under them */
.eve-roll{list-style:none;margin:.6rem 0 0;padding:0;display:grid}
.eve-roll li{display:grid;grid-template-columns:1fr auto;gap:.2rem 1rem;align-items:baseline;padding:.3rem 0}
.eve-roll a{display:inline-flex;align-items:center;min-height:44px;padding:.35rem 0;font-size:var(--reading);
  color:var(--type);text-decoration:none}
.eve-roll a:hover,.eve-roll a:focus-visible{background:var(--signal);color:var(--page)}
.eve-roll__tag{font-size:1rem;line-height:1.3;color:var(--signal);text-align:right}

/* — the hand-off: an open poster on the mint field, at reading size, with the call pill — */

.eve-hand{display:grid;gap:1.1rem;margin-top:1.4rem;padding:0;border-radius:0;
  background:none;color:var(--type)}
.eve-hand__word{margin:0;max-width:40ch;color:var(--type);
  font-family:'Archivo Black',Impact,'Segoe UI',sans-serif;
  font-size:var(--reading);line-height:1.35;letter-spacing:-.008em;text-wrap:balance}
.eve-hand__keys{display:flex;flex-wrap:wrap;gap:.6rem}
.eve-hand .eve-button{border-color:var(--signal);color:var(--type)}
.eve-hand .eve-button--fill{background:var(--signal);border-color:var(--signal);color:var(--page)}

/* the fixed pages control keeps out of the way while the routes are in reach */

.eve-index{transition:opacity .3s linear,visibility .3s linear}
html.js .eve-index[data-state="waiting"]{opacity:0;visibility:hidden}

/* the skip link waits above the window until a keyboard reaches it */

.eve-way-in{position:fixed;left:var(--edge);top:0;z-index:95;opacity:0;visibility:hidden;
  transform:translateY(-160%);transition:transform .18s linear,opacity .18s linear,visibility .18s linear}
.eve-way-in:focus,.eve-way-in:focus-visible{transform:none;opacity:1;visibility:visible}

@media (prefers-reduced-motion:reduce){
  .eve-index{transition:none}
  .eve-way-in{transition:none}
}

@media (min-width:30em){
  .eve-open__spot{width:min(100%,19rem)}
  .eve-inside__spot,.eve-list__spot{width:min(100%,26rem)}
  .eve-bed__spot,.eve-before__spot{width:min(100%,23rem)}
  .eve-out__spot{width:min(100%,21rem)}
}

@media (min-width:48em){
  .eve-scene__grid{row-gap:var(--breath)}
  .eve-open__grid{row-gap:1.1rem}

  .eve-open .eve-shout{font-size:13vw!important;line-height:.84}

  .eve-open__spot{grid-column:1/4;grid-row:3;align-self:start;justify-self:start;
    width:min(calc(100% + var(--edge)),64vh);max-width:none;margin:.2rem 0 0 calc(var(--edge) * -1)}
  .eve-open__ways{grid-column:4/7;grid-row:3;align-self:center;padding-top:0}
  .eve-open__name{font-size:calc(var(--reading)*1.08)}
  .eve-open__ways .eve-numerals{gap:.05rem}
  .eve-open__ways .eve-numerals a{padding:.6rem 0}

  .eve-inside__talk{grid-column:1/4;grid-row:1;align-self:center}
  .eve-inside__spot{grid-column:4/7;grid-row:1;justify-self:end;
    width:min(100%,32rem,54vh);margin-right:calc(var(--edge) * -1)}

  .eve-bed__talk{grid-column:4/7;grid-row:1;align-self:center}
  .eve-bed__spot{grid-column:1/4;grid-row:1;justify-self:start;
    width:min(100%,28rem,48vh);margin-left:calc(var(--edge) * -1)}

  .eve-out__talk{grid-column:1/4;grid-row:1;align-self:center}
  .eve-out__spot{grid-column:4/7;grid-row:1;justify-self:end;width:min(100%,24rem,40vh)}

  .eve-before__talk{grid-column:4/7;grid-row:1;align-self:center}
  .eve-before__spot{grid-column:1/4;grid-row:1;justify-self:start;
    width:min(100%,24rem,44vh);margin-left:calc(var(--edge) * -1)}

  .eve-list__talk{grid-column:4/7;grid-row:1;align-self:center}
  .eve-list__spot{grid-column:1/4;grid-row:1;justify-self:start;width:min(100%,24rem,40vh)}

  .eve-hand{grid-template-columns:1fr auto;align-items:center;gap:1.2rem 2.5rem;margin-top:1.8rem}
  .eve-hand__word{max-width:34ch}
  .eve-hand__keys{justify-content:flex-end}
}
