/*
 * Doula page (classes p06-) and the two blocks its brief introduced, which
 * any industry page can use: the Dark night section (nightsection) and the
 * Service area map (servicemap). The warm, night-time page: soft cream, one
 * dark section, slow motion and no fast loops. Linked only on pages with
 * those classes (peanut_scoped_css()). Tokens only. Layer blocks for the
 * static state, layer motion for what moves (docs/design/components.md,
 * "Industry pages").
 */

@layer blocks {
  /* ---------- Live card doula-3am: a phone screen in dark mode. The search
     types in, a result opens, the package card stands for a long while. The
     static card is the package card. ---------- */

  .p06-lcard {
    padding: var(--space-2) var(--space-3) var(--space-3);
    background: var(--color-ink);
    border-color: var(--color-on-ink-line-strong);
    border-radius: 1.25rem;
    color: var(--color-white);
  }

  .p06-lcard .lcard__cursor {
    background: var(--color-white);
    border-color: var(--color-ink);
  }

  .p06-lcard__bar {
    display: flex;
    gap: var(--space-2);
    justify-content: space-between;
    margin: 0 0 var(--space-2);
    padding-block-end: var(--space-1);
    border-block-end: 1px solid var(--color-on-ink-line);
    color: var(--color-on-ink-label);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
  }

  .p06-lcard__time {
    font-variant-numeric: tabular-nums;
  }

  .p06-lcard__search {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin: 0 0 var(--space-2);
    padding: 0.5rem 0.875rem;
    background: var(--color-on-ink-fill);
    border: 1px solid var(--color-on-ink-line);
    border-radius: var(--radius-pill);
    font-weight: 500;
  }

  .p06-lcard__glass,
  .p06-search__glass {
    position: relative;
    flex: none;
    width: 0.625rem;
    height: 0.625rem;
    border: 1.5px solid currentColor;
    border-radius: 50%;
  }

  .p06-lcard__glass::after,
  .p06-search__glass::after {
    content: "";
    position: absolute;
    right: -0.25rem;
    bottom: -0.1875rem;
    width: 0.3125rem;
    height: 1.5px;
    background: currentColor;
    transform: rotate(45deg);
  }

  .p06-type {
    display: inline-block;
  }

  .p06-lcard__result {
    display: grid;
    gap: 0.125rem;
    margin: 0;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--color-on-ink-line);
    border-radius: 0.75rem;
    transition: background-color 240ms var(--ease-out), color 240ms var(--ease-out);
  }

  .p06-lcard__result.is-tapped {
    background: var(--color-brand);
    color: var(--color-ink);
  }

  .p06-lcard__result-title {
    font-weight: 500;
  }

  .p06-lcard__result-url {
    font-size: 0.6875rem;
    opacity: 0.7;
  }

  .p06-lcard__eyebrow {
    color: var(--color-on-ink-label);
  }

  .p06-lcard__title {
    color: var(--color-white);
  }

  .p06-lcard__field {
    display: flex;
    gap: var(--space-2);
    justify-content: space-between;
    align-items: center;
    margin: 0 0 var(--space-2);
    padding: 0.5625rem 0.875rem;
    border: 1px dashed var(--color-on-ink-line-strong);
    border-radius: 0.75rem;
    color: var(--color-on-ink-text);
  }

  .p06-lcard__cal {
    flex: none;
    width: 0.875rem;
    height: 0.875rem;
    border: 1.5px solid currentColor;
    border-top-width: 4px;
    border-radius: 0.1875rem;
  }

  .p06-lcard__btn {
    margin: 0;
    padding: 0.75rem var(--space-2);
    background: var(--color-brand);
    color: var(--color-ink);
    font-size: var(--btn-font-size);
    font-weight: var(--btn-weight);
    letter-spacing: var(--btn-tracking);
    text-align: center;
    text-transform: uppercase;
  }

  /* ---------- Problem drawings: their own parts. The static drawing is the
     finished one. ---------- */

  .diagram .p06-ring {
    opacity: 0.4;
  }

  .diagram .p06-faint {
    opacity: 0.45;
  }

  .diagram .p06-grey {
    opacity: 0.4;
  }

  .diagram .p06-photo {
    fill: var(--color-ink);
    opacity: 0.22;
  }

  /* the search typed in the feed drawing: small enough to stay in its pill */
  .diagram .p06-query {
    font-size: 9.5px;
  }

  .diagram .p06-booked {
    fill: var(--color-ink);
    opacity: 0.28;
  }

  .diagram .p06-stamp {
    fill: var(--color-butter);
    stroke: var(--color-ink);
    stroke-width: 1.5;
  }

  .diagram .p06-stamp__text {
    font-size: 12px;
    font-weight: var(--weight-strong);
    letter-spacing: 0.14em;
  }

  .diagram .p06-road {
    fill: none;
    stroke: var(--color-ink);
    stroke-width: 1.5;
    stroke-linecap: round;
    opacity: 0.18;
  }

  .diagram .p06-trail {
    fill: none;
    stroke: var(--color-ink);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 4 5;
    opacity: 0.6;
  }

  .diagram .p06-pin {
    fill: var(--color-accent-2);
    stroke: var(--color-ink);
    stroke-width: 1.5;
  }

  .diagram .p06-handset {
    fill: var(--color-ink);
  }

  /* ---------- Dark night section (blocks/nightsection): deep ink, a faint
     warm glow and a small clock in the corner. The head on the left; the
     questions and their example answers on the right, all plain text. ---------- */

  .nightsection {
    position: relative;
    isolation: isolate;
  }

  .nightsection__glow {
    position: absolute;
    z-index: -1;
    inset: calc(-1 * var(--section-pad-top)) 0 calc(-1 * var(--section-pad-bottom));
    background: radial-gradient(ellipse 60% 55% at 88% 8%, var(--color-butter), transparent 70%);
    opacity: 0.14;
    pointer-events: none;
  }

  .nightsection__clock {
    position: absolute;
    top: calc(var(--space-3) - var(--section-pad));
    right: 0;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    color: var(--color-on-ink-label);
    font-size: var(--step--1);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.08em;
  }

  .nightsection__clock::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border: 1px solid var(--color-gold-soft);
    border-radius: 50%;
  }

  .nightsection__head {
    max-width: 40rem;
  }

  .nightsection .eyebrow {
    color: var(--color-on-ink-label);
  }

  .nightsection__title {
    margin: 0;
    color: var(--color-white);
  }

  .nightsection__title em {
    color: var(--color-brand);
  }

  .nightsection__intro {
    margin: var(--space-3) 0 0;
    color: var(--color-on-ink-text);
    line-height: var(--leading-body);
  }

  .nightsection__body {
    margin-block-start: var(--space-5);
  }

  .nightsection__label {
    margin: 0 0 var(--space-3);
    color: var(--color-on-ink-label);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
  }

  .nightsection__list {
    display: grid;
    margin: 0;
  }

  .nightsection__item {
    display: grid;
    gap: var(--space-1);
    padding-block: var(--space-3);
    border-block-start: 1px solid var(--color-on-ink-line);
  }

  .nightsection__q {
    font-family: var(--font-heading);
    font-size: var(--step-2);
    font-weight: var(--weight-heading);
    line-height: 1.25;
    color: var(--color-white);
  }

  .nightsection__a {
    margin: 0;
    color: var(--color-on-ink-text);
    line-height: var(--leading-body);
  }

  .nightsection__aside {
    display: grid;
    gap: var(--space-1);
    margin-block-start: var(--space-4);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-on-ink-line);
    border-radius: var(--radius-sm);
  }

  .nightsection__aside-title {
    margin: 0;
    font-size: var(--step-2);
    color: var(--color-white);
  }

  .nightsection__aside-text {
    margin: 0;
    color: var(--color-on-ink-text);
    line-height: var(--leading-body);
  }

  .nightsection__outro {
    max-width: 30rem;
    margin: var(--space-5) 0 0;
    font-family: var(--font-heading);
    font-size: var(--step-3);
    font-weight: var(--weight-heading);
    line-height: 1.3;
    color: var(--color-white);
    text-wrap: balance;
  }

  @media (min-width: 60rem) {
    .nightsection {
      display: grid;
      grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
      column-gap: var(--space-7);
      align-items: start;
    }

    .nightsection__head {
      position: sticky;
      top: calc(var(--header-height) + var(--space-5));
    }

    .nightsection__body {
      margin-block-start: 0;
    }

    .nightsection__item {
      grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
      column-gap: var(--space-4);
    }
  }

  /* ---------- Service area map (blocks/servicemap): two halves. Where I
     go: the map with your town in the center and two rings, the towns as
     buttons, the answer line and the plain list. When I'm on call: one bar
     with the on-call stretch shaded, then plain lines ---------- */

  .servicemap__head {
    max-width: 44rem;
    margin-block-end: var(--space-5);
  }

  .servicemap__title {
    margin: 0;
  }

  .servicemap__intro {
    margin: var(--space-3) 0 0;
  }

  .servicemap__grid {
    display: grid;
    gap: var(--space-6);
  }

  .servicemap__half {
    margin: 0 0 var(--space-2);
    font-size: var(--step-3);
    line-height: 1.2;
  }

  /* the tap hint is the shared one (snippets/demo/hint.php, industry.css) */
  .servicemap__hint {
    margin: 0 0 var(--space-2);
  }

  .servicemap__map {
    position: relative;
    aspect-ratio: 1;
    max-width: 30rem;
    overflow: hidden;
    background: var(--color-paper);
    border: 1px solid var(--color-ink);
    border-radius: var(--radius-sm);
  }

  .section--paper .servicemap__map {
    background: var(--color-white);
  }

  .servicemap__svg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
  }

  .servicemap__river {
    fill: none;
    stroke: var(--color-ink);
    stroke-width: 2;
    stroke-linecap: round;
    opacity: 0.12;
  }

  .servicemap__road {
    fill: none;
    stroke: var(--color-ink);
    stroke-width: 1.2;
    stroke-linecap: round;
    opacity: 0.14;
  }

  .servicemap__ring {
    stroke: var(--color-ink);
    stroke-width: 1.5;
    transform-box: fill-box;
    transform-origin: center;
  }

  .servicemap__ring--out {
    fill: var(--color-butter);
    stroke-dasharray: 4 6;
  }

  .servicemap__ring--in {
    fill: var(--color-brand);
  }

  .servicemap__ringlabel {
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.04em;
    fill: var(--color-ink);
  }

  .servicemap__town {
    position: absolute;
    top: calc(var(--y, 50) * 1%);
    left: calc(var(--x, 50) * 1%);
    z-index: 1;
    display: flex;
    gap: 0.375rem;
    align-items: center;
    min-height: 2rem;
    margin: 0;
    padding: 0.25rem 0.625rem 0.25rem 0.375rem;
    background: var(--color-white);
    border: 1px solid var(--color-ink);
    border-radius: var(--radius-pill);
    color: inherit;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    translate: -50% -50%;
    transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
  }

  .servicemap__town[disabled] {
    cursor: default;
  }

  .servicemap__town:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
  }

  .servicemap__town:not([disabled]):hover {
    box-shadow: 2px 2px 0 var(--color-ink);
  }

  .servicemap__town[aria-pressed="true"] {
    z-index: 2;
    background: var(--color-ink);
    color: var(--color-white);
    box-shadow: 3px 3px 0 var(--color-accent-2);
  }

  .servicemap__dot {
    flex: none;
    width: 0.75rem;
    height: 0.75rem;
    border: 1px solid var(--color-ink);
    border-radius: 50%;
  }

  .servicemap__town[aria-pressed="true"] .servicemap__dot {
    border-color: var(--color-white);
  }

  .servicemap__town--home .servicemap__dot,
  .servicemap__town--here .servicemap__dot {
    background: var(--color-brand);
  }

  .servicemap__town--near .servicemap__dot {
    background: var(--color-butter);
  }

  .servicemap__town--outside .servicemap__dot {
    background: var(--color-white);
    border-style: dashed;
  }

  /* the answer line: the town, then its answer under it; it keeps room for
     the longest answer (two lines on phones), so nothing under it moves */
  .servicemap__answer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.125rem;
    max-width: 30rem;
    min-height: 6.75rem;
    line-height: 1.5;
    margin: var(--space-2) 0 0;
    padding: var(--space-2) var(--space-3);
    background: var(--color-white);
    border: 1px solid var(--color-ink);
    border-radius: var(--radius-sm);
  }

  .servicemap__answer strong {
    font-weight: 600;
  }

  .servicemap__list {
    display: grid;
    max-width: 30rem;
    margin: var(--space-4) 0 0;
    font-size: var(--step--1);
  }

  .servicemap__row {
    display: flex;
    gap: var(--space-2);
    justify-content: space-between;
    padding-block: 0.625rem;
    border-block-start: var(--border);
  }

  .servicemap__row dt {
    font-weight: 500;
  }

  .servicemap__row dd {
    margin: 0;
    text-align: right;
  }

  /* the weeks: one bar, the on-call stretch shaded with its line in it */
  .servicemap__bar {
    display: flex;
    min-height: 3.25rem;
    margin: var(--space-3) 0 var(--space-1);
    overflow: hidden;
    background: var(--color-white);
    border: 1px solid var(--color-ink);
    border-radius: var(--radius-pill);
  }

  .servicemap__shade {
    display: flex;
    flex: 1;
    align-items: center;
    margin: 0 0 0 calc(var(--from, 0) * 1%);
    padding: 0.5rem var(--space-3) 0.5rem var(--space-2);
    background: var(--color-butter);
    border-inline-start: 1px solid var(--color-ink);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
  }

  .servicemap__ends {
    display: flex;
    justify-content: space-between;
    margin: 0;
    padding-inline: 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
  }

  .servicemap__lines {
    display: grid;
    margin: var(--space-4) 0 0;
    padding: 0;
    list-style: none;
  }

  .servicemap__line {
    display: flex;
    gap: var(--space-2);
    align-items: baseline;
    padding-block: var(--space-2);
    border-block-start: var(--border);
    font-size: var(--step-1);
    line-height: 1.4;
  }

  .servicemap__line:last-child {
    border-block-end: var(--border);
  }

  .servicemap__line::before {
    content: "";
    flex: none;
    width: 0.625rem;
    height: 0.625rem;
    background: var(--color-brand);
    border: 1px solid var(--color-ink);
    border-radius: 50%;
  }

  .servicemap__outro {
    max-width: 44rem;
    margin: var(--space-5) 0 0;
  }

  @media (min-width: 30rem) {
    .servicemap__answer {
      min-height: 5.25rem;
    }
  }

  @media (min-width: 60rem) {
    .servicemap__grid {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      column-gap: var(--space-7);
      align-items: start;
    }
  }

  /* ---------- Packages a parent can choose (blocks/phonedemo, layout side,
     2026-11-20): the needs on the left, the phone on the right with the
     chooser inside it, the time stamp and the closing line under the phone.
     The cards share one cell once the script runs (phonedemo--stack), so
     the phone keeps the tallest card's height ---------- */

  .p06-packages .phonedemo__needs {
    margin: 0;
  }

  .p06-packages .phonedemo__need {
    padding-block-start: var(--space-3);
    border-block-start: 1px solid var(--color-ink);
  }

  /* the chooser, inside the phone above the card */
  .p06-packages .phonedemo__asks {
    padding: var(--space-1) 0.625rem 0;
  }

  .p06-packages .phonedemo__form {
    gap: var(--space-2);
  }

  .p06-packages .phonedemo__legend {
    font-size: 0.625rem;
  }

  .p06-packages .phonedemo__step .phonedemo__legend {
    margin-block-end: 0.25rem;
  }

  .p06-packages .phonedemo__option {
    position: relative;
    overflow: hidden;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: var(--step--1);
  }

  .p06-packages .phonedemo__select {
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: var(--step--1);
  }

  .p06-packages .phonedemo__screen {
    min-height: 0;
  }

  .p06-packages[data-live] :is(.phonedemo__hint, .phonedemo__full) {
    grid-area: 1 / 1;
    align-self: start;
  }

  /* auto-play (phonedemo.js): a thin bar fills under the picked option
     until the next one; gone once the visitor takes over */
  .p06-packages.is-auto .phonedemo__option:has(:checked)::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: var(--color-ink);
    transform-origin: left center;
    animation: phonedemo-step var(--demo-step, 4000ms) linear both;
  }

  .p06-packages__time {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
    margin: var(--space-3) 0 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: var(--tracking-caps);
    text-transform: uppercase;
  }

  .p06-packages__dot {
    flex: none;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--color-brand);
    border: 1px solid var(--color-ink);
    border-radius: 50%;
  }

  .p06-packages .phonedemo__outro {
    max-width: 22rem;
    margin: var(--space-2) auto 0;
    font-size: var(--step-2);
  }

  /* on paper every package shows, one under another, and the hint and the
     waitlist line do not */
  @media print {
    .p06-packages[data-live] .phonedemo__panel {
      grid-area: auto;
    }

    .p06-packages[data-live] .phonedemo__panel[data-off] {
      visibility: visible;
    }

    .p06-packages[data-live] :is(.phonedemo__hint, .phonedemo__full) {
      display: none;
    }
  }

  @media (min-width: 60rem) {
    /* two equal halves: the needs at a reading width on the left, the
       phone centered in the right half */
    .p06-packages .phonedemo__grid {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      align-items: center;
    }

    .p06-packages .phonedemo__needs {
      grid-template-columns: minmax(0, 1fr);
      max-width: 34rem;
      gap: var(--space-5);
    }

    .p06-packages .phonedemo__outro {
      margin-block-start: var(--space-2);
    }
  }

  /* ---------- Searches (visuals/p06-searches, blocks/showcase): three
     searches, each with a result titled for a town, each leading to its own
     page ---------- */

  .p06-searches {
    display: grid;
    gap: var(--space-3);
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .p06-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1.5rem 6.5rem;
    gap: 0.5rem 0.5rem;
    align-items: center;
  }

  .p06-search__query {
    grid-column: 1 / -1;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-self: start;
    margin: 0;
    padding: 0.3125rem 0.875rem;
    background: var(--color-white);
    border: var(--border);
    border-radius: var(--radius-pill);
    font-weight: 500;
  }

  .p06-search__hit,
  .p06-search__page {
    display: grid;
    gap: 0.3125rem;
    padding: 0.625rem 0.75rem;
    background: var(--color-white);
    border: var(--border);
    border-radius: 0.625rem;
  }

  .p06-search__hit {
    background: var(--color-brand);
  }

  .p06-search__url {
    font-size: 0.6875rem;
    opacity: 0.75;
  }

  .p06-search__title {
    font-family: var(--font-heading);
    font-size: var(--step-1);
    font-weight: var(--weight-heading);
    line-height: 1.15;
  }

  .p06-search__line {
    display: block;
    width: 80%;
    height: 0.3125rem;
    background: var(--color-ink);
    border-radius: var(--radius-pill);
    opacity: 0.22;
  }

  .p06-search__line--short {
    width: 55%;
  }

  .p06-search__arrow {
    position: relative;
    height: 1px;
    background: var(--color-ink);
  }

  .p06-search__arrow::after {
    content: "";
    position: absolute;
    top: -0.25rem;
    right: 0;
    width: 0.5rem;
    height: 0.5rem;
    border-top: 1px solid var(--color-ink);
    border-right: 1px solid var(--color-ink);
    transform: rotate(45deg);
  }

  .p06-search__page-title {
    font-weight: 600;
    font-size: 0.6875rem;
  }

  .p06-search__page-btn {
    margin-block-start: 0.125rem;
    padding: 0.3125rem 0.375rem;
    background: var(--color-ink);
    color: var(--color-white);
    font-size: 0.5625rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
  }

  @media (min-width: 48rem) {
    .p06-search {
      grid-template-columns: minmax(0, 1fr) 2.5rem 8rem;
    }
  }
}

@layer motion {
  @media screen and (prefers-reduced-motion: no-preference) {
    /* Live card: the search types in slowly, the result rises, the package
       card settles; everything on the gentle side of the shared timing */
    .lcard.is-live .p06-lcard__scene--search.is-on .p06-type {
      animation: p06-type 1500ms steps(24, end) 300ms both;
    }

    .lcard.is-live .p06-lcard [data-at] {
      transition-duration: 520ms;
    }

    /* Problem drawings: the phone's rings fade in one after another */
    html[data-fx~="diagrams"] .pb-doula-phone .p06-ring {
      animation: dg-fade 520ms var(--ease-out) both;
    }

    html[data-fx~="diagrams"] .pb-doula-phone .p06-r0 { animation-delay: 700ms; }
    html[data-fx~="diagrams"] .pb-doula-phone .p06-r1 { animation-delay: 900ms; }
    html[data-fx~="diagrams"] .pb-doula-phone .p06-r2 { animation-delay: 1100ms; }

    /* Dark night section: the questions rise in one by one, slowly, once the
       section is in view */
    html.js-motion[data-fx~="diagrams"] .nightsection[data-play] :is(.nightsection__item, .nightsection__aside, .nightsection__outro) {
      transition: opacity 900ms var(--ease-out), translate 900ms var(--ease-out);
      transition-delay: calc(var(--i, 0) * 220ms + 200ms);
    }

    html.js-motion[data-fx~="diagrams"] .nightsection[data-play]:not(.is-in) :is(.nightsection__item, .nightsection__aside, .nightsection__outro) {
      opacity: 0;
      translate: 0 0.75rem;
    }

    /* Service area map: the towns settle onto the map, the rings breathe
       out once, the on-call stretch fills from its first week and the lines
       rise in */
    html.js-motion[data-fx~="diagrams"] .servicemap[data-play] .servicemap__town {
      transition: opacity 600ms var(--ease-out), translate 600ms var(--ease-out), background-color 200ms var(--ease-out), color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
      transition-delay: calc(var(--i, 0) * 160ms + 300ms), calc(var(--i, 0) * 160ms + 300ms), 0ms, 0ms, 0ms;
    }

    html.js-motion[data-fx~="diagrams"] .servicemap[data-play]:not(.is-in) .servicemap__town {
      opacity: 0;
      translate: -50% -30%;
    }

    html.js-motion[data-fx~="diagrams"] .servicemap[data-play] .servicemap__ring {
      transition: transform 1200ms var(--ease-out) 250ms, opacity 1200ms var(--ease-out) 250ms;
    }

    html.js-motion[data-fx~="diagrams"] .servicemap[data-play] .servicemap__ring--in {
      transition-delay: 0ms;
    }

    html.js-motion[data-fx~="diagrams"] .servicemap[data-play]:not(.is-in) .servicemap__ring {
      transform: scale(0.5);
      opacity: 0;
    }

    html.js-motion[data-fx~="diagrams"] .servicemap[data-play] .servicemap__shade {
      transition: clip-path 1600ms var(--ease-out) 400ms;
    }

    html.js-motion[data-fx~="diagrams"] .servicemap[data-play]:not(.is-in) .servicemap__shade {
      clip-path: inset(0 100% 0 0);
    }

    html.js-motion[data-fx~="diagrams"] .servicemap[data-play] .servicemap__line {
      transition: opacity 600ms var(--ease-out), translate 600ms var(--ease-out);
      transition-delay: calc(var(--i, 0) * 260ms + 900ms);
    }

    html.js-motion[data-fx~="diagrams"] .servicemap[data-play]:not(.is-in) .servicemap__line {
      opacity: 0;
      translate: 0 0.5rem;
    }

    /* Searches: the rows rise in one after another */
    html.js-motion[data-fx~="diagrams"] .showcase__visual[data-play] .p06-search {
      transition: opacity 700ms var(--ease-out), translate 700ms var(--ease-out);
      transition-delay: calc(var(--i, 0) * 260ms + 200ms);
    }

    html.js-motion[data-fx~="diagrams"] .showcase__visual[data-play]:not(.is-in) .p06-search {
      opacity: 0;
      translate: 0 0.75rem;
    }
  }

  @keyframes p06-type {
    from {
      clip-path: inset(0 100% 0 0);
    }

    to {
      clip-path: inset(0 0 0 0);
    }
  }
}
