/* Services: the opening, the hover roll, the pricing band. Builds on site.css. */

/* Opening: the photograph bleeds off the right edge, text keeps the page margin. */
.svc-open {
  display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: end;
  padding-block: clamp(2.5rem, 6vw, 6rem) clamp(3rem, 7vw, 7rem);
  padding-left: max(var(--gut), calc((100% - var(--max)) / 2 + var(--gut)));
  padding-right: 0;
}
.svc-open__text { padding-right: var(--gut); }
.svc-open__text > * + * { margin-top: 1.25rem; }
.svc-open h1 { overflow-wrap: break-word; }
.svc-open__media { min-width: 0; }
@media (min-width: 56rem) {
  .svc-open { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
}

/* The roll: names in one column. Touch and narrow screens get a picture inside each row. */
.roll__list { list-style: none; margin: 0; padding: 0; border-bottom: .07rem dashed rgba(30, 42, 71, .35); }
.roll__row {
  position: relative; padding-block: clamp(1.5rem, 3vw, 2.5rem);
  border-top: .07rem dashed rgba(30, 42, 71, .35);
}
.roll__row::before {
  content: ""; position: absolute; left: 0; top: -.1rem; height: .2rem; width: 0;
  background: var(--stitch); transition: width .8s var(--ease);
}
.roll__row.is-on::before, .roll__row:focus-within::before { width: 100%; }
.roll__kind { display: flex; flex-wrap: wrap; gap: .3rem .9rem; color: var(--ink-soft); }
.roll__n { color: var(--ink); }
.roll__name {
  margin-top: .6rem; font-size: clamp(2.4rem, 1.2rem + 4.4vw, 5rem);
  line-height: 1; letter-spacing: -.025em; overflow-wrap: break-word;
  transition: transform .6s var(--ease);
}
.roll__name a::after { content: ""; position: absolute; inset: 0; }
.roll__name a:focus-visible { outline-offset: .1rem; }
.roll__line { margin-top: .9rem; max-width: 30em; font-size: 1.0625rem; }
.roll__pic { margin-top: 1.25rem; max-width: 34rem; }
.roll__pic img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .2rem; }
.roll__frame { display: none; }

/* Desk screens with a pointer: the sticky frame cross-fades, only opacity changes. */
@media (min-width: 56rem) and (hover: hover) {
  .roll__grid {
    display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(2rem, 5vw, 5rem); align-items: start;
  }
  .roll__pic { display: none; }
  .roll__row.is-on .roll__name { transform: translateX(.6rem); }
  .roll__frame {
    display: block; position: sticky; top: calc(var(--head) + 1.5rem);
    height: min(40rem, calc(100vh - var(--head) - 3rem)); min-height: 20rem;
  }
  .roll__stack { position: absolute; inset: 0; overflow: hidden; border-radius: .2rem; background: var(--paper); }
  .roll__stack img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity .9s var(--ease);
  }
  .roll__stack img.is-on { opacity: 1; }
  .roll__frame.is-tilt .roll__tag { transform: rotate(calc(var(--tilt) + 1deg)); }
}

/* Pricing band: paws large, the coral-edged call tag sewn onto the photograph. */
.tag--coral-edge { border: .2rem solid var(--coral); box-shadow: .2rem .3rem 0 var(--ink); }
.price__pic { min-width: 0; }
.price__pic img { aspect-ratio: 1 / 1; height: auto; }
.price__text { min-width: 0; }
.price__text > * + * { margin-top: 1.25rem; }
@media (min-width: 56rem) {
  .price .grid, .price.screen > .grid { align-items: center; }
  .price__pic { grid-column: 1 / span 6; }
  .price__text { grid-column: 8 / span 5; }
}

/* Closing line */
.close__line { max-width: 22em; }
.close__line .link { background-size: 100% .18rem; }
