/* The section edge, the selected tab and the blue line of type share one direction of travel. */
:root {
  --motion-settle: cubic-bezier(.16,.76,.22,1);
  --motion-release: cubic-bezier(.4,.02,.65,.45);
}
.landing-stack :is(h2,h3) .motion-line, .landing-stack :is(h2,h3) .motion-ink {
  display: block;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}
.motion-line {
  overflow: clip;
  overflow-clip-margin: .13em;
}
.motion-ink, .landing-stack :is(h1,h2), .motion-word { transform-origin: 0% 80%; }
.motion-word { display: inline-block; }
.motion-seam, .motion-edge-depth, .motion-rule { display: none; pointer-events: none; }
.motion .landing-stack[data-motion-source] .motion-edge-depth {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  display: block;
  height: clamp(15px,3.4svh,36px);
  transform: translateY(-100%);
  background: linear-gradient(0deg, color-mix(in srgb,var(--ink) 18%,transparent),transparent);
}
.motion .landing-stack[data-motion-source] .motion-seam {
  position: absolute;
  z-index: 3;
  top: 0;
  inset-inline: var(--gutter);
  display: block;
  height: 1px;
  background: var(--signal);
  transform-origin: 0 50%;
}
.motion-seam::after {
  content: "";
  position: absolute;
  inset: -1px auto auto 0;
  width: min(16%,8rem);
  height: 3px;
  background: inherit;
}
.outro.stack-layer { position: relative; }
.tool-index, .stage-controls { position: relative; }
.motion [data-motion-rule] > .motion-rule {
  display: block;
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  transform-origin: 0 50%;
  background: var(--signal);
}
.motion .tool-index[data-motion-rule] [aria-selected=true]::after { display: none; }
.motion .stage-controls[data-motion-rule] [aria-selected=true] { border-bottom-color: transparent; box-shadow: none; }
.tool-figure > .motion-previous-photo { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.tool-figure::after { z-index: 1; }
.story-pause { position: relative; }
.story-dial { position: absolute; inset: 5px; width: 34px; height: 34px; transform: rotate(-90deg); fill: none; stroke: currentColor; stroke-width: 1.4; }
.story-dial circle:first-child { opacity: .22; }
.story-progress { stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; }

@media (prefers-reduced-motion: no-preference) {
  .motion .hero[data-story-ready] .hero-title-line > b {
    transform-origin: 0% 80%;
    animation: hero-typeset 720ms var(--motion-settle) both;
  }
  .motion .hero[data-story-ready]:not([data-story-turn]) .title-word[data-state=on] {
    animation: hero-typeset 820ms var(--motion-settle) both;
  }
  .motion .hero[data-story-ready] .portrait img { animation: hero-image 1150ms var(--motion-settle) both; }
  .motion .hero[data-story-ready] .hero-eyebrow { animation: hero-byline 625ms var(--motion-settle) both; }
  .motion .hero[data-story-ready] .hero-description[data-state=on] { animation: none; }
  .motion .hero[data-story-turn] .title-word[data-state=on] {
    animation: advance-phrase-in 625ms cubic-bezier(.40,.03,.20,1) both;
  }
  .motion .hero[data-story-turn] .title-word[data-state=out] {
    animation: advance-phrase-out 625ms cubic-bezier(.40,.03,.20,1) both;
  }
  .motion .hero[data-story-turn] .title-word[data-state=out],
  .motion .hero[data-story-turn] .hero-description[data-state=out] { visibility: visible; }
  .motion .hero[data-story-turn] .title-word[data-state=on] .motion-word {
    animation: turn-type-in 620ms var(--motion-settle) both;
    animation-delay: calc(var(--word-order) * 52ms);
  }
  .motion .hero[data-story-turn] .title-word[data-state=out] .motion-word {
    animation: turn-type-out 340ms var(--motion-release) both;
    animation-delay: calc(var(--word-order) * 22ms);
  }
  .motion .hero[data-story-turn] .hero-description[data-state=on] {
    animation: turn-note-in 390ms var(--motion-settle) 125ms both;
  }
  .motion .hero[data-story-turn] .hero-description[data-state=out] {
    animation: turn-note-out 140ms ease-in both;
  }
}

@keyframes hero-typeset {
  from { transform: perspective(700px) translate3d(.09em,.16em,0) rotateX(-13deg); }
  to { transform: none; }
}
@keyframes hero-byline {
  from { transform: translate3d(-10px,2px,0); opacity: .76; }
  to { transform: none; opacity: 1; }
}
@keyframes hero-image {
  from { transform: translate3d(1.1%,0,0) scale(1.045); }
  to { transform: none; }
}
/* The two baselines travel on the same curve, one line apart throughout the exchange. */
@keyframes advance-phrase-in { from { transform: translateY(112%); } to { transform: none; } }
@keyframes advance-phrase-out { from { transform: none; } to { transform: translateY(-112%); } }
@keyframes turn-type-in {
  from { transform: perspective(650px) translateX(.13em) rotateX(-47deg); opacity: .55; }
  70% { opacity: 1; }
  to { transform: none; opacity: 1; }
}
@keyframes turn-type-out {
  from { transform: none; opacity: 1; }
  to { transform: perspective(650px) translateX(-.07em) rotateX(32deg); opacity: 0; }
}
@keyframes turn-note-in {
  from { transform: translate3d(9px,7px,0); opacity: 0; }
  to { transform: none; opacity: 1; }
}
@keyframes turn-note-out {
  from { transform: none; opacity: 1; }
  to { transform: translate3d(-6px,-6px,0); opacity: 0; }
}
.hero .hero-title-changing .title-words { display: grid; width: 100%; }
.hero .hero-title-changing .title-word { white-space: normal; }
/* All three phrases share one grid cell so a two-line phrase reserves its space. */
.hero .hero-content { min-width: 0; max-width: 100%; }
.hero .hero-title-changing { inline-size: min(100%, 10.4em); }
.hero .hero-title-changing .title-words { grid-template-columns: minmax(0,1fr); }
@media (min-width: 761px) {
  .hero .hero-content { width: 55%; }
}

.workspace-register .role-methodist { --role-icon: url("/studio/assets/role-icon-methodist.png"); }
.workspace-register .role-sales { --role-icon: url("/studio/assets/role-icon-sales.png"); }
.workspace-register .role-director { --role-icon: url("/studio/assets/role-icon-director.png"); }

.workspace .workspace-register dt {
  --role-icon-size: clamp(42px, 4.35vw, 64px);
  display: grid;
  grid-template-columns: var(--role-icon-size) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(10px, 1.1vw, 18px);
}
.workspace .workspace-register dt::before {
  content: "";
  display: block;
  width: var(--role-icon-size);
  aspect-ratio: 1;
  background: var(--role-icon) center / contain no-repeat;
}

.workspace .workspace-register .role-photo {
  display: block;
  justify-self: end;
  width: min(100%, 22rem);
}
.workspace .workspace-register .role-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media (max-width: 520px) {
  .workspace .workspace-register dt { --role-icon-size: 42px; }
  .workspace .workspace-register dd {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    column-gap: 12px;
  }
}
