/* ─────────────────────────────────────────────
   about.css — About page: intro, photo pile, "hey!" sign-off
   ───────────────────────────────────────────── */

/* The particle-word canvases reach past the viewport edge (explosion
   headroom); clip at the root so they can't widen the layout viewport —
   otherwise mobile browsers zoom the whole page out to fit them. */
html {
  overflow-x: clip;
}

.about-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 0;
}

/* ── Intro ── */
.about-intro {
  text-align: center;
  margin-bottom: var(--space-15);
}

/* Same register as .hero-p-sentence on index, one step below it in size */
.about-intro h1 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  color: #111;
  letter-spacing: -0.02em;
  line-height: 1.45;
  max-width: 640px;
  margin: 0 auto;
}

/* Sign-off line between the headline and the photos */
.about-sub {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.5vw, 20px);
  color: #111;
  max-width: 640px;
  margin: 20px auto 0;
}

.about-sub em {
  font-style: italic;
}

/* ── Intro choreography ──
   html.about-choreo is set by an inline script in the head; without JS the
   page renders static and fully visible. The page opens white with the
   headline centered, then everything settles into place. */
.about-choreo body {
  overflow-x: hidden;
}

.about-choreo.intro-lock body {
  overflow: hidden;
}

/* Hidden until headline-animation.js has wrapped the words in their
   rise masks; the script restores visibility once set up. */
.about-choreo .about-intro {
  visibility: hidden;
}

/* Rising words: overflow mask + inner span. Padding + negative margin
   give italic overhang and descenders room inside the mask. */
.mw {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding: 0.12em 0.18em 0.24em;
  margin: -0.12em -0.18em -0.24em;
}

.mw-i {
  display: inline-block;
  transform: translateY(145%);
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

.about-intro h1.play .mw-i,
.about-sub.play .mw-i {
  transform: translateY(0);
}

/* Particle words: the text reserves layout space, particles draw it */
.pw {
  position: relative;
  display: inline-block;
  color: transparent;
}

.pw-canvas {
  position: absolute;
  pointer-events: none;
}

/* Repeat visit (same session): headline-animation.js bails and the page
   renders static; give the particle and accent words their settled blue. */
html.skip-entrance .pw,
html.skip-entrance .about-sub em {
  color: rgb(0, 85, 255);
}

/* Pin the desktop line break after "amount" so the 2-line split
   stays stable regardless of window width; mobile wraps naturally */
.hl-br {
  display: none;
}

@media (min-width: 769px) {
  .hl-br {
    display: inline;
  }
}

/* Extra air around the particle words */
em[data-particle="explode"] {
  margin: 0 0.15em 0 0.15em;
}

em[data-particle="pen"] {
  margin: 0 0.15em 0 0.2em;
}

/* The sub's words are held inside their masks until the photo fan-out
   finishes, then drop in from above (the headline's words rise; the
   sub's fall). Timing lives in js/headline-animation.js. */
.about-sub .mw-i {
  transform: translateY(-145%);
}

.about-choreo .about-photos {
  transform: translateY(100vh);
}

/* ── "hey!" sign-off ── */
.about-hey {
  margin-bottom: var(--space-17);
}

.intro-canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: clamp(140px, 20vw, 230px);
  margin: 0 auto;
}

#introCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Nav: index delays 1800ms for the hero particles; here there's no wait */
.landing-nav {
  animation-delay: 400ms;
}

/* ── Photo pile → row ── */
.about-photos {
  margin-bottom: var(--space-18);
}

/* Squiggle choreography: fanned pile → arc (one-shot), with idle float.
   Coordinates are the squiggle-motion export (668×538 scene, 104×116
   cards) with positions ×1.9 and card size ×1.75, card centers
   preserved, shifted into a tight box; arc x positions slotted
   left-to-right with a uniform 22px neighbor overlap. */
.sq-viewport {
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.sq-scene {
  position: relative;
  width: 1030px;
  height: 476px;
  flex: 0 0 auto;
  transform-origin: top center;
}

.sq-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 182px;
  height: 203px;
  z-index: 0;
  transform-origin: center;
  will-change: transform;
  animation-duration: 3.04s;
  animation-timing-function: cubic-bezier(0.6, 0.37, 0.44, 0.98);
  animation-fill-mode: both;
  animation-iteration-count: 1;
  animation-play-state: paused;
}

.sq-scene.is-live .sq-card {
  animation-play-state: running;
}

.sq-card:nth-child(1) {
  animation-name: sq-move-0;
  animation-delay: 0s;
}

.sq-card:nth-child(2) {
  animation-name: sq-move-1;
  animation-delay: 0.06s;
}

.sq-card:nth-child(3) {
  animation-name: sq-move-2;
  animation-delay: 0.12s;
}

.sq-card:nth-child(4) {
  animation-name: sq-move-3;
  animation-delay: 0.18s;
}

.sq-card:nth-child(5) {
  animation-name: sq-move-4;
  animation-delay: 0.24s;
}

.sq-card:nth-child(6) {
  animation-name: sq-move-5;
  animation-delay: 0.3s;
}

/* Grid-installation shot: bottom-align the cover crop so the full
   figure shows instead of the centered band cutting it at the hips */
.sq-card:nth-child(4) img {
  object-position: 50% 100%;
}

/* Pastry shot: shift the cover crop up in the frame */
.sq-card:nth-child(2) img {
  object-position: 50% 70%;
}

.sq-idle {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  animation: sq-float 3.2s ease-in-out infinite;
}

/* ── Speech bubbles ──
   Two photos carry a chat bubble sitting above the card. The bubble
   waits scaled down to nothing at its tail — invisible — and pops in
   with a springy overshoot when js/about.js adds .sq-bubbles-live,
   2s after the pile→arc animation ends. */
.sq-bubble-slot {
  position: absolute;
  /* 16px of air between the bubble and the photo's top edge */
  top: -62px;
  z-index: 0;
  padding: 8px 24px 24px;
  animation: sq-float 3.2s ease-in-out infinite;
}

/* Tail: a sharp triangle on the bubble's bottom edge pointing down at
   the photo; same fill as the bubble so the two read as one shape */
.sq-bubble-tail {
  position: absolute;
  top: 100%;
  margin-top: -1px;
  left: 20px;
  color: var(--color-primary);
}

.sq-card:nth-child(5) .sq-bubble-tail {
  left: auto;
  right: 20px;
}

/* Wellington: starts ~25% in from its photo's left edge, clear of the
   neighbour card; the bob is in phase with its own photo (delays
   match the .sq-idle ones above) */
.sq-card:nth-child(2) .sq-bubble-slot {
  left: 24px;
  animation-delay: 0.3s;
}

/* Canyoning: pushed left of its photo so the bubble clears the
   helicopter card, which overlaps from the right and paints above
   this one; its tail mirrors to the right side, toward the photo */
.sq-card:nth-child(5) .sq-bubble-slot {
  left: -105px;
  animation-delay: 1.2s;
}

.sq-bubble {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px 10px;
  border-radius: 20px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  background: var(--color-primary);
  box-shadow:
    0 2px 5px rgba(0, 85, 255, 0.16),
    0 5px 14px rgba(0, 85, 255, 0.14);
  white-space: nowrap;
  text-decoration: none;
  /* waits collapsed onto its tail tip, pops from there */
  transform-origin: 26px calc(100% + 8px);
  transform: scale(0.2);
  opacity: 0;
  /* springy overshoot: past full size, then settles */
  transition:
    transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.25s ease-out;
}

/* the second bubble pops from its right-side tail, a beat later */
.sq-card:nth-child(5) .sq-bubble {
  transform-origin: calc(100% - 26px) calc(100% + 8px);
  transition-delay: 0.2s;
}

.sq-scene.sq-bubbles-live .sq-bubble {
  transform: scale(1);
  opacity: 1;
}

.sq-bubble-arrow {
  display: block;
  color: rgba(255, 255, 255, 0.75);
  transition:
    color 0.2s ease,
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Recipe bubble: quiet idle, unmistakable on approach — the bubble
   lifts a hair, the shadow deepens, the arrow dips toward the tray.
   The faster transition lives on :hover only, so the reveal (and the
   settle back from hover) keep the springy base timing. */
.sq-scene.sq-bubbles-live a.sq-bubble:hover {
  transform: translateY(-1.5px);
  box-shadow:
    0 2px 5px rgba(0, 85, 255, 0.18),
    0 8px 18px rgba(0, 85, 255, 0.22);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease;
}

.sq-scene.sq-bubbles-live a.sq-bubble:hover .sq-bubble-arrow {
  color: #fff;
  transform: translateY(1px);
}

.sq-scene.sq-bubbles-live a.sq-bubble:active {
  transform: translateY(0);
  transition-duration: 0.1s;
}

a.sq-bubble:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px rgba(0, 85, 255, 0.45);
}
.sq-card:nth-child(1) .sq-idle {
  animation-delay: 0s;
}

.sq-card:nth-child(2) .sq-idle {
  animation-delay: 0.3s;
}

.sq-card:nth-child(3) .sq-idle {
  animation-delay: 0.6s;
}

.sq-card:nth-child(4) .sq-idle {
  animation-delay: 0.9s;
}

.sq-card:nth-child(5) .sq-idle {
  animation-delay: 1.2s;
}

.sq-card:nth-child(6) .sq-idle {
  animation-delay: 1.5s;
}

.sq-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 26px rgba(12, 12, 12, 0.18);
  background: #F2F2F2;
}

@keyframes sq-move-0 {
  0% {
    transform: translate(386.0px, 44.0px) rotate(-15deg);
  }

  21% {
    transform: translate(386.0px, 44.0px) rotate(-15deg);
  }

  50% {
    transform: translate(24.0px, 101.0px) rotate(-5deg);
  }

  100% {
    transform: translate(24.0px, 101.0px) rotate(-5deg);
  }
}

@keyframes sq-move-1 {
  0% {
    transform: translate(401.2px, 63.0px) rotate(-10deg);
  }

  21% {
    transform: translate(401.2px, 63.0px) rotate(-10deg);
  }

  50% {
    transform: translate(184.0px, 165.0px) rotate(-3deg);
  }

  100% {
    transform: translate(184.0px, 165.0px) rotate(-3deg);
  }
}

@keyframes sq-move-2 {
  0% {
    transform: translate(416.4px, 82.0px) rotate(-5deg);
  }

  21% {
    transform: translate(416.4px, 82.0px) rotate(-5deg);
  }

  50% {
    transform: translate(344.0px, 205.0px) rotate(-1deg);
  }

  100% {
    transform: translate(344.0px, 205.0px) rotate(-1deg);
  }
}

@keyframes sq-move-3 {
  0% {
    transform: translate(431.6px, 101.0px) rotate(0deg);
  }

  21% {
    transform: translate(431.6px, 101.0px) rotate(0deg);
  }

  50% {
    transform: translate(504.0px, 205.0px) rotate(1deg);
  }

  100% {
    transform: translate(504.0px, 205.0px) rotate(1deg);
  }
}

@keyframes sq-move-5 {
  0% {
    transform: translate(462.0px, 139.0px) rotate(10deg);
  }

  21% {
    transform: translate(462.0px, 139.0px) rotate(10deg);
  }

  50% {
    transform: translate(824.0px, 101.0px) rotate(5deg);
  }

  100% {
    transform: translate(824.0px, 101.0px) rotate(5deg);
  }
}

@keyframes sq-move-4 {
  0% {
    transform: translate(446.8px, 120.0px) rotate(5deg);
  }

  21% {
    transform: translate(446.8px, 120.0px) rotate(5deg);
  }

  50% {
    transform: translate(664.0px, 165.0px) rotate(3deg);
  }

  100% {
    transform: translate(664.0px, 165.0px) rotate(3deg);
  }
}


@keyframes sq-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .about-main {
    padding-top: 100px;
  }

  /* Extra lateral air around the intro sentences, and a tighter
     gap down to the photo pile */
  .about-intro {
    padding: 0 36px;
    margin-bottom: var(--space-8);
  }

  .about-intro h1 {
    font-size: 24px;
    padding: 0 8px;
  }
}

/* ── Mobile desktop-hint bubble (same component as index.html;
   styles mirrored from css/index/hero.css) ── */
.mobile-desktop-hint-bubble {
  display: none;
}

@keyframes bubble-slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bubble-fade-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
  }
}

@media (max-width: 768px) {
  .mobile-desktop-hint-bubble {
    --mx: 50%;
    --my: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 22px 1px 22px 22px;
    pointer-events: auto;
    transform-origin: right bottom;
    animation: bubble-slide-up 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  .mobile-desktop-hint-bubble.is-dismissed {
    animation: bubble-fade-out 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
    pointer-events: none;
  }

  .mobile-desktop-hint-bubble .hero-chat-content {
    --mx: 50%;
    --my: 50%;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 22px 1px 22px 22px;
    box-shadow:
      0 8px 40px rgba(0, 0, 0, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
    white-space: normal;
    max-width: 160px;
    padding: 14px 16px;
    will-change: transform;
    transition: box-shadow 0.3s ease;
  }

  .mobile-desktop-hint-bubble .hero-chat-content .glass-border {
    display: none;
  }

  /* Liquid shimmer spotlight — follows touch/mouse in real-time */
  .mobile-desktop-hint-bubble .hero-chat-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 120px at var(--mx) var(--my),
        rgba(255, 255, 255, 0.35) 0%,
        rgba(255, 255, 255, 0.12) 30%,
        rgba(200, 215, 255, 0.06) 50%,
        transparent 70%);
    pointer-events: none;
    z-index: 1;
    transition: background 0.15s ease;
  }

  /* Prismatic refraction edge — light splitting through glass bottom */
  .mobile-desktop-hint-bubble .hero-chat-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 6%;
    right: 6%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(130, 160, 255, 0.25) 12%,
        rgba(180, 130, 255, 0.2) 30%,
        rgba(255, 180, 200, 0.15) 50%,
        rgba(130, 200, 255, 0.22) 70%,
        rgba(200, 160, 255, 0.18) 88%,
        transparent 100%);
    pointer-events: none;
    z-index: 1;
  }

  .mobile-desktop-hint-bubble .hero-chat-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
  }

  .mobile-desktop-hint-bubble .hero-chat-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #c8c8c8 url('../Images/valentina.copenaghen.desktop.webp') no-repeat center;
    background-size: cover;
    flex-shrink: 0;
  }

  .mobile-desktop-hint-bubble .hero-chat-name {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 14px;
    font-weight: 600;
    font-style: normal;
    line-height: 18px;
    color: #0055FF;
  }

  .mobile-desktop-hint-bubble .hero-chat-message {
    position: relative;
    z-index: 2;
    display: block;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 400;
    color: rgba(0, 10, 40, 0.75);
    font-size: 13px;
    line-height: 18px;
  }

  .mobile-desktop-hint-bubble .hero-chat-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: rgba(0, 10, 40, 0.6);
    padding: 0;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  }

  .mobile-desktop-hint-bubble .hero-chat-close:hover {
    background: rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.6);
    color: rgba(0, 10, 40, 0.9);
    transform: scale(1.05);
  }

  .mobile-desktop-hint-bubble .hero-chat-close:active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(0.95);
  }
}

/* Hide the hint when the phone is already in landscape */
@media (max-width: 768px) and (orientation: landscape) {
  .mobile-desktop-hint-bubble {
    display: none;
  }
}
/* ── Recipe PDF preview modal ──
   Opened from the Wellington speech bubble. Glass overlay and card
   mirror the connect modal (css/connect-modal.css); the download
   pill echoes the bubble it came from. */
.recipe-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(199, 212, 255, 0.35);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-medium) var(--ease-standard);
}

.recipe-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.recipe-modal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  height: min(84vh, 920px);
  padding: 10px;
  border-radius: var(--radius-4xl);
  background:
    linear-gradient(to bottom, transparent 45%, rgba(255, 255, 255, 0.92) 100%),
    linear-gradient(135deg, #C7D4FF 0%, #EEF0FF 40%, #D8CCFF 100%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.10),
    0 4px 16px rgba(80, 80, 200, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(20px) scale(0.98);
  transition: transform var(--duration-medium) var(--ease-spring);
  overflow: hidden;
}

.recipe-modal-overlay.active .recipe-modal-card {
  transform: translateY(0) scale(1);
}

.recipe-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: 8px 8px 14px 14px;
}

.recipe-modal-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  letter-spacing: var(--tracking-tight);
  color: var(--color-ink-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recipe-modal-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* Same pill styling as the speech bubble the modal opens from */
.recipe-modal-download {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px 9px;
  border-radius: 20px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  text-decoration: none;
  background: var(--color-primary);
  box-shadow:
    0 2px 5px rgba(0, 85, 255, 0.16),
    0 5px 14px rgba(0, 85, 255, 0.14);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease;
}

.recipe-modal-download:hover {
  transform: translateY(-1.5px);
  box-shadow:
    0 2px 5px rgba(0, 85, 255, 0.18),
    0 8px 18px rgba(0, 85, 255, 0.22);
}

.recipe-modal-download svg {
  color: rgba(255, 255, 255, 0.75);
}

.recipe-modal-close {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #9ca3af;
  transition: all 0.2s ease;
}

.recipe-modal-close:hover {
  background: rgba(255, 255, 255, 0.85);
  color: #111827;
  transform: rotate(90deg);
}

/* The PDF itself */
.recipe-modal-frame {
  flex: 1;
  width: 100%;
  border: none;
  border-radius: calc(var(--radius-4xl) - 10px);
  background: #fff;
}

@media (max-width: 600px) {
  .recipe-modal-overlay {
    padding: var(--space-4);
  }

  .recipe-modal-card {
    height: 90vh;
  }
}

/* ── MotionPath credit card ──
   Fixed to the bottom-right of the screen; slides in once the photo
   row has settled. Same glass recipe (and chat-corner radius) as the
   mobile hint bubble above. */
.mp-card {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 288px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 22px 1px 22px 22px;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transform-origin: right bottom;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition:
    opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mp-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mp-card.is-dismissed {
  animation: bubble-fade-out 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
}

.mp-card-video {
  display: block;
  width: 100%;
}

.mp-card-body {
  padding: 13px 16px 15px;
}

.mp-card-text {
  margin: 0;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 12.5px;
  line-height: 18px;
  color: rgba(0, 10, 40, 0.75);
}

.mp-card-text em {
  font-style: italic;
  font-weight: 800;
}

.mp-card-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: italic;
  font-size: 12.5px;
  font-weight: 600;
  color: #0055FF;
  text-decoration: none;
}

.mp-card-link svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mp-card-link:hover svg {
  transform: translate(1.5px, -1.5px);
}

.mp-card-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* sits over the video: needs its own backing to stay legible */
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: rgba(0, 10, 40, 0.6);
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.mp-card-close:hover {
  background: rgba(255, 255, 255, 0.85);
  color: #111827;
}

/* The mobile rotate-hint bubble owns this corner on small screens */
@media (max-width: 768px) {
  .mp-card {
    display: none;
  }
}
