/* HAPPYPath MOTION 1.0 | Layer 1: shared foundations, independent of any page. */
:root {
  --hp-time-instant: 140ms;
  --hp-time-fast: 220ms;
  --hp-time-standard: 420ms;
  --hp-time-expressive: 680ms;
  --hp-time-entrance: 820ms;
  --hp-time-exit: 180ms;
  --hp-time-illustration: 1400ms;
  --hp-stagger: 85ms;
  --hp-ease-standard: cubic-bezier(.2,0,.18,1);
  --hp-ease-enter: cubic-bezier(.16,1,.3,1);
  --hp-ease-exit: cubic-bezier(.4,0,1,1);
  --hp-ease-emphasized: cubic-bezier(.65,0,.12,1);
  --hp-ease-organic: cubic-bezier(.45,0,.55,1);
  --hp-distance-y: 28px;
  --hp-distance-x: 24px;
  --hp-scale-enter: .965;
  --hp-scale-press: .98;
  --hp-tilt: 2deg;
  --hp-float-duration: 7200ms;
  --hp-float-y: -9px;
  --hp-float-x: 4px;
  --hp-float-rotation: var(--hp-tilt);
  --hp-float-scale: 1.012;
  --hp-scene-hold: 6200ms;
  --hp-scene-question-hold: 7000ms;
  --hp-film-cycle: 10800ms;
}

@media (max-width:700px) {
  :root {
    --hp-distance-y: 18px;
    --hp-distance-x: 16px;
    --hp-time-entrance: 660ms;
    --hp-time-expressive: 560ms;
    --hp-stagger: 65ms;
    --hp-float-y: -6px;
    --hp-float-x: 3px;
    --hp-float-rotation: 1.5deg;
  }
}

@media (prefers-reduced-motion:reduce) {
  :root {
    --hp-distance-y: 0px;
    --hp-distance-x: 0px;
    --hp-float-y: 0px;
    --hp-float-x: 0px;
  }
}

/* HAPPYPath MOTION | Layer 2: layout-independent, opt-in patterns.
   Content is visible by default. Only running, finite animations affect visibility. */
.hp-revealing {
  animation: hp-rise var(--hp-time-entrance) var(--hp-ease-enter) var(--hp-delay,0ms) both;
}

.hp-revealing[data-hp-reveal="heading"] {
  animation-name: hp-heading;
}

.hp-revealing[data-hp-reveal="image"] {
  animation-name: hp-image;
}

.hp-revealing[data-hp-reveal="lateral"] {
  animation-name: hp-lateral;
}

.hp-revealing[data-hp-reveal="state"] {
  animation-name: hp-state;
  animation-duration: var(--hp-time-standard);
}

@keyframes hp-rise {
  from {
    opacity: 0;
    transform: translate3d(0,var(--hp-distance-y),0);
  }
  to {
    opacity: 1;
    transform: translate3d(0,0,0);
  }
}

@keyframes hp-heading {
  from {
    opacity: .08;
    clip-path: inset(0 -3% 90% -3%);
    transform: translate3d(0,.38em,0);
  }
  to {
    opacity: 1;
    clip-path: inset(-14% -3% -14% -3%);
    transform: translate3d(0,0,0);
  }
}

@keyframes hp-image {
  from {
    opacity: 0;
    transform: translate3d(0,var(--hp-distance-y),0) scale(var(--hp-scale-enter));
  }
  to {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1);
  }
}

@keyframes hp-lateral {
  from {
    opacity: 0;
    transform: translate3d(var(--hp-distance-x),0,0);
  }
  to {
    opacity: 1;
    transform: translate3d(0,0,0);
  }
}

@keyframes hp-state {
  from {
    opacity: 0;
    transform: translate3d(0,10px,0);
  }
  to {
    opacity: 1;
    transform: translate3d(0,0,0);
  }
}

@keyframes hp-depart {
  from {
    opacity: 1;
    translate: 0 0;
  }
  to {
    opacity: 0;
    translate: 0 -8px;
  }
}

/* Snapshot exits preserve spatial continuity without delaying the real state change.
   Snapshots are inert, aria-hidden, stripped of IDs and removed after 180ms. */
.hp-ghost {
  position: absolute!important;
  margin: 0!important;
  pointer-events: none!important;
  z-index: 5;
  animation: hp-depart var(--hp-time-exit) var(--hp-ease-exit) both;
}

.hp-ghost * {
  animation: none!important;
  transition: none!important;
}

/* Each actor's authored outer transform is untouched; movement belongs to its inner group. */
.hp-motion-ready [data-hp-float] .hp-float-body {
  transform-box: fill-box;
  transform-origin: center;
  animation: hp-float var(--hp-float-duration) var(--hp-ease-organic) var(--hp-float-delay,-1200ms) infinite;
  animation-play-state: paused;
}

.hp-motion-ready [data-hp-float].hp-inview .hp-float-body {
  animation-play-state: running;
}

[data-hp-float="hero"] {
  --hp-float-duration: 7400ms;
  --hp-float-delay: -1600ms;
}

[data-hp-float="observer"] {
  --hp-float-duration: 8600ms;
  --hp-float-delay: -3400ms;
  --hp-float-rotation: -2deg;
}

[data-hp-float="recording"] {
  --hp-float-duration: 7900ms;
  --hp-float-delay: -900ms;
  --hp-float-x: -4px;
}

[data-hp-float="method"] {
  --hp-float-duration: 9100ms;
  --hp-float-delay: -4200ms;
  --hp-float-rotation: -1.8deg;
}

[data-hp-float="bloom"] {
  --hp-float-duration: 6800ms;
  --hp-float-delay: -2200ms;
  --hp-float-y: -7px;
}

[data-hp-float="error"] {
  --hp-float-duration: 8200ms;
  --hp-float-delay: -2700ms;
  --hp-float-y: -11px;
  --hp-float-x: 6px;
  --hp-float-rotation: 2.2deg;
}

@keyframes hp-float {
  0%,100% {
    transform: translate3d(0,0,0) rotate(0deg) scale(1);
  }
  32% {
    transform: translate3d(var(--hp-float-x),var(--hp-float-y),0) rotate(var(--hp-float-rotation)) scale(var(--hp-float-scale));
  }
  68% {
    transform: translate3d(calc(var(--hp-float-x) * -.6),calc(var(--hp-float-y) * .45),0) rotate(calc(var(--hp-float-rotation) * -.65)) scale(.998);
  }
}

.hp-motion-ready [data-hp-float] .face circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: hp-blink calc(var(--hp-float-duration) * 1.6) linear var(--hp-float-delay,-1200ms) infinite paused;
}

.hp-motion-ready [data-hp-float].hp-inview .face circle {
  animation-play-state: running;
}

@keyframes hp-blink {
  0%,44%,47%,100% {
    transform: scaleY(1)
  }
  45.5% {
    transform: scaleY(.12)
  }
}

/* Paint/layer hints exist only while finite entrance work is running. */
.hp-revealing {
  will-change: transform,opacity;
}

.hp-document-hidden *, .hp-document-hidden *::before, .hp-document-hidden *::after {
  animation-play-state: paused!important;
}

/* Functional feedback has a separate, quicker cadence than illustration motion. */
.button,.text-link,.atlas-header-link,.hero-service-routes>a, .service-folds [role="tab"],.volume-options button,.story-buttons button {
  transition: color var(--hp-time-fast) var(--hp-ease-standard), background-color var(--hp-time-fast) var(--hp-ease-standard), border-color var(--hp-time-fast) var(--hp-ease-standard), translate var(--hp-time-standard) var(--hp-ease-enter), scale var(--hp-time-fast) var(--hp-ease-enter);
}

.button:active,.volume-options button:active {
  scale: var(--hp-scale-press);
}

.button .arrow,.text-link .arrow,.atlas-header-link .arrow,.hero-service-routes .arrow, summary>span {
  transition: transform var(--hp-time-standard) var(--hp-ease-enter);
}

@media(hover:hover) {
  .button:hover {
    translate: 0 -2px;
  }
  .text-link:hover .arrow,.atlas-header-link:hover .arrow {
    transform: translate3d(3px,-3px,0);
  }
  .volume-options button:not([aria-pressed="true"]):hover {
    translate: 0 -2px;
  }
}

.button:focus-visible .arrow,.text-link:focus-visible .arrow {
  transform: translate3d(3px,-3px,0);
}

/* Native disclosures stay native. Unsupported browsers retain instant closing. */
@supports selector(details::details-content) {
  details: :details-content {
    opacity: 0;
    transition: opacity var(--hp-time-fast) var(--hp-ease-standard), content-visibility var(--hp-time-fast) allow-discrete;
  }
  details[open]::details-content {
    opacity: 1;
  }
  @supports (interpolate-size:allow-keywords) {
    details {
      interpolate-size: allow-keywords;
    }
    details: :details-content {
      block-size: 0;
      overflow: clip;
      transition: block-size var(--hp-time-standard) var(--hp-ease-enter), opacity var(--hp-time-fast) var(--hp-ease-standard), content-visibility var(--hp-time-standard) allow-discrete;
    }
    details[open]::details-content {
      block-size: auto;
    }
  }
}

/* Native dialog focus, Escape and return-focus behaviour are not replaced. */
.contact-dialog:not([open]) {
  pointer-events: none;
}

.contact-dialog[open] {
  animation: hp-dialog-in var(--hp-time-standard) var(--hp-ease-enter);
}

@keyframes hp-dialog-in {
  from {
    opacity: 0;
    transform: translate3d(0,18px,0) scale(.975);
  }
  to {
    opacity: 1;
    transform: translate3d(0,0,0) scale(1);
  }
}

@supports (transition-behavior:allow-discrete) {
  .contact-dialog {
    opacity: 0;
    transform: translate3d(0,18px,0) scale(.975);
    transition: opacity var(--hp-time-fast) var(--hp-ease-standard), transform var(--hp-time-standard) var(--hp-ease-enter), display var(--hp-time-standard) allow-discrete, overlay var(--hp-time-standard) allow-discrete;
  }
  .contact-dialog[open] {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .contact-dialog::backdrop {
    opacity: 0;
    transition: opacity var(--hp-time-standard), display var(--hp-time-standard) allow-discrete, overlay var(--hp-time-standard) allow-discrete;
  }
  .contact-dialog[open]::backdrop {
    opacity: 1;
  }
  @starting-style {
    .contact-dialog[open] {
      opacity: 0;
      transform: translate3d(0,18px,0) scale(.975);
    }
    .contact-dialog[open]::backdrop {
      opacity: 0;
    }
  }
}

/* Do not leave hidden content or running timelines when motion is unavailable. */
html.hp-reduced-motion .hp-revealing, html.hp-reduced-motion .hp-revealing[data-hp-reveal] {
  opacity: 1!important;
  transform: none!important;
  clip-path: none!important;
}

html.hp-reduced-motion .hp-ghost {
  display: none!important;
}

@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation: none!important;
    transition: none!important;
    scroll-behavior: auto!important;
  }
  .hp-revealing {
    opacity: 1!important;
    transform: none!important;
    clip-path: none!important;
  }
  .hp-ghost {
    display: none!important;
  }
}

@media print {
  *,*::before,*::after {
    animation: none!important;
    transition: none!important;
  }
  .hp-revealing {
    opacity: 1!important;
    transform: none!important;
    clip-path: none!important;
  }
  .hp-ghost {
    display: none!important;
  }
}

/* HAPPYPath MOTION | Layer 3: Path Atlas choreography. All resting layouts remain in styles.css. */
:root {
  --hp-journey-full-travel: 8000ms;
  --hp-journey-leg-min: 760ms;
  --hp-journey-neutral-hold: 1000ms;
  --hp-journey-node-hold: 2200ms;
  --hp-journey-pass-hold: 560ms;
  --hp-journey-travel-scale: .78;
}

@media(max-width:700px) {
  :root {
    --hp-journey-full-travel: 7200ms;
  }
}

.hero-creature [data-hp-float] {
  --hp-float-y: -14px;
  --hp-float-x: 7px;
  --hp-float-rotation: 2.6deg;
}

@media(max-width:700px) {
  .hero-creature [data-hp-float] {
    --hp-float-y: -8px;
    --hp-float-x: 4px;
    --hp-float-rotation: 1.8deg;
  }
}

/* Progressive enhancement: an existing decorative actor responds to leaving the hero.
   No scroll-linked hiding of headlines, body copy, links or controls. */
@supports (animation-timeline:view()) {
  .hp-motion-ready .atlas-hero {
    view-timeline-name: --hp-hero;
    view-timeline-axis: block;
  }
  .hp-motion-ready:not(.hp-reduced-motion) .hero-creature {
    animation: hp-hero-depth linear both;
    animation-timeline: --hp-hero;
    animation-range: exit 0% exit 100%;
  }
  @keyframes hp-hero-depth {
    from {
      translate: 0 0;
      scale: 1
    }
    to {
      translate: 0 -46px;
      scale: .96
    }
  }
}

/* The same sliding selection, now above shared separators and below link text.
   Fractional widths share one coordinate origin, with no independently painted borders. */
.bottom-dock {
  isolation: isolate;
}

.bottom-dock>a {
  border-left: 0;
}

.bottom-dock::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to right, transparent calc(20% - .5px),var(--line) calc(20% - .5px),var(--line) calc(20% + .5px), transparent calc(20% + .5px),transparent calc(40% - .5px),var(--line) calc(40% - .5px),var(--line) calc(40% + .5px), transparent calc(40% + .5px),transparent calc(60% - .5px),var(--line) calc(60% - .5px),var(--line) calc(60% + .5px), transparent calc(60% + .5px),transparent calc(80% - .5px),var(--line) calc(80% - .5px),var(--line) calc(80% + .5px),transparent calc(80% + .5px));
}

.bottom-dock.hp-dock-ready::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: var(--hp-dock-width,0px);
  transform: translate3d(var(--hp-dock-x,0px),0,0);
  background: var(--plum);
  pointer-events: none;
  transition: transform var(--hp-time-standard) var(--hp-ease-emphasized),width var(--hp-time-standard) var(--hp-ease-emphasized);
}

.bottom-dock>a {
  position: relative;
  z-index: 2;
}

.bottom-dock.hp-dock-ready>a[aria-current="location"] {
  background: transparent;
}

.bottom-dock.hp-dock-ready.hp-dock-resizing::before {
  transition: none;
}

.bottom-dock>a:focus-visible {
  outline-offset: -5px;
}

/* Audit: page first, observation second, reviewer last. Idle is nested, not overwritten. */
.hp-audit-intro .abstract-page {
  animation: hp-art-arrive var(--hp-time-entrance) var(--hp-ease-enter) both;
}

.hp-audit-intro .annotation-slip {
  animation: hp-art-arrive var(--hp-time-expressive) var(--hp-ease-enter) var(--hp-time-fast) both;
}

.hp-audit-intro .audit-observer {
  animation: hp-art-arrive var(--hp-time-expressive) var(--hp-ease-enter) var(--hp-time-standard) both;
}

@keyframes hp-art-arrive {
  from {
    opacity: 0;
    translate: 0 24px;
    scale: .97;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

.hp-film-intro .recording-frame {
  animation: hp-art-arrive var(--hp-time-expressive) var(--hp-ease-enter) both;
}

.hp-film-intro .recording-frame:nth-child(2) {
  animation-delay: var(--hp-stagger)
}

.hp-film-intro .recording-frame:nth-child(3) {
  animation-delay: calc(var(--hp-stagger)*2)
}

.hp-film-intro .recording-note {
  animation: hp-art-arrive var(--hp-time-entrance) var(--hp-ease-enter) var(--hp-time-standard) both
}

/* Cohesive Search / Detour / Surprise set: original strip, type and timestamps retained. */
.moment-icon {
  width: 86px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  align-self: center;
  overflow: visible;
  flex-shrink: 0;
}

.search-target {
  color: var(--mint);
}

.search-target circle {
  fill: var(--plum);
}

.search-lens {
  fill: none;
  stroke: var(--plum);
  stroke-width: 6.5;
}

.search-handle {
  fill: none;
  stroke: var(--coral);
  stroke-width: 10;
  stroke-linecap: round;
}

.search-glass {
  transform-origin: 42px 42px;
}

.detour-obstacle {
  color: var(--coral);
}

.detour-path {
  fill: none;
  stroke: var(--plum);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detour-traveller {
  fill: var(--mint);
  stroke: var(--plum);
  stroke-width: 1.4;
  offset-path: path("M18 85V52Q18 34 36 34H58Q80 34 80 16V6");
  offset-anchor: 0px 0px;
  offset-rotate: 0deg;
  offset-distance: 0%;
  transform-origin: 0 0;
}

.detour-arrowhead {
  opacity: 1;
}

@supports not (offset-path:path("M0 0L1 1")) {
  .detour-traveller {
    transform: translate(18px,85px);
  }
}

.surprise-illustration {
  position: relative;
  display: grid;
  place-items: center;
  align-self: center;
  width: 100%;
}

.surprise-illustration .moment-icon {
  max-width: 78px;
}

.surprise-discovery {
  color: var(--butter);
  transform-origin: 50px 70px;
}

.surprise-eye,.surprise-mouth {
  fill: var(--plum);
}

.surprise-rays {
  fill: none;
  stroke: var(--plum);
  stroke-width: 3;
  stroke-linecap: round;
}

.surprise-fold {
  fill: var(--coral);
}

.surprise-seam {
  fill: none;
  stroke: var(--plum);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hp-motion-ready .recordings-art .search-glass {
  animation: hp-search var(--hp-film-cycle) var(--hp-ease-standard) infinite paused;
}

.hp-motion-ready .recordings-art .search-target {
  animation: hp-discover var(--hp-film-cycle) var(--hp-ease-standard) infinite paused;
}

.hp-motion-ready .recordings-art .detour-traveller {
  animation: hp-detour var(--hp-film-cycle) var(--hp-ease-emphasized) infinite paused;
}

.hp-motion-ready .recordings-art .surprise-discovery {
  animation: hp-surprise var(--hp-film-cycle) var(--hp-ease-enter) infinite paused;
}

.hp-motion-ready .recordings-art .surprise-rays {
  animation: hp-realise var(--hp-film-cycle) var(--hp-ease-enter) infinite paused;
}

.hp-motion-ready .recordings-art.hp-inview :is(.search-glass,.search-target,.detour-traveller,.surprise-discovery,.surprise-rays) {
  animation-play-state: running;
}

@keyframes hp-search {
  0%,23%,100% {
    transform: translate3d(0,0,0) rotate(0deg)
  }
  7% {
    transform: translate3d(-6px,5px,0) rotate(-8deg)
  }
  15% {
    transform: translate3d(6px,-4px,0) rotate(4deg)
  }
}

@keyframes hp-discover {
  0%,5% {
    opacity: .25
  }
  18%,95% {
    opacity: 1
  }
  100% {
    opacity: .25
  }
}

@keyframes hp-detour {
  0%,26% {
    offset-distance: 0%;
    opacity: 1;
  }
  44% {
    offset-distance: 100%;
    opacity: 1;
  }
  48%,88% {
    offset-distance: 100%;
    opacity: 0;
  }
  92% {
    offset-distance: 0%;
    opacity: 0;
  }
  100% {
    offset-distance: 0%;
    opacity: 1;
  }
}

/* The dot's size belongs to its child, so it cannot scale its motion-path translation. */
.detour-traveller circle {
  transform-origin: 0 0;
}

@keyframes hp-detour-size {
  0%,26%,92%,100% {
    transform: scale(1);
  }
  44% {
    transform: scale(.7);
  }
  48%,88% {
    transform: scale(.15);
  }
}

.hp-motion-ready .recordings-art .detour-traveller circle {
  animation: hp-detour-size var(--hp-film-cycle) var(--hp-ease-emphasized) infinite paused;
}

.hp-motion-ready .recordings-art.hp-inview .detour-traveller circle {
  animation-play-state: running;
}

@keyframes hp-detour-point {
  0%,40%,100% {
    opacity: .28;
  }
  48%,88% {
    opacity: 1;
  }
}

.hp-motion-ready .recordings-art .detour-arrowhead {
  animation: hp-detour-point var(--hp-film-cycle) var(--hp-ease-standard) infinite paused;
}

.hp-motion-ready .recordings-art.hp-inview .detour-arrowhead {
  animation-play-state: running;
}

@keyframes hp-surprise {
  0%,53%,100% {
    transform: translate3d(0,8px,0) scale(.9);
    opacity: .85
  }
  62% {
    transform: translate3d(0,-5px,0) rotate(-4deg) scale(1.025);
    opacity: 1
  }
  68%,91% {
    transform: translate3d(0,0,0) rotate(0deg) scale(1);
    opacity: 1
  }
}

@keyframes hp-realise {
  0%,56%,100% {
    opacity: 0;
    transform: scale(.85);
    transform-origin: 50px 35px
  }
  66%,89% {
    opacity: 1;
    transform: scale(1)
  }
}

@media(max-width:700px) {
  .moment-icon {
    width: 68px;
  }
  .surprise-illustration .moment-icon {
    width: 66px;
  }
}

/* A small moment, v6: one coordinate space, one travelling body, five shared nodes.
   Geometry comes from #hp-journey-route; JS schedules browser-native animations.
   Masks create real line clearances, rather than translucent covers over the stroke. */
.journey-route-lines>path {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.journey-route-lines>.route-active {
  stroke: var(--coral);
  stroke-width: 2;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: none;
}

.stage-symbol {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.journey-node {
  color: var(--plum);
}

.journey-node .node-glyph {
  opacity: 1;
}

.journey-node[data-visited] {
  color: var(--coral);
}

.journey-node[data-journey-node="4"] {
  color: var(--butter);
}

.journey-node .node-star {
  fill: var(--butter);
}

.journey-node[data-journey-node="0"] .node-glyph {
  opacity: 0;
}

.journey-workspace:not([data-journey-ready]) [data-journey-gap="0"] {
  r: 0;
}

.journey-traveller {
  opacity: 1;
}

@supports (offset-path:path("M0 0L1 1")) {
  .journey-traveller {
    transform: none;
    offset-path: var(--hp-route-path,path("M44 320H125Q166 320 166 274V146Q166 98 210 98H350Q396 98 396 146V225Q396 270 442 270H604"));
    offset-anchor: 0px 0px;
    offset-rotate: 0deg;
    offset-distance: 0%;
  }
}

.traveller-body {
  transform-origin: 0 0;
}

.traveller-clearance {
  fill: var(--paper);
  stroke: none;
}

.traveller-art {
  overflow: visible;
}

.traveller-silhouette {
  fill: var(--coral);
  transition: d var(--hp-time-expressive) var(--hp-ease-standard),fill var(--hp-time-expressive) var(--hp-ease-standard);
}

.journey-traveller[data-expression="successful"] .traveller-silhouette {
  fill: var(--butter);
}

.traveller-face {
  transform: translate(-20px,-35px) scale(1.25);
}

.traveller-mouth,.traveller-brows {
  fill: none;
  stroke: var(--plum);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.traveller-eye {
  fill: var(--plum);
  stroke: none;
  transition: d var(--hp-time-standard) var(--hp-ease-standard);
}

.traveller-mouth {
  transition: d var(--hp-time-standard) var(--hp-ease-standard);
}

.traveller-brows {
  opacity: 0;
  transition: opacity var(--hp-time-standard) var(--hp-ease-standard);
}

.journey-traveller[data-expression="frustrated"] .traveller-brows {
  opacity: 1;
}

/* Exact node centres stay fixed at rest. Other site characters retain their floating pattern. */
.story-buttons>button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.story-buttons .stage-symbol {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

@media(max-width:400px) {
  .story-buttons>button {
    gap: 4px
  }
  .story-buttons .stage-symbol {
    width: 13px;
    height: 13px;
    flex-basis: 13px
  }
}

.journey-workspace .map-caption {
  top: 8%;
  transition: opacity var(--hp-time-standard) var(--hp-ease-standard);
}

.story-copy {
  position: relative;
}

.story-copy[data-hp-reserved] [data-story-title] {
  min-height: var(--hp-story-title-height,0px);
}

.story-copy[data-hp-reserved] [data-story-body] {
  min-height: var(--hp-story-body-height,0px);
}

.story-copy[data-hp-reserved] [data-story-caution] {
  min-height: var(--hp-story-caution-height,0px);
}

.story-buttons>button {
  position: relative;
  border-bottom-color: transparent!important;
}

.story-buttons>button::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--hp-time-standard) var(--hp-ease-enter);
}

.story-buttons>button[aria-pressed="true"]::after {
  transform: scaleX(1)
}

/* Caption clearance within the existing illustration, including the corner traversal. */
@media(max-width:700px) {
  .journey-workspace .map-caption {
    top: 12%;
  }
}
