/* ══ Client page: Clyro ═════════════════════════════════════════════════════
   A sibling of the Whop page, not a copy: a light sky instead of a slab of colour, Clyro's cloud
   instead of an app icon, one film instead of a grid, and a little more story. Same site language
   (Inter, the page tint, the top notch, Apple-style type). Desktop values are artboard px (1920 wide,
   scaled like every page); phones get their own block at the bottom. Motion lives in clyro.js. */

.cl-page { --cl: #3B86B5; --cl-deep: #283F4D; --cl-ink: #13212A; --cl-sky: #EAF4FB; --cl-mist: #F4F9FD; }

.cl { position: relative; width: 100%; max-width: 1920px; margin: 0 auto; padding: 0 97px; }

/* ---------- back ---------- */
.cl-back {
  position: absolute; left: 97px; top: 30px; z-index: 6;
  display: inline-flex; align-items: center; gap: 4px;
  height: 45px; padding: 0 18px 0 12px; border-radius: 23px;
  font-size: 17.5px; font-weight: 500; letter-spacing: -0.02em; color: #1c1c1c; text-decoration: none;
  background: rgba(255, 255, 255, 0.6);
  animation: cl-in 0.9s cubic-bezier(.22, .8, .25, 1) 0.3s backwards;
  transition: transform 0.45s cubic-bezier(.34, 1.56, .64, 1), background 0.25s ease;
}
.cl-back svg { width: 20px; height: 20px; transition: transform 0.4s cubic-bezier(.34, 1.56, .64, 1); }
.cl-back:hover { background: rgba(255, 255, 255, 0.9); }
.cl-back:hover svg { transform: translateX(-4px); }
.cl-back:active { transform: scale(0.96); }
@keyframes cl-in { from { opacity: 0; filter: blur(10px); translate: 0 18px; } }

/* ---------- hero: a soft sky ---------- */
.cl-hero {
  position: relative;
  isolation: isolate;
  height: 940px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 180px;
}
.cl-hero::before {                         /* full-bleed sky, fading into the page below */
  content: "";
  position: absolute; z-index: -2;
  top: 0; bottom: 0; left: -3000px; right: -3000px;
  background: linear-gradient(to bottom, #DCEEFA 0%, #EAF4FB 45%, #F7FBFE 80%, rgba(249, 253, 255, 0) 100%);
}
/* three slow, blurred cloud banks drifting across (transform only: cheap) */
.cl-sky { position: absolute; z-index: -1; inset: 0 -400px; pointer-events: none; overflow: hidden; }
.cl-sky i {
  position: absolute;
  border-radius: 50%;
  /* (no filter blur: a blurred layer that moves gets cut off at its own box in Chrome — the soft
     gradient alone already has no edge) */
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.45) 45%, rgba(255, 255, 255, 0));
  will-change: transform;
  animation: cl-drift 46s linear infinite;
}
.cl-sky i:nth-child(1) { width: 900px; height: 300px; top: 120px; left: -10%; animation-duration: 60s; }
.cl-sky i:nth-child(2) { width: 700px; height: 240px; top: 520px; left: 30%; animation-duration: 74s; animation-delay: -30s; opacity: 0.8; }
.cl-sky i:nth-child(3) { width: 1100px; height: 360px; top: 760px; left: 60%; animation-duration: 90s; animation-delay: -50s; opacity: 0.7; }
@keyframes cl-drift { from { transform: translateX(-30%); } to { transform: translateX(40%); } }

/* Clyro's cloud: watches the cursor, says hi when tapped */
.cl-buddy {
  position: relative;
  z-index: 2;
  width: 290px;
  height: 290px;
  padding: 0;
  border: 0;
  background: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  perspective: 900px;
  animation: cl-buddy-in 1.5s cubic-bezier(.16, 1, .3, 1) 0.15s backwards;
}
.cl-buddy img {
  display: block; width: 100%; height: 100%;
  filter: drop-shadow(0 26px 34px rgba(40, 63, 77, 0.18));
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate(var(--tx, 0px), var(--ty, 0px));
  transition: transform 0.5s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.cl-buddy.is-follow img { transition-duration: 0.18s; }
@keyframes cl-buddy-in {
  0% { opacity: 0; transform: translateY(60px) scale(0.8); filter: blur(24px); }
  35% { opacity: 1; }
  75% { filter: blur(0); }
  100% { opacity: 1; transform: none; filter: none; }
}
/* the idle float, on a wrapper of its own so it never fights the cursor tilt */
.cl-buddy::after { content: none; }
.cl-hero .cl-buddy { animation: cl-buddy-in 1.5s cubic-bezier(.16, 1, .3, 1) 0.15s backwards, cl-bob 5.5s ease-in-out 1.7s infinite alternate; }
@keyframes cl-bob { from { translate: 0 -6px; } to { translate: 0 8px; } }
/* puffs from a tap (clyro.js) */
.cl-puff {
  position: absolute; left: 0; top: 0; z-index: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, #fff, rgba(255, 255, 255, 0.85) 55%, rgba(255, 255, 255, 0));
  pointer-events: none;
  will-change: transform, opacity;
}

.cl-title {
  margin: 56px 0 0;
  font-size: 170px; line-height: 1; font-weight: 600; letter-spacing: -0.055em;
  color: var(--cl-ink);
  animation: cl-in 1.2s cubic-bezier(.22, .8, .25, 1) 0.45s backwards;
}
.cl-sub {
  margin: 20px 0 0;
  font-size: 30px; letter-spacing: -0.02em; color: rgba(19, 33, 42, 0.55);
  animation: cl-in 1.2s cubic-bezier(.22, .8, .25, 1) 0.6s backwards;
}
.cl-pills { display: flex; gap: 12px; margin-top: 34px; animation: cl-in 1.2s cubic-bezier(.22, .8, .25, 1) 0.75s backwards; }
.cl-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 46px; padding: 0 20px; border-radius: 23px;
  font-size: 18px; font-weight: 500; letter-spacing: -0.01em; color: var(--cl-deep);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgba(40, 63, 77, 0.06);
  text-decoration: none;
}
.cl-pill svg { width: 18px; height: 18px; transition: transform 0.4s cubic-bezier(.34, 1.56, .64, 1); }
.cl-pill-link { color: var(--cl); transition: background 0.25s ease, transform 0.45s cubic-bezier(.34, 1.56, .64, 1); }
.cl-pill-link:hover { background: #fff; transform: translateY(-2px); }
.cl-pill-link:hover svg { transform: translate(2px, -2px); }

/* ---------- the film ---------- */
.cl-film { padding: 40px 0 0; }
.cl-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 40px;
  overflow: hidden;
  background: #0e1418;
  box-shadow: 0 30px 70px rgba(40, 63, 77, 0.14), 0 6px 18px rgba(40, 63, 77, 0.08);
  cursor: inherit;
}
.cl-player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-sound {
  position: absolute; left: 32px; bottom: 32px; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px 0 18px; border: 0; border-radius: 28px;
  font: 500 19px/1 var(--font, Inter, sans-serif); letter-spacing: -0.01em; color: #fff;
  background: rgba(20, 30, 36, 0.35);
  transition: transform 0.45s cubic-bezier(.34, 1.56, .64, 1), background 0.25s ease, opacity 0.4s ease;
}
.cl-sound svg { width: 24px; height: 24px; }
.cl-sound .on { display: none; }
.cl-player.has-sound .cl-sound .on { display: block; }
.cl-player.has-sound .cl-sound .off { display: none; }
.cl-sound:hover { transform: scale(1.04); background: rgba(20, 30, 36, 0.5); }
.cl-sound:active { transform: scale(0.97); }
.cl-progress { position: absolute; left: 32px; right: 32px; bottom: 14px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); overflow: hidden; z-index: 2; }
.cl-progress b { display: block; height: 100%; width: 0; background: #fff; border-radius: inherit; }

/* ---------- the story ---------- */
.cl-story { padding: 220px 0 200px; }
.cl-read {
  margin: 0 auto;
  max-width: 1380px;
  font-size: 78px;
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-align: left;
  color: rgba(19, 33, 42, 0.16);
}
.cl-read .wd { transition: color 0.5s cubic-bezier(.22, 1, .36, 1); }
.cl-read .wd.is-on { color: var(--cl-ink); }
.cl-read .wd.is-key.is-on { color: var(--cl); }

@media (prefers-reduced-motion: reduce) {
  .cl-page *, .cl-page *::before, .cl-page *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- phones ---------- */
@media (max-width: 767px) {
  .cl { padding: 0; }
  .cl-back { left: 0; top: 52px; height: 40px; padding: 0 16px 0 10px; border-radius: 20px; font-size: 15px; }
  .cl-back svg { width: 18px; height: 18px; }
  .cl-hero { height: auto; padding: 150px 0 80px; }
  .cl-buddy { width: 170px; height: 170px; }
  .cl-title { margin-top: 30px; font-size: min(96px, calc((100vw - 32px) / 3.4)); }
  .cl-sub { font-size: 17px; margin-top: 12px; }
  .cl-pills { flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
  .cl-pill { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 18px; }
  .cl-pill svg { width: 15px; height: 15px; }
  .cl-film { padding-top: 10px; }
  .cl-player { border-radius: 22px; }
  .cl-sound { left: 12px; bottom: 16px; height: 38px; padding: 0 14px 0 12px; font-size: 14px; border-radius: 19px; gap: 6px; }
  .cl-sound svg { width: 18px; height: 18px; }
  .cl-progress { left: 14px; right: 14px; bottom: 7px; height: 3px; }
  .cl-story { padding: 100px 0 90px; }
  .cl-read { font-size: 32px; }
  .cl-tiles { grid-template-columns: 1fr; gap: 14px; }
  .cl-tile { padding: 22px 22px 26px; border-radius: 26px; }
  .cl-art { height: 170px; border-radius: 18px; }
  .cl-tile h3 { margin-top: 20px; font-size: 28px; }
  .cl-tile p { font-size: 16px; }
  .cl-tile-brand .cl-art i { width: 58px; height: 58px; border-radius: 18px; }
  .cl-win { width: 230px; height: 140px; transform: scale(0.95); }
  .cl-stats { grid-template-columns: 1fr; gap: 18px; padding-top: 70px; }
  .cl-stat b { font-size: 72px; }
  .cl-stat span { font-size: 17px; }
  .cl-end { padding: 120px 0 100px; }
  .cl-end-title { font-size: min(56px, calc((100vw - 32px) / 6.3)); }
  .cl-end-sub { font-size: 17px; margin-top: 10px; }
  .cl-cta { height: 48px; padding: 0 20px 0 24px; border-radius: 24px; font-size: 16.5px; gap: 8px; margin-top: 28px; }
  .cl-cta svg { width: 19px; height: 19px; }
}

/* ══ more for Clyro: a shelf you swipe (Apple TV / App Store style) ══ */
.cl-more { padding: 220px 0 0; }
.cl-more-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.cl-h2 { margin: 0; font-size: 76px; line-height: 1; font-weight: 600; letter-spacing: -0.045em; color: var(--cl-ink); }
.cl-more-sub { margin: 16px 0 0; font-size: 30px; letter-spacing: -0.02em; color: rgba(19, 33, 42, 0.42); }
.cl-more-sub b { font-weight: 600; color: var(--cl-ink); }
.cl-arrows { display: flex; gap: 12px; }
.cl-arrow {
  width: 58px; height: 58px; border: 0; border-radius: 50%; display: grid; place-items: center;
  color: var(--cl-ink); background: rgba(255, 255, 255, 0.75);
  transition: transform 0.45s cubic-bezier(.34, 1.56, .64, 1), opacity 0.3s ease, background 0.25s ease;
}
.cl-arrow svg { width: 24px; height: 24px; }
.cl-arrow:hover { background: #fff; transform: scale(1.06); }
.cl-arrow:active { transform: scale(0.94); }
.cl-arrow[disabled] { opacity: 0.35; pointer-events: none; }

.cl-shelf {
  display: flex; gap: 28px;
  margin: 0 -97px; padding: 20px 97px 50px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 97px;
  scrollbar-width: none;
}
.cl-shelf::-webkit-scrollbar { display: none; }
.cl-card {
  flex: none; width: 820px; padding: 0; border: 0; background: none; text-align: left;
  scroll-snap-align: start;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.55s cubic-bezier(.34, 1.4, .5, 1);
}
.cl-card:hover { transform: translateY(-6px); }
.cl-card:active { transform: scale(0.985); }
.cl-shelf:not(.is-in) .cl-card { opacity: 0; }
.cl-shelf.is-in .cl-card { animation: cl-card-in 1s cubic-bezier(.16, 1, .3, 1) backwards; }
.cl-shelf.is-in .cl-card:nth-child(2) { animation-delay: 0.08s; }
.cl-shelf.is-in .cl-card:nth-child(3) { animation-delay: 0.16s; }
.cl-shelf.is-in .cl-card:nth-child(4) { animation-delay: 0.24s; }
.cl-shelf.is-in .cl-card:nth-child(5) { animation-delay: 0.32s; }
@keyframes cl-card-in { from { opacity: 0; translate: 80px 0; filter: blur(12px); } }

.cl-card-shot {
  position: relative; display: grid; place-items: center;
  aspect-ratio: 16 / 9; border-radius: 36px; overflow: hidden;
  box-shadow: 0 18px 40px rgba(40, 63, 77, 0.1), 0 2px 6px rgba(40, 63, 77, 0.05);
  transition: box-shadow 0.4s ease;
}
.cl-card:hover .cl-card-shot { box-shadow: 0 26px 54px rgba(40, 63, 77, 0.16), 0 4px 10px rgba(40, 63, 77, 0.06); }
/* ready: Clyro sky with the cloud as a soft watermark */
.cl-card.is-ready .cl-card-shot { background: radial-gradient(90% 120% at 20% 0%, #F3F9FD 0%, #DCEEFA 45%, #B9DAF0 100%); }
.cl-card:nth-child(2).is-ready .cl-card-shot { background: radial-gradient(90% 120% at 80% 0%, #F3F9FD 0%, #D6EAF7 45%, #A9D0EA 100%); }
.cl-card:nth-child(3).is-ready .cl-card-shot { background: radial-gradient(100% 120% at 50% 100%, #F3F9FD 0%, #DCEEFA 50%, #C2DFF2 100%); }
.cl-card-buddy { position: absolute; width: 34%; opacity: 0.16; filter: blur(0.5px); transform: rotate(-8deg); transition: transform 0.7s cubic-bezier(.22, 1, .36, 1), opacity 0.5s ease; }
.cl-card:hover .cl-card-buddy { transform: rotate(0deg) scale(1.06); opacity: 0.24; }
.cl-play {
  position: relative; z-index: 1; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center;
  color: var(--cl); background: rgba(255, 255, 255, 0.55);
  transition: transform 0.5s cubic-bezier(.34, 1.56, .64, 1);
}
.cl-play svg { width: 40px; height: 40px; }
.cl-card:hover .cl-play { transform: scale(1.1); }
/* in the works: a little editing timeline, its playhead running */
.cl-card.is-wip .cl-card-shot { background: linear-gradient(160deg, #1A2A34 0%, #0F1A21 100%); }
.cl-edit { position: absolute; left: 7%; right: 7%; bottom: 14%; display: flex; flex-direction: column; gap: 14px; }
.cl-edit-track { position: relative; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
.cl-edit-track i {
  position: absolute; top: 4px; bottom: 4px; left: var(--x); width: var(--w); border-radius: 7px;
  background: linear-gradient(90deg, #3B86B5, #5FA4D0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: cl-clip 3.2s ease-in-out infinite alternate;
}
.cl-edit-track:nth-child(2) i { background: linear-gradient(90deg, #2F6E95, #3B86B5); animation-delay: -1.2s; }
.cl-edit-track.is-audio i { background: repeating-linear-gradient(90deg, rgba(191, 221, 242, 0.65) 0 3px, rgba(191, 221, 242, 0.15) 3px 7px); animation: none; }
@keyframes cl-clip { to { transform: translateX(4%); } }
.cl-playhead {
  position: absolute; top: -18px; bottom: -6px; left: 0; width: 3px; border-radius: 2px; background: #FFB54A;
  box-shadow: 0 0 12px rgba(255, 181, 74, 0.6);
  animation: cl-scrub 4.2s cubic-bezier(.45, 0, .55, 1) infinite;
}
.cl-playhead::before { content: ""; position: absolute; left: -7px; top: -6px; width: 17px; height: 13px; border-radius: 4px 4px 9px 9px; background: #FFB54A; }
.cl-card.is-wip:hover .cl-playhead { animation-duration: 1.6s; }
@keyframes cl-scrub { 0% { left: 0%; } 50% { left: 100%; } 100% { left: 0%; } }   /* back and forth along the timeline */
.cl-wip-label {
  position: absolute; left: 7%; top: 12%;
  font-size: 30px; font-weight: 600; letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.92);
}
.cl-wip-label::after { content: ""; display: inline-block; width: 0.5em; }
.cl-card-meta { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-left: 6px; }
.cl-card-meta b { font-size: 22px; font-weight: 600; color: rgba(19, 33, 42, 0.4); font-variant-numeric: tabular-nums; }
.cl-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 17px;
  font-size: 16px; font-weight: 500; color: var(--cl-deep); background: #fff;
  box-shadow: 0 4px 12px rgba(40, 63, 77, 0.06);
}
.cl-chip i { width: 9px; height: 9px; border-radius: 50%; background: #30D158; }
.cl-chip.is-wip i { background: #FF9F0A; animation: cl-pulse 1.4s ease-in-out infinite; }
@keyframes cl-pulse { 50% { opacity: 0.35; transform: scale(0.8); } }
.cl-dots { display: flex; justify-content: center; gap: 10px; margin-top: 4px; }
.cl-dots i { width: 9px; height: 9px; border-radius: 5px; background: rgba(40, 63, 77, 0.18); transition: width 0.45s cubic-bezier(.34, 1.3, .5, 1), background 0.3s ease; }
.cl-dots i.is-on { width: 28px; background: var(--cl-deep); }

/* ══ the end: a little chat ══ */
.cl-chat { max-width: 980px; margin: 0 auto; padding: 260px 0 240px; display: flex; flex-direction: column; gap: 14px; }
.cl-msg { display: flex; align-items: flex-end; gap: 14px; }
.cl-me { justify-content: flex-end; margin-top: 18px; }
.cl-av { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.cl-av-gap { width: 56px; flex: none; }
.cl-bubble {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  max-width: 720px; padding: 20px 30px; border-radius: 34px;
  font-size: 34px; line-height: 1.25; font-weight: 500; letter-spacing: -0.02em;
  color: #111; background: #E9E9EB;
  transform-origin: 0 100%;
}
.cl-them .cl-bubble { border-bottom-left-radius: 10px; }
.cl-me .cl-bubble { transform-origin: 100% 100%; border-bottom-right-radius: 10px; }
.cl-reply {
  color: #fff; text-decoration: none; background: linear-gradient(180deg, #2C8BFF, #1F66FF);
  box-shadow: 0 10px 24px rgba(31, 102, 255, 0.25);
  transition: transform 0.45s cubic-bezier(.34, 1.56, .64, 1), box-shadow 0.3s ease;
}
.cl-reply svg { width: 28px; height: 28px; transition: transform 0.45s cubic-bezier(.34, 1.56, .64, 1); }
.cl-reply:hover { transform: scale(1.04); box-shadow: 0 16px 34px rgba(31, 102, 255, 0.32); }
.cl-reply:hover svg { transform: translateX(5px); }
.cl-reply:active { transform: scale(0.97); }
.cl-delivered { margin: 2px 6px 0 0; align-self: flex-end; font-size: 18px; color: rgba(19, 33, 42, 0.4); }
/* the sequence (clyro.js adds .is-shown, then .is-typed, one message after another) */
.cl-chat .cl-msg, .cl-delivered { opacity: 0; }
.cl-msg.is-shown, .cl-delivered.is-shown { opacity: 1; }
.cl-msg.is-shown .cl-bubble { animation: cl-pop 0.6s cubic-bezier(.34, 1.4, .5, 1) backwards; }
.cl-msg.is-shown .cl-av { animation: cl-pop 0.5s cubic-bezier(.34, 1.4, .5, 1) backwards; }
.cl-delivered.is-shown { transition: opacity 0.5s ease; }
@keyframes cl-pop { from { opacity: 0; transform: scale(0.6) translateY(16px); filter: blur(6px); } }
.cl-text { display: none; }
.cl-msg.is-typed .cl-text { display: inline; animation: cl-in 0.45s cubic-bezier(.22, 1, .36, 1) backwards; }
.cl-msg.is-typed .cl-typing { display: none; }
.cl-typing { display: inline-flex; gap: 7px; padding: 6px 2px; }
.cl-typing i { width: 13px; height: 13px; border-radius: 50%; background: rgba(0, 0, 0, 0.32); animation: cl-dot 1.1s ease-in-out infinite; }
.cl-typing i:nth-child(2) { animation-delay: 0.15s; }
.cl-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes cl-dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-6px); opacity: 1; } }

@media (max-width: 767px) {
  .cl-more { padding-top: 110px; }
  .cl-more-head { margin-bottom: 18px; }
  .cl-h2 { font-size: 38px; }
  .cl-more-sub { font-size: 17px; margin-top: 8px; }
  .cl-arrows { display: none; }
  .cl-shelf { margin: 0 -16px; padding: 10px 16px 26px; gap: 14px; scroll-padding: 0 16px; }
  .cl-card { width: 82vw; }
  .cl-card-shot { border-radius: 22px; }
  .cl-play { width: 60px; height: 60px; }
  .cl-play svg { width: 24px; height: 24px; }
  .cl-edit { gap: 7px; }
  .cl-edit-track { height: 20px; border-radius: 6px; }
  .cl-edit-track i { top: 3px; bottom: 3px; border-radius: 4px; }
  .cl-wip-label { font-size: 17px; }
  .cl-card-meta { margin-top: 10px; gap: 10px; }
  .cl-card-meta b { font-size: 15px; }
  .cl-chip { height: 26px; padding: 0 10px; font-size: 12.5px; border-radius: 13px; gap: 6px; }
  .cl-chip i { width: 7px; height: 7px; }
  .cl-dots i { width: 7px; height: 7px; }
  .cl-dots i.is-on { width: 20px; }
  .cl-chat { padding: 120px 0 100px; gap: 8px; }
  .cl-av, .cl-av-gap { width: 34px; height: 34px; }
  .cl-msg { gap: 8px; }
  .cl-bubble { font-size: 17px; padding: 11px 16px; border-radius: 20px; gap: 8px; max-width: 78vw; }
  .cl-reply svg { width: 18px; height: 18px; }
  .cl-typing i { width: 8px; height: 8px; }
  .cl-delivered { font-size: 12px; }
}

/* the story: regular weight, the Clyro-blue words a step bolder; hovering a blue word leaves only the
   blue ones, hovering a dark word leaves only the dark ones (clyro.js sets .is-hover-key / .is-hover-plain) */
.cl-read { font-weight: 400; }
.cl-read .wd { transition: color 0.5s cubic-bezier(.22, 1, .36, 1), opacity 0.45s cubic-bezier(.22, 1, .36, 1); }
.cl-read .wd.is-key { font-weight: 600; }
.cl-read.is-hover-key .wd:not(.is-key),
.cl-read.is-hover-plain .wd.is-key { opacity: 0.14; }

/* the shelf's two sides: the cards soften away into the page through a blur, instead of being cut */
.cl-shelf-wrap { position: relative; }
.cl-edge {
  position: absolute; z-index: 2; top: 0; bottom: 0; width: 190px; pointer-events: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.cl-edge-l {
  left: -97px;
  background: linear-gradient(to right, rgba(249, 253, 255, 1) 0%, rgba(249, 253, 255, 0.6) 35%, rgba(249, 253, 255, 0) 100%);
  -webkit-mask: linear-gradient(to right, #000 30%, transparent); mask: linear-gradient(to right, #000 30%, transparent);
}
.cl-edge-r {
  right: -97px;
  background: linear-gradient(to left, rgba(249, 253, 255, 1) 0%, rgba(249, 253, 255, 0.6) 35%, rgba(249, 253, 255, 0) 100%);
  -webkit-mask: linear-gradient(to left, #000 30%, transparent); mask: linear-gradient(to left, #000 30%, transparent);
}

/* still being made: just Apple's own spinner and a line of text — calm, not busy */
.cl-card.is-wip .cl-card-shot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; background: linear-gradient(180deg, #1C2B35 0%, #121C23 100%); }
.cl-spin { position: relative; width: 64px; height: 64px; }
.cl-spin i {
  position: absolute; left: 50%; top: 50%; width: 6px; height: 18px; margin: -9px 0 0 -3px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
  opacity: 0.18;
  animation: cl-tick 1.2s linear infinite;
}
.cl-spin i:nth-child(1)  { transform: rotate(0deg)   translateY(-22px); animation-delay: -1.1s; }
.cl-spin i:nth-child(2)  { transform: rotate(30deg)  translateY(-22px); animation-delay: -1.0s; }
.cl-spin i:nth-child(3)  { transform: rotate(60deg)  translateY(-22px); animation-delay: -0.9s; }
.cl-spin i:nth-child(4)  { transform: rotate(90deg)  translateY(-22px); animation-delay: -0.8s; }
.cl-spin i:nth-child(5)  { transform: rotate(120deg) translateY(-22px); animation-delay: -0.7s; }
.cl-spin i:nth-child(6)  { transform: rotate(150deg) translateY(-22px); animation-delay: -0.6s; }
.cl-spin i:nth-child(7)  { transform: rotate(180deg) translateY(-22px); animation-delay: -0.5s; }
.cl-spin i:nth-child(8)  { transform: rotate(210deg) translateY(-22px); animation-delay: -0.4s; }
.cl-spin i:nth-child(9)  { transform: rotate(240deg) translateY(-22px); animation-delay: -0.3s; }
.cl-spin i:nth-child(10) { transform: rotate(270deg) translateY(-22px); animation-delay: -0.2s; }
.cl-spin i:nth-child(11) { transform: rotate(300deg) translateY(-22px); animation-delay: -0.1s; }
.cl-spin i:nth-child(12) { transform: rotate(330deg) translateY(-22px); animation-delay: 0s; }
@keyframes cl-tick { from { opacity: 0.9; } to { opacity: 0.18; } }
.cl-card.is-wip .cl-wip-label { position: static; font-size: 26px; font-weight: 500; letter-spacing: -0.015em; color: rgba(255, 255, 255, 0.78); }
.cl-card-meta b { color: rgba(19, 33, 42, 0.5); }
@media (max-width: 767px) {
  .cl-edge { width: 44px; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
  .cl-edge-l { left: -16px; }
  .cl-edge-r { right: -16px; }
  .cl-card.is-wip .cl-card-shot { gap: 14px; }
  .cl-spin { width: 34px; height: 34px; transform: scale(0.55); }
  .cl-card.is-wip .cl-wip-label { font-size: 15px; }
}

/* the numbers under the videos: a macOS dock badge (in Clyro blue, not red) */
.cl-card-meta b {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 12px; border-radius: 22px;
  font-size: 21px; font-weight: 600; letter-spacing: -0.01em; color: #fff;
  background: linear-gradient(180deg, #4C97C6, #3B86B5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 10px rgba(40, 63, 77, 0.22), 0 0 0 3px rgba(249, 253, 255, 1);
  transition: transform 0.45s cubic-bezier(.34, 1.56, .64, 1);
}
.cl-card:hover .cl-card-meta b { transform: scale(1.1); }
@media (max-width: 767px) {
  .cl-card-meta b { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 15px; font-size: 14px; }
}

/* titles: the letter under the cursor turns Clyro blue and fades back — a soft trail */
.cl-swap .ch { display: inline-block; transition: color 0.9s cubic-bezier(.22, 1, .36, 1); }
.cl-swap .ch.is-lit { color: var(--cl); transition-duration: 0.12s; }
/* badge: SF Pro (like the real Dock badge), regular weight, a lighter shadow */
.cl-card-meta b {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 2px 5px rgba(40, 63, 77, 0.14), 0 0 0 3px rgba(249, 253, 255, 1);
}
/* (the line at the edge: the shelf clips the card at its own box, and a backdrop blur draws its own
   edge too. Now the cards fade fully out before the box ends, and the blur strips reach past it,
   so both edges land on plain page.) */
.cl-shelf {
  -webkit-mask: linear-gradient(to right, transparent 0, #000 120px, #000 calc(100% - 120px), transparent 100%);
          mask: linear-gradient(to right, transparent 0, #000 120px, #000 calc(100% - 120px), transparent 100%);
}
.cl-edge { width: 260px; }
.cl-edge-l { left: -137px; }
.cl-edge-r { right: -137px; }
@media (max-width: 767px) {
  .cl-shelf { -webkit-mask: linear-gradient(to right, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); mask: linear-gradient(to right, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); }
  .cl-edge { width: 60px; }
  .cl-edge-l { left: -26px; }
  .cl-edge-r { right: -26px; }
}
/* the same gap above and below the story (video → text = text → "More for Clyro.") */
.cl-story { padding-bottom: 0; }
.cl-more { padding-top: 169px; }
@media (max-width: 767px) { .cl-story { padding-bottom: 0; } .cl-more { padding-top: 100px; } }
/* both gaps a bit bigger, still equal */
.cl-story { padding-top: 290px; }
.cl-more { padding-top: 239px; }
@media (max-width: 767px) { .cl-story { padding-top: 130px; } .cl-more { padding-top: 130px; } }
/* the drifting clouds aren't clipped to their own box anymore (on wide screens that box ended inside
   the window and cut a cloud in a straight line); the page itself still clips at the window edge */
.cl-sky { overflow: visible; }
/* number badges: neutral (white, dark number) and a size smaller */
.cl-card-meta b {
  min-width: 34px; height: 34px; padding: 0 9px; border-radius: 17px; font-size: 16px;
  color: var(--cl-ink); background: #fff;
  box-shadow: 0 2px 6px rgba(40, 63, 77, 0.1), inset 0 0 0 1px rgba(40, 63, 77, 0.06);
}
@media (max-width: 767px) {
  .cl-card-meta b { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 13px; font-size: 12.5px; }
}
/* back button: black liquid glass, white text */
.cl-back.liquid-glass { color: #fff; background: rgba(14, 18, 22, 0.62); }
.cl-back.liquid-glass:hover { background: rgba(14, 18, 22, 0.78); }

/* ══ the chat, the way iMessage really looks ══
   SF Pro, grey bubbles on the left, blue on the right, the little curled tails, a timestamp on top,
   "Delivered" under the last blue one. Bubbles drift in softly through a blur (no bounce). */
.cl-chat { max-width: 1100px; gap: 10px; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; }
.cl-stamp { margin: 0 0 18px; align-self: center; font-size: 20px; font-weight: 500; color: rgba(60, 60, 67, 0.55); opacity: 0; transition: opacity 0.8s ease; }
.cl-stamp.is-shown { opacity: 1; }
.cl-msg { gap: 0; }
.cl-me { margin-top: 10px; }
.cl-bubble {
  max-width: 760px;
  padding: 16px 26px;
  border-radius: 34px;
  font-size: 32px; line-height: 1.3; font-weight: 400; letter-spacing: -0.01em;
  color: #000; background: #E9E9EB;
  box-shadow: none;
}
.cl-them .cl-bubble { border-bottom-left-radius: 34px; margin-left: 12px; }
.cl-me .cl-bubble { border-bottom-right-radius: 34px; margin-right: 12px; }
/* the tails: a coloured curl, trimmed by a page-coloured cut-out */
.cl-bubble::before, .cl-bubble::after { content: ""; position: absolute; bottom: 0; height: 34px; }
.cl-them .cl-bubble::before { left: -12px; width: 34px; background: #E9E9EB; border-bottom-right-radius: 26px 22px; }
.cl-them .cl-bubble::after  { left: -18px; width: 18px; background: #F9FDFF; border-bottom-right-radius: 16px; }
.cl-me .cl-bubble::before   { right: -12px; width: 34px; background: #66B2F2; border-bottom-left-radius: 26px 22px; }
.cl-me .cl-bubble::after    { right: -18px; width: 18px; background: #F9FDFF; border-bottom-left-radius: 16px; }
.cl-bubble > * { position: relative; z-index: 1; }
.cl-reply {
  display: inline-block;
  font-weight: 500;
  color: #fff; background: #66B2F2; text-decoration: none;
  transition: background 0.3s ease, transform 0.5s cubic-bezier(.22, 1, .36, 1);
}
.cl-reply:hover { background: #5AA8EC; transform: translateY(-2px); }
.cl-reply:hover::before { background: #5AA8EC; }
.cl-reply::before { transition: background 0.3s ease; }
.cl-reply:active { transform: scale(0.98); }
.cl-delivered { margin: 6px 14px 0 0; font-size: 19px; font-weight: 500; color: rgba(60, 60, 67, 0.55); }
/* softer in: drifting up out of a blur, easing to a stop */
.cl-msg.is-shown .cl-bubble { animation: cl-soft 0.8s cubic-bezier(.22, 1, .36, 1) backwards; }
@keyframes cl-soft { from { opacity: 0; transform: translateY(18px) scale(0.94); filter: blur(10px); } }
.cl-msg.is-typed .cl-text { animation: cl-text-in 0.6s cubic-bezier(.22, 1, .36, 1) backwards; }
@keyframes cl-text-in { from { opacity: 0; filter: blur(8px); } }
.cl-delivered.is-shown { transition: opacity 0.7s ease; }
.cl-typing { gap: 8px; padding: 10px 2px; }
.cl-typing i { width: 14px; height: 14px; background: rgba(60, 60, 67, 0.35); animation: cl-dot 1.3s ease-in-out infinite; }
@media (max-width: 767px) {
  .cl-chat { gap: 6px; }
  .cl-stamp { font-size: 12px; margin-bottom: 10px; }
  .cl-bubble { font-size: 17px; padding: 8px 14px; border-radius: 19px; max-width: 75vw; }
  .cl-them .cl-bubble { margin-left: 7px; border-bottom-left-radius: 19px; }
  .cl-me .cl-bubble { margin-right: 7px; border-bottom-right-radius: 19px; }
  .cl-bubble::before, .cl-bubble::after { height: 19px; }
  .cl-them .cl-bubble::before { left: -7px; width: 19px; border-bottom-right-radius: 15px 12px; }
  .cl-them .cl-bubble::after  { left: -10px; width: 10px; border-bottom-right-radius: 9px; }
  .cl-me .cl-bubble::before   { right: -7px; width: 19px; border-bottom-left-radius: 15px 12px; }
  .cl-me .cl-bubble::after    { right: -10px; width: 10px; border-bottom-left-radius: 9px; }
  .cl-delivered { font-size: 11px; margin-right: 8px; }
  .cl-typing i { width: 8px; height: 8px; }
  .cl-typing { gap: 5px; padding: 5px 1px; }
}
.cl-reply, .cl-reply:hover { box-shadow: none; }

/* iOS-style tails, redone: one shape (the real iMessage curl) as a mask filled with the bubble's own
   colour, tucked under the bubble's bottom corner — no page-coloured cut-outs, so it's clean on any
   background and follows the hover colour too */
.cl-chat .cl-bubble::after { content: none; }
.cl-them .cl-bubble { --bub: #E9E9EB; border-bottom-left-radius: 8px; }
.cl-me .cl-bubble   { --bub: #66B2F2; border-bottom-right-radius: 8px; }
.cl-reply:hover     { --bub: #5AA8EC; }
.cl-chat .cl-bubble::before {
  content: "";
  position: absolute; bottom: 0;
  width: 26px; height: 26px;
  background: var(--bub);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M0 20C5.2 20 9.8 17.6 12 12.4V0h8v20z'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M0 20C5.2 20 9.8 17.6 12 12.4V0h8v20z'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
  border-radius: 0;
  transition: background 0.3s ease;
}
.cl-them .cl-bubble::before { left: -15.6px; right: auto; }
.cl-me .cl-bubble::before   { right: -15.6px; left: auto; transform: scaleX(-1); }
@media (max-width: 767px) {
  .cl-them .cl-bubble { border-bottom-left-radius: 5px; }
  .cl-me .cl-bubble { border-bottom-right-radius: 5px; }
  .cl-chat .cl-bubble::before { width: 15px; height: 15px; }
  .cl-them .cl-bubble::before { left: -9px; }
  .cl-me .cl-bubble::before { right: -9px; }
}

/* iOS tails, third pass — shaped after the real one: the bubble's side runs straight down, curls out
   into a small hooked tip just below the bubble, and the tip's underside sweeps back into the bottom
   edge. Drawn for the right side, mirrored for the left. */
.cl-chat .cl-bubble::before {
  width: 38px; height: 38px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M0 0H8V7C8 13.4 11.3 17.6 19.6 19.7C14.2 20.7 7.4 20.3 3 17.6H0Z'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M0 0H8V7C8 13.4 11.3 17.6 19.6 19.7C14.2 20.7 7.4 20.3 3 17.6H0Z'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
  bottom: -3.8px;
}
.cl-me .cl-bubble::before   { right: -22.8px; left: auto; transform: none; }
.cl-them .cl-bubble::before { left: -22.8px; right: auto; transform: scaleX(-1); }
.cl-them .cl-bubble { border-bottom-left-radius: 12px; }
.cl-me .cl-bubble   { border-bottom-right-radius: 12px; }
.cl-chat .cl-msg { margin-bottom: 4px; }
@media (max-width: 767px) {
  .cl-chat .cl-bubble::before { width: 20px; height: 20px; bottom: -2px; }
  .cl-me .cl-bubble::before   { right: -12px; }
  .cl-them .cl-bubble::before { left: -12px; }
  .cl-them .cl-bubble { border-bottom-left-radius: 7px; }
  .cl-me .cl-bubble   { border-bottom-right-radius: 7px; }
}
/* chat: only fades in through a blur — nothing moves or scales */
@keyframes cl-soft { from { opacity: 0; filter: blur(10px); } }
@keyframes cl-text-in { from { opacity: 0; filter: blur(8px); } }
.cl-msg.is-shown .cl-bubble { animation: cl-soft 0.9s cubic-bezier(.22, 1, .36, 1) backwards; }
.cl-reply:hover { transform: none; }

/* tails, from Oly's own Figma bubble (figma/examplebubble.svg): the exact curl, scaled from its
   136px-tall bubble to ours, sitting under the bubble's rounded bottom corner as drawn there */
.cl-chat .cl-bubble::before {
  width: 40.3px; height: 26.1px;
  bottom: -12.0px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='368 110 74 48'%3E%3Cpath d='M394.5 137.5C388 135 368 135.872 368 135.872L383.092 110L432.68 113.234C434.836 115.39 436.5 121 431.5 124.5C423.601 130.029 425.134 139.106 426.212 143.418C427.29 147.73 440.226 156.354 430.524 156.354C422.763 156.354 401 140 394.5 137.5Z'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='368 110 74 48'%3E%3Cpath d='M394.5 137.5C388 135 368 135.872 368 135.872L383.092 110L432.68 113.234C434.836 115.39 436.5 121 431.5 124.5C423.601 130.029 425.134 139.106 426.212 143.418C427.29 147.73 440.226 156.354 430.524 156.354C422.763 156.354 401 140 394.5 137.5Z'/%3E%3C/svg%3E") no-repeat 0 0 / 100% 100%;
}
.cl-me .cl-bubble::before   { right: 9.8px; left: auto; transform: none; }
.cl-them .cl-bubble::before { left: 9.8px; right: auto; transform: scaleX(-1); }
.cl-them .cl-bubble { border-bottom-left-radius: 34px; }
.cl-me .cl-bubble   { border-bottom-right-radius: 34px; }
@media (max-width: 767px) {
  .cl-chat .cl-bubble::before { width: 20.7px; height: 13.4px; bottom: -6.1px; }
  .cl-me .cl-bubble::before   { right: 5.0px; }
  .cl-them .cl-bubble::before { left: 5.0px; }
  .cl-them .cl-bubble { border-bottom-left-radius: 19px; }
  .cl-me .cl-bubble   { border-bottom-right-radius: 19px; }
}
/* each bubble fades in whole (the text arrives with it, no typing dots) */
.cl-msg.is-typed .cl-text { animation: none; }
.cl-msg.is-shown .cl-bubble { animation: cl-soft 1s cubic-bezier(.22, 1, .36, 1) backwards; }
/* like iMessage: in a run of messages from the same side only the last keeps its tail — once the
   next one has arrived, the one above lets its tail fade away */
.cl-chat .cl-bubble::before { transition: background 0.3s ease, opacity 0.6s cubic-bezier(.22, 1, .36, 1); }
.cl-them:has(+ .cl-them.is-shown) .cl-bubble::before,
.cl-me:has(+ .cl-me.is-shown) .cl-bubble::before { opacity: 0; }
/* …and it doesn't just vanish: it tucks back up into the bubble (slides in, shrinks, softens away) */
.cl-chat .cl-bubble::before {
  transform-origin: 40% 0%;
  transition: background 0.3s ease, opacity 0.55s cubic-bezier(.4, 0, .2, 1) 0.05s,
    translate 0.6s cubic-bezier(.65, 0, .35, 1), scale 0.6s cubic-bezier(.65, 0, .35, 1);
}
.cl-them:has(+ .cl-them.is-shown) .cl-bubble::before { translate: 28% -55%; scale: 0.35; opacity: 0; }
.cl-me:has(+ .cl-me.is-shown) .cl-bubble::before     { translate: -28% -55%; scale: 0.35; opacity: 0; }

/* the blue reply on hover: it swells like a soap bubble (a soft jelly wobble that settles a touch
   bigger), and leans a little towards the cursor (clyro.js) */
.cl-reply { transform-origin: 85% 100%; transition: background 0.3s ease, translate 0.35s cubic-bezier(.22, 1, .36, 1), scale 0.5s cubic-bezier(.22, 1, .36, 1); }
.cl-reply:hover { scale: 1.05; animation: cl-jelly 0.9s cubic-bezier(.3, .7, .3, 1); }
.cl-reply:active { scale: 0.97; transition-duration: 0.15s; }
@keyframes cl-jelly {
  0%   { scale: 1; }
  25%  { scale: 1.1 0.93; }
  45%  { scale: 0.98 1.07; }
  65%  { scale: 1.07 1.01; }
  82%  { scale: 1.04 1.06; }
  100% { scale: 1.05; }
}
@media (prefers-reduced-motion: reduce) { .cl-reply:hover { animation: none; } }
.cl-chat .cl-msg.is-shown .cl-reply:hover { animation: cl-jelly 0.9s cubic-bezier(.3, .7, .3, 1); }   /* (beats the fade-in rule) */

/* hero pills, macOS Control Center style: dark liquid glass, a white circle with a Clyro-blue icon,
   two lines of bold white text */
.cl-pills { gap: 16px; margin-top: 40px; }
.cl-pill, .cl-pill.liquid-glass {
  height: 82px; padding: 0 30px 0 14px; gap: 14px; border-radius: 41px;
  color: #fff; background: rgba(40, 52, 62, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 10px 26px rgba(20, 35, 45, 0.16);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  text-decoration: none;
}
.cl-pill-ic { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--cl); background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12); }
.cl-pill-ic svg { width: 28px; height: 28px; }
.cl-pill-tx { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.cl-pill-tx b { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; color: #fff; }
.cl-pill-tx small { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.72); }
.cl-pill-link.liquid-glass { color: #fff; }
.cl-pill-link.liquid-glass:hover { background: rgba(40, 52, 62, 0.55); transform: translateY(-2px); }
@media (max-width: 767px) {
  .cl-pills { gap: 8px; margin-top: 24px; }
  .cl-pill, .cl-pill.liquid-glass { height: 50px; padding: 0 16px 0 8px; gap: 8px; border-radius: 25px; }
  .cl-pill-ic { width: 34px; height: 34px; }
  .cl-pill-ic svg { width: 18px; height: 18px; }
  .cl-pill-tx b { font-size: 13.5px; }
  .cl-pill-tx small { font-size: 12px; }
}
/* the reply on hover, simpler: it just glides a little to the left, and glides back when the cursor goes */
.cl-reply, .cl-reply:hover, .cl-chat .cl-msg.is-shown .cl-reply:hover { scale: none; }
.cl-chat .cl-msg.is-shown .cl-reply:hover { animation: cl-soft 1s cubic-bezier(.22, 1, .36, 1) backwards; }   /* (no jelly) */
.cl-reply { transition: background 0.3s ease, translate 0.7s cubic-bezier(.22, 1, .36, 1); }
.cl-reply:hover { translate: -18px 0; }
.cl-reply:active { translate: -18px 0; scale: 0.98; }
@media (max-width: 767px) { .cl-reply:hover { translate: -8px 0; } }
/* lighter glass: more see-through, tinted towards the sky */
.cl-pill, .cl-pill.liquid-glass { background: rgba(52, 78, 98, 0.26); --glass-fallback-blur: 22px; }
.cl-pill-link.liquid-glass:hover { background: rgba(52, 78, 98, 0.36); }
.cl-pill-tx b, .cl-pill-tx small { text-shadow: 0 1px 2px rgba(20, 35, 45, 0.18); }

/* hero pills, matched to macOS Control Center (the Wi‑Fi / Bluetooth tiles): same proportions
   (tile 104 · white circle 56 · its inset 24 · gap 20), SF Pro Semibold white text (title + subtitle),
   SF Symbols–style glyphs in system blue, and a proper glass rim — bright where the light hits the
   top-left, fading round, with a faint inner glow */
.cl-pills { gap: 18px; }
.cl-pill, .cl-pill.liquid-glass {
  --glass-highlight: 0.9;
  height: 104px; padding: 0 40px 0 24px; gap: 20px; border-radius: 52px;
  background: rgba(52, 78, 98, 0.26);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.5),
    inset 0 -1px 1px rgba(255, 255, 255, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 0 22px rgba(255, 255, 255, 0.06),
    0 12px 30px rgba(20, 35, 45, 0.12);
}
.cl-pill.liquid-glass::before {           /* the rim: a thin bright line, strongest top-left */
  padding: 1.5px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.25) 30%, rgba(255, 255, 255, 0.08) 55%, rgba(255, 255, 255, 0.35) 100%);
}
.cl-pill-ic { width: 56px; height: 56px; color: #3A82F7; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14); }
.cl-pill-ic svg { width: 26px; height: 26px; }
.cl-pill-tx { gap: 2px; line-height: 1.12; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif; }
.cl-pill-tx b { font-size: 21px; font-weight: 600; letter-spacing: -0.005em; color: #fff; }
.cl-pill-tx small { font-size: 20px; font-weight: 600; letter-spacing: -0.005em; color: rgba(255, 255, 255, 0.92); }
@media (max-width: 767px) {
  .cl-pills { gap: 8px; }
  .cl-pill, .cl-pill.liquid-glass { height: 54px; padding: 0 18px 0 12px; gap: 10px; border-radius: 27px; }
  .cl-pill-ic { width: 30px; height: 30px; }
  .cl-pill-ic svg { width: 15px; height: 15px; }
  .cl-pill-tx b { font-size: 12.5px; }
  .cl-pill-tx small { font-size: 12px; }
}

/* the reply on hover, as a bubble: it inflates softly (a gentle spring, from its tail corner),
   lifts off the page, and a soap-bubble sheen follows the cursor across it (clyro.js sets --mx/--my) */
.cl-reply { translate: none !important; transform-origin: 90% 100%;
  transition: background 0.35s ease, scale 0.6s cubic-bezier(.34, 1.45, .64, 1), box-shadow 0.5s ease; }
.cl-reply:hover { scale: 1.07; box-shadow: 0 14px 30px rgba(60, 140, 220, 0.28) !important; }
.cl-reply:active { scale: 0.97; transition-duration: 0.15s; }
.cl-chat .cl-reply::after {
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(60% 90% at var(--mx, 30%) var(--my, 20%), rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 55%);
  opacity: 0;
  transition: opacity 0.45s ease;
}
.cl-reply:hover::after { opacity: 1; }
.cl-chat .cl-msg.is-shown .cl-reply:hover { scale: 1.07; }   /* (beats the older "scale: none" rule) */
.cl-chat .cl-msg.is-shown .cl-reply:active { scale: 0.97; }

/* pills v3: lighter glass (a soft sky-grey, not black) and ~15% smaller */
.cl-pills { gap: 14px; }
.cl-pill, .cl-pill.liquid-glass, .cl-pill.liquid-glass.liquid-glass--dark {
  height: 88px; padding: 0 32px 0 20px; gap: 16px; border-radius: 44px;
  background: rgba(120, 155, 180, 0.2);
  --glass-tint: rgba(120, 155, 180, 0.2);
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.6),
    inset 0 -1px 1px rgba(255, 255, 255, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 0 22px rgba(255, 255, 255, 0.1),
    0 10px 26px rgba(20, 35, 45, 0.08);
}
.cl-pill-link.liquid-glass:hover { background: rgba(120, 155, 180, 0.3); }
.cl-pill-ic { width: 48px; height: 48px; }
.cl-pill-ic svg { width: 22px; height: 22px; }
.cl-pill-tx b { font-size: 18px; }
.cl-pill-tx small { font-size: 17px; }
.cl-pill-tx b, .cl-pill-tx small { text-shadow: 0 1px 2px rgba(20, 35, 45, 0.22); }
@media (max-width: 767px) {
  .cl-pills { gap: 7px; }
  .cl-pill, .cl-pill.liquid-glass, .cl-pill.liquid-glass.liquid-glass--dark { height: 46px; padding: 0 15px 0 9px; gap: 8px; border-radius: 23px; }
  .cl-pill-ic { width: 28px; height: 28px; }
  .cl-pill-ic svg { width: 14px; height: 14px; }
  .cl-pill-tx b { font-size: 11.5px; }
  .cl-pill-tx small { font-size: 11px; }
}
/* the 77px refraction pulled dark pixels in from outside these short pills; a gentler bend keeps them light */
.cl-pill.liquid-glass { --glass-refraction: 22px; --glass-edge: 26px; --glass-blur: 6px; }
.cl-pill.liquid-glass { -webkit-backdrop-filter: blur(14px) saturate(1.8) !important; backdrop-filter: blur(14px) saturate(1.8) !important; }
.cl-pill, .cl-pill.liquid-glass, .cl-pill.liquid-glass.liquid-glass--dark { background: rgba(88, 128, 158, 0.42); }
.cl-pill-link.liquid-glass:hover { background: rgba(88, 128, 158, 0.52); }
.cl-pill-ic svg { width: 30px; height: 30px; }
@media (max-width: 767px) { .cl-pill-ic svg { width: 18px; height: 18px; } }

/* reply hover, cleaned up: the sheen fills the whole bubble (an old rule had pinned it to 18×34px, which
   showed as a stray blob), and the lift shadow is a drop-shadow so it follows the tail too */
.cl-chat .cl-reply::after { width: auto; height: auto; inset: 0; background-color: transparent; }
.cl-reply, .cl-reply:hover { box-shadow: none !important; }
.cl-reply { filter: drop-shadow(0 0 0 rgba(60, 140, 220, 0)); transition: background 0.35s ease, scale 0.6s cubic-bezier(.34, 1.45, .64, 1), filter 0.5s ease; }
.cl-reply:hover { filter: drop-shadow(0 10px 16px rgba(60, 140, 220, 0.3)); }
.cl-reply > span { position: relative; z-index: 1; }
.cl-chat .cl-reply::after { background:
    radial-gradient(55% 85% at var(--mx, 30%) var(--my, 20%), rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 55%); }

/* pills v4: matched to the macOS Control Center AirDrop tile — a flat, cool translucent tint a touch
   darker than the page, a crisp inset hairline edge (no rim layers, no warm tint), almost no shadow */
.cl-pills { gap: 12px; }
.cl-pill, .cl-pill.liquid-glass, .cl-pill.liquid-glass.liquid-glass--dark {
  height: 72px; padding: 0 28px 0 12px; gap: 14px; border-radius: 999px;
  border: 0;
  background: rgba(118, 132, 152, 0.36);
  background-image: none;
  -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
          backdrop-filter: blur(24px) saturate(180%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(255, 255, 255, 0.10),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 1px 2px rgba(20, 30, 50, 0.06);
  transform: none; translate: none; scale: none;
  transition: background-color 150ms ease;
}
.cl-pill.liquid-glass::before, .cl-pill.liquid-glass::after { display: none; }
.cl-pill-link.liquid-glass:hover { background: rgba(118, 132, 152, 0.42); transform: none; }
.cl-pill-ic { width: 48px; height: 48px; color: #007AFF; background: #fff; box-shadow: none; }
.cl-pill-ic svg { width: 24px; height: 24px; }
.cl-pill-tx { gap: 1px; font-family: -apple-system, "SF Pro Text", system-ui, sans-serif; line-height: 1.15; }
.cl-pill-tx b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: #fff; line-height: 1.15; }
.cl-pill-tx small { font-size: 15px; font-weight: 500; letter-spacing: -0.005em; color: rgba(255, 255, 255, 0.85); line-height: 1.15; }
.cl-pill-tx b, .cl-pill-tx small { text-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.10); }
@media (max-width: 767px) {
  .cl-pills { gap: 7px; }
  .cl-pill, .cl-pill.liquid-glass, .cl-pill.liquid-glass.liquid-glass--dark { height: 44px; padding: 0 15px 0 7px; gap: 8px; }
  .cl-pill-ic { width: 30px; height: 30px; }
  .cl-pill-ic svg { width: 15px; height: 15px; }
  .cl-pill-tx b { font-size: 12px; }
  .cl-pill-tx small { font-size: 11px; }
}

/* pills v5: measured off the user's Control Center screenshot (Wi‑Fi / Bluetooth / AirDrop tiles).
   Ratios to tile height: circle .58, its inset .23, glyph .54 of the circle, title .21, subtitle .19.
   Rim: a hairline that is white along the top and bottom and turns dark down the sides; a soft inner
   glow only near the top and bottom; no outer shadow. Fill: a cool slate tint over the page. */
.cl-pills { gap: 14px; }
.cl-pill, .cl-pill.liquid-glass, .cl-pill.liquid-glass.liquid-glass--dark {
  height: 80px; padding: 0 30px 0 18px; gap: 12px; border-radius: 40px;
  background: rgba(40, 70, 90, 0.36);
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
          backdrop-filter: blur(24px) saturate(160%) !important;
  box-shadow:
    inset 0 11px 12px -9px rgba(255, 255, 255, 0.30),
    inset 0 -11px 12px -9px rgba(255, 255, 255, 0.22);
}
.cl-pill.liquid-glass::before {
  display: block; z-index: 0; padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.55) 14%,
    rgba(25, 40, 52, 0.55) 38%,
    rgba(25, 40, 52, 0.55) 62%,
    rgba(255, 255, 255, 0.55) 86%,
    rgba(255, 255, 255, 0.95) 100%);
}
.cl-pill.liquid-glass::after { display: none; }
.cl-pill > * { position: relative; z-index: 1; }
.cl-pill-link.liquid-glass:hover { background: rgba(40, 70, 90, 0.42); }
.cl-pill-ic { width: 46px; height: 46px; color: #007AFF; background: #fff; box-shadow: none; }
.cl-pill-ic svg { width: 25px; height: 25px; }
.cl-pill-tx { gap: 2px; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; line-height: 1.2; }
.cl-pill-tx b     { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: #fff; line-height: 1.2; }
.cl-pill-tx small { font-size: 15px; font-weight: 600; letter-spacing: -0.005em; color: rgba(255, 255, 255, 0.92); line-height: 1.2; }
.cl-pill-tx b, .cl-pill-tx small { text-shadow: none; }
@media (max-width: 767px) {
  .cl-pills { gap: 7px; }
  .cl-pill, .cl-pill.liquid-glass, .cl-pill.liquid-glass.liquid-glass--dark { height: 46px; padding: 0 16px 0 10px; gap: 7px; border-radius: 23px; }
  .cl-pill-ic { width: 27px; height: 27px; }
  .cl-pill-ic svg { width: 15px; height: 15px; }
  .cl-pill-tx b { font-size: 11.5px; }
  .cl-pill-tx small { font-size: 10.5px; }
}
.cl-pill, .cl-pill.liquid-glass, .cl-pill.liquid-glass.liquid-glass--dark { background: rgba(28, 68, 96, 0.36); }
.cl-pill-link.liquid-glass:hover { background: rgba(28, 68, 96, 0.42); }

/* pills: a lighter dark hairline down the sides (it stood out too much) */
.cl-pill.liquid-glass::before {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.5) 14%,
    rgba(25, 40, 52, 0.2) 38%,
    rgba(25, 40, 52, 0.2) 62%,
    rgba(255, 255, 255, 0.5) 86%,
    rgba(255, 255, 255, 0.95) 100%);
}
/* pills come in one by one like the island: a soft spring with a small overshoot, out of a blur */
.cl-pills { animation: none; }
.cl-pill { animation: cl-pill-in 1s cubic-bezier(.22, 1, .36, 1) 0.75s backwards; }
.cl-pill:nth-child(2) { animation-delay: 0.85s; }
.cl-pill:nth-child(3) { animation-delay: 0.95s; }
@keyframes cl-pill-in {
  0%   { opacity: 0; scale: 0.72; translate: 0 14px; filter: blur(12px); }
  55%  { opacity: 1; scale: 1.045; translate: 0 -2px; filter: blur(0); }
  78%  { scale: 0.99; translate: 0 0; }
  100% { scale: 1; translate: 0 0; filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) { .cl-pill { animation: none; } }

/* in-the-edit cards: just the spinning rainbow wait ball in the middle (drawn in CSS) */
.cl-ball {
  position: relative; width: 84px; height: 84px; border-radius: 50%;
  background: conic-gradient(from 0deg,
    #FF3B30 0deg 22deg, #FF9500 22deg 60deg, #FFCC00 60deg 112deg, #34C759 112deg 172deg,
    #00C7BE 172deg 216deg, #007AFF 216deg 262deg, #5856D6 262deg 300deg, #AF52DE 300deg 336deg, #FF3B30 336deg 360deg);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  animation: cl-ball-spin 1.1s linear infinite;
}
.cl-ball::after {            /* glassy dome: a highlight up top, shade at the bottom — stays put while the colours spin */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background:
    radial-gradient(60% 45% at 50% 22%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 70%),
    radial-gradient(100% 100% at 50% 40%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.28) 100%);
  animation: cl-ball-spin 1.1s linear infinite reverse;
}
@keyframes cl-ball-spin { to { rotate: 360deg; } }
@media (max-width: 767px) { .cl-ball { width: 48px; height: 48px; } }
@media (prefers-reduced-motion: reduce) { .cl-ball, .cl-ball::after { animation-duration: 3s; } }
.cl-pill-link:hover svg, .cl-pill-link:hover .cl-pill-ic svg { transform: none; }

/* "All projects": the same Control Center glass as the hero pills, and the same bubble hover (clyro.js) */
.cl-back.liquid-glass, .cl-back.liquid-glass.liquid-glass--dark {
  height: 48px; padding: 0 20px 0 14px; gap: 5px; border-radius: 24px;
  color: #fff; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  background: rgba(28, 68, 96, 0.36);
  -webkit-backdrop-filter: blur(24px) saturate(160%) !important;
          backdrop-filter: blur(24px) saturate(160%) !important;
  box-shadow:
    inset 0 7px 8px -6px rgba(255, 255, 255, 0.30),
    inset 0 -7px 8px -6px rgba(255, 255, 255, 0.22);
  transition: background-color 150ms ease;
}
.cl-back.liquid-glass:hover { background: rgba(28, 68, 96, 0.42); }
.cl-back.liquid-glass:active { transform: none; }
.cl-back.liquid-glass:hover svg { transform: none; }
.cl-back.liquid-glass::before {
  display: block; z-index: 0; padding: 1.2px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.5) 14%,
    rgba(25, 40, 52, 0.2) 38%, rgba(25, 40, 52, 0.2) 62%,
    rgba(255, 255, 255, 0.5) 86%, rgba(255, 255, 255, 0.95) 100%);
}
.cl-back.liquid-glass::after { display: none; }
.cl-back > * { position: relative; z-index: 1; }
@media (max-width: 767px) {
  .cl-back.liquid-glass, .cl-back.liquid-glass.liquid-glass--dark { height: 40px; padding: 0 16px 0 10px; border-radius: 20px; font-size: 15px; }
}

/* the wait ball: the user's own drawing (assets/clyro/loading.svg); only the colours turn, the shadow stays put */
.cl-ball { background: none; box-shadow: none; animation: none; filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.4)); }
.cl-ball::after {
  background: url(/assets/clyro/loading.svg) center / contain no-repeat;
  animation: cl-ball-spin 1.1s linear infinite;
}

.cl-card-meta { display: none; }

/* shelf cards: Whop-style 3D tilt (clyro.js) — follows the pointer directly, glides home when it leaves */
.cl-card-shot { transition: transform 0.6s cubic-bezier(.22, 1, .36, 1), box-shadow 0.4s ease; will-change: transform; }
.cl-card.is-tilt .cl-card-shot { transition: transform 0.12s ease-out, box-shadow 0.4s ease; }
.cl-glare {
  position: absolute; inset: 0; z-index: 3; border-radius: inherit; pointer-events: none;
  background: radial-gradient(40% 50% at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  opacity: 0; transition: opacity 0.5s ease;
}
.cl-card.is-tilt .cl-glare { opacity: 1; }
/* room under the cards so the hover shadow (and the tilt) isn't cut by the scroller's edge */
.cl-shelf { padding-top: 40px; padding-bottom: 110px; margin-top: -20px; margin-bottom: -60px; }
@media (max-width: 767px) { .cl-shelf { padding-top: 10px; padding-bottom: 40px; margin-top: 0; margin-bottom: -14px; } }
/* pills: a little more air above and below */
.cl-pill, .cl-pill.liquid-glass, .cl-pill.liquid-glass.liquid-glass--dark { height: 92px; border-radius: 46px; }
@media (max-width: 767px) { .cl-pill, .cl-pill.liquid-glass, .cl-pill.liquid-glass.liquid-glass--dark { height: 52px; border-radius: 26px; } }
/* the grey tail: an old rule still rounded one corner of it, which (mirrored) clipped its tip */
.cl-chat .cl-bubble::before { border-radius: 0; }
/* the grey tail is the blue one mirrored — flip it around its own centre (an old origin pushed it ~8px left) */
.cl-them .cl-bubble::before { transform-origin: 50% 50%; }
.cl-pill, .cl-pill.liquid-glass, .cl-pill.liquid-glass.liquid-glass--dark { height: 85px; border-radius: 43px; }
@media (max-width: 767px) { .cl-pill, .cl-pill.liquid-glass, .cl-pill.liquid-glass.liquid-glass--dark { height: 48px; border-radius: 24px; } }

/* shelf arrows: one capsule like the Finder back/forward control (measured off the user's screenshot):
   2:1 capsule, near-white fill (a touch lighter top and bottom), a fine grey hairline, a faint shadow,
   a short grey divider in the middle (55% of the height), thin black chevrons centred in each half */
.cl-arrows {
  position: relative; display: flex; align-items: center; gap: 0;
  width: 118px; height: 58px; border-radius: 29px;
  background: linear-gradient(180deg, #FCFCFC 0%, #F8F8F8 30%, #F8F8F8 70%, #FCFCFC 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.13),
    0 1px 1px rgba(0, 0, 0, 0.03),
    0 4px 12px rgba(0, 0, 0, 0.05);
}
.cl-arrows .cl-arrow, .cl-arrows .cl-arrow:hover, .cl-arrows .cl-arrow:active {
  flex: 1; height: 100%; width: auto; padding: 0; margin: 0; border: 0; border-radius: 0;
  display: grid; place-items: center;
  background: none; box-shadow: none; transform: none; color: #000;
  transition: opacity 0.2s ease;
}
.cl-arrows .cl-arrow:first-child { border-radius: 29px 0 0 29px; }
.cl-arrows .cl-arrow:last-child  { border-radius: 0 29px 29px 0; }
.cl-arrows .cl-arrow svg { width: 27px; height: 27px; transition: transform 0.35s cubic-bezier(.22, 1, .36, 1); }
.cl-arrows .cl-arrow:hover { background: rgba(0, 0, 0, 0.035); }
.cl-arrows .cl-arrow:active svg { transform: scale(0.88); }
.cl-arrows .cl-arrow[disabled] { opacity: 0.28; pointer-events: none; }
.cl-seg-div { flex: none; width: 1.5px; height: 55%; background: #C4C4C4; border-radius: 1px; }
.cl-arrows .cl-arrow svg { width: 38px; height: 38px; }
.cl-arrows .cl-arrow path { stroke-width: 2; }
/* arrows v2, re-measured at pixel level: chevron 38% of the height (bbox .57 wide:tall), stroke 5% of the
   height; one even grey hairline; a thin white line just inside the bottom; fill lighter top & bottom */
.cl-arrows {
  background: linear-gradient(180deg, #FCFCFC 0%, #F7F7F7 28%, #F8F8F8 55%, #FCFCFC 88%, #FEFEFE 100%);
  box-shadow:
    inset 0 0 0 0.8px rgba(0, 0, 0, 0.2),
    inset 0 -2.2px 0 #fff,
    0 2px 6px rgba(0, 0, 0, 0.035);
}
.cl-arrows .cl-arrow svg { width: 33px; height: 33px; }
.cl-arrows .cl-arrow path { stroke-width: 2.1; }
.cl-seg-div { width: 1.6px; background: #C7C7C7; }
/* arrows are liquid glass (as in Tahoe's Finder): a see-through white tint over a blur, a gentle refraction
   at the rim, the same hairline + inner bottom highlight on top */
.cl-arrows.liquid-glass {
  --glass-refraction: 16px; --glass-edge: 18px; --glass-blur: 3px; --glass-highlight: 0.6; --glass-fallback-blur: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0%, rgba(246, 246, 246, 0.5) 30%, rgba(247, 247, 247, 0.5) 55%, rgba(255, 255, 255, 0.62) 90%, rgba(255, 255, 255, 0.75) 100%);
  box-shadow:
    inset 0 0 0 0.8px rgba(0, 0, 0, 0.2),
    inset 0 -2.2px 0 rgba(255, 255, 255, 0.9),
    0 2px 6px rgba(0, 0, 0, 0.035);
}
.cl-arrows.liquid-glass::after { display: none; }
.cl-arrows > * { position: relative; z-index: 1; }

/* ready cards with their video: it fills the card; the play button only shows on hover, and hides while it plays with sound */
.cl-card-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 0.6s ease; }
.cl-card.has-video .cl-card-vid { opacity: 1; }
.cl-card.has-video .cl-card-buddy { opacity: 0; }
.cl-card.has-video .cl-play { opacity: 0; transform: scale(0.85); transition: opacity 0.35s ease, transform 0.5s cubic-bezier(.34, 1.56, .64, 1); }
.cl-card.has-video:hover .cl-play { opacity: 1; transform: scale(1); }
.cl-card.has-video.is-sound .cl-play { opacity: 0; transform: scale(0.85); }
/* arrows: a glass rim instead of a flat grey hairline — light catches the top and the bottom edge, the sides
   go a soft see-through grey; only a whisper of shadow (7%) */
.cl-arrows.liquid-glass {
  box-shadow:
    inset 0 -2px 0 rgba(255, 255, 255, 0.7),
    0 2px 8px rgba(0, 0, 0, 0.07);
}
.cl-arrows.liquid-glass::before {
  display: block; z-index: 0; padding: 1px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 1) 0%, rgba(205, 205, 210, 0.75) 22%,
    rgba(150, 150, 158, 0.4) 50%,
    rgba(205, 205, 210, 0.75) 78%, rgba(255, 255, 255, 1) 100%);
}
/* video cards: speaker button — muted shows the crossed speaker, playing with sound shows the waves; on hover only */
.cl-mute svg { grid-area: 1 / 1; width: 40px; height: 40px; }
.cl-mute .on { display: none; }
.cl-card.is-sound .cl-mute .on { display: block; }
.cl-card.is-sound .cl-mute .off { display: none; }
.cl-card.has-video.is-sound:hover .cl-play { opacity: 1; transform: scale(1); }
/* arrows hover, as in Finder: a soft grey pill (78% × 66% of the capsule height) fades in behind the chevron,
   centred in its half, and the middle divider fades out */
.cl-arrows .cl-arrow, .cl-arrows .cl-arrow:hover { background: none; position: relative; }
.cl-arrows .cl-arrow::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 45px; height: 38px; border-radius: 19px;
  translate: -50% -50%; scale: 0.9; background: rgba(0, 0, 0, 0.055); opacity: 0;
  transition: opacity 0.2s ease, scale 0.35s cubic-bezier(.22, 1, .36, 1);
}
.cl-arrows .cl-arrow:hover::before { opacity: 1; scale: 1; }
.cl-arrows .cl-arrow:active::before { background: rgba(0, 0, 0, 0.09); }
.cl-arrows .cl-arrow svg { position: relative; }
.cl-seg-div { transition: opacity 0.2s ease; }
.cl-arrows:has(.cl-arrow:not([disabled]):hover) .cl-seg-div { opacity: 0; }
.cl-arrows .cl-arrow[disabled] { opacity: 1; color: #ADADAD; }
/* arrows hover: a true circle behind the chevron */
.cl-arrows .cl-arrow::before { width: 44px; height: 44px; border-radius: 50%; }
/* the press rides the same transform as the tilt: a quick soft dip, and a gentle spring back */
.cl-card.is-tilt.is-press .cl-card-shot { transition: transform 0.15s cubic-bezier(.22, 1, .36, 1), box-shadow 0.4s ease; }
.cl-card:focus { outline: none; }
.cl-card:focus-visible .cl-card-shot { outline: 3px solid rgba(59, 134, 181, 0.6); outline-offset: 4px; }
/* arrows: a touch more room left and right */
.cl-arrows { width: 128px; padding: 0 5px; box-sizing: border-box; }
/* the speaker button on video cards: black liquid glass, white glyph */
.cl-play.cl-mute.liquid-glass {
  color: #fff;
  background: rgba(18, 18, 20, 0.42);
  --glass-tint: rgba(18, 18, 20, 0.42);
  --glass-refraction: 30px; --glass-edge: 26px; --glass-highlight: 0.35;
}
/* softer hover glare — barely there on the dark in-the-edit cards */
.cl-glare { background: radial-gradient(40% 50% at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)); }
.cl-card.is-wip .cl-glare { background: radial-gradient(40% 50% at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0)); }
/* a stronger fade at the shelf's sides */
.cl-shelf {
  -webkit-mask: linear-gradient(to right, transparent 0, transparent 30px, rgba(0, 0, 0, 0.45) 85px, #000 155px, #000 calc(100% - 155px), rgba(0, 0, 0, 0.45) calc(100% - 85px), transparent calc(100% - 30px), transparent 100%);
          mask: linear-gradient(to right, transparent 0, transparent 30px, rgba(0, 0, 0, 0.45) 85px, #000 155px, #000 calc(100% - 155px), rgba(0, 0, 0, 0.45) calc(100% - 85px), transparent calc(100% - 30px), transparent 100%);
}
@media (max-width: 767px) {
  .cl-shelf { -webkit-mask: linear-gradient(to right, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); mask: linear-gradient(to right, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%); }
}
/* the side strips also wash into the page colour, so the next card fades out instead of showing as a grey smear */
.cl-edge-l { background: linear-gradient(to right, #F9FDFF 35%, rgba(249, 253, 255, 0)); }
.cl-edge-r { background: linear-gradient(to left, #F9FDFF 35%, rgba(249, 253, 255, 0)); }
/* the hover glare on the video cards: just a hint */
.cl-glare { background: radial-gradient(40% 50% at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)); }
.cl-card.is-wip .cl-glare { background: radial-gradient(40% 50% at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)); }
.cl-edge-l { background: linear-gradient(to right, #F9FDFF 55%, rgba(249, 253, 255, 0.6) 75%, rgba(249, 253, 255, 0)); }
.cl-edge-r { background: linear-gradient(to left, #F9FDFF 55%, rgba(249, 253, 255, 0.6) 75%, rgba(249, 253, 255, 0)); }
.cl-arrows.liquid-glass { box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.7), 0 1px 4px rgba(0, 0, 0, 0.045); }
/* hovering one card dims the others, so the focus is on that one */
.cl-card { transition: opacity 0.45s cubic-bezier(.22, 1, .36, 1); }
@media (hover: hover) { .cl-shelf:has(.cl-card:hover) .cl-card:not(:hover) { opacity: 0.4; } }
/* no fade on the side you can't scroll any further (the start / the end) */
.cl-shelf { --fl: transparent; --fl2: rgba(0, 0, 0, 0.45); --fr: transparent; --fr2: rgba(0, 0, 0, 0.45); transition: -webkit-mask 0.4s ease; }
.cl-shelf-wrap.at-start .cl-shelf { --fl: #000; --fl2: #000; }
.cl-shelf-wrap.at-end .cl-shelf { --fr: #000; --fr2: #000; }
@media (min-width: 768px) {
  .cl-shelf {
    -webkit-mask: linear-gradient(to right, var(--fl) 0, var(--fl) 30px, var(--fl2) 85px, #000 155px, #000 calc(100% - 155px), var(--fr2) calc(100% - 85px), var(--fr) calc(100% - 30px), var(--fr) 100%);
            mask: linear-gradient(to right, var(--fl) 0, var(--fl) 30px, var(--fl2) 85px, #000 155px, #000 calc(100% - 155px), var(--fr2) calc(100% - 85px), var(--fr) calc(100% - 30px), var(--fr) 100%);
  }
}
.cl-edge { transition: opacity 0.4s ease; }
.cl-shelf-wrap.at-start .cl-edge-l, .cl-shelf-wrap.at-end .cl-edge-r { opacity: 0; }
/* the island's "Watch" button: Clyro blue, white text */
#islandHQ.island-ok, #islandHQ.island-ok:hover { background: var(--cl, #3B86B5); color: #fff; }
#islandHQ.island-ok:hover { filter: brightness(1.08); }

/* softer press on the video cards: the tilt follows a little more lazily, the dip is smaller and eases in
   and out on one long soft curve, and the speaker glyphs cross-fade instead of snapping */
.cl-card.is-tilt .cl-card-shot { transition: transform 0.3s cubic-bezier(.22, 1, .36, 1), box-shadow 0.4s ease; }
.cl-card.is-tilt.is-press .cl-card-shot { transition: transform 0.45s cubic-bezier(.22, 1, .36, 1), box-shadow 0.4s ease; }
.cl-mute svg { display: block !important; transition: opacity 0.35s ease, scale 0.45s cubic-bezier(.22, 1, .36, 1), filter 0.35s ease; }
.cl-mute .on { opacity: 0; scale: 0.8; filter: blur(3px); }
.cl-card.is-sound .cl-mute .on { opacity: 1; scale: 1; filter: none; }
.cl-card.is-sound .cl-mute .off { opacity: 0; scale: 0.8; filter: blur(3px); }
.cl-card.has-video .cl-play { transition: opacity 0.4s ease, transform 0.6s cubic-bezier(.22, 1, .36, 1); }
#islandHQ.island-ok, #islandHQ.island-ok:hover { background: var(--blue, #1F66FF); color: #fff; }

/* the click glitch: the card lifted 6px on hover but swapped that lift for scale(.985) on :active — a 6px jump
   down and back on every click — and a later rule had dropped the transform transition, so it snapped.
   Now the lift stays put through the press (the press is only the soft dip on the shot), and both the lift
   and the dimming glide. */
.cl-card { transition: transform 0.6s cubic-bezier(.22, 1, .36, 1), opacity 0.45s cubic-bezier(.22, 1, .36, 1); }
.cl-card:hover, .cl-card:hover:active { transform: translateY(-6px); }
.cl-card:active { transform: none; }

/* "Now playing" pill (dark liquid glass) on the card that has the sound */
.cl-now {
  position: absolute; left: 24px; bottom: 24px; z-index: 4;
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 18px 0 15px; border-radius: 23px;
  color: #fff; background: rgba(18, 18, 20, 0.42);
  --glass-tint: rgba(18, 18, 20, 0.42); --glass-refraction: 24px; --glass-edge: 20px; --glass-highlight: 0.35;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  pointer-events: none;
  opacity: 0; scale: 0.86; translate: 0 6px; filter: blur(8px);
  transition: opacity 0.35s ease, scale 0.6s cubic-bezier(.34, 1.3, .64, 1), translate 0.6s cubic-bezier(.22, 1, .36, 1), filter 0.4s ease;
  transform-origin: 0% 100%;
}
.cl-card.is-sound .cl-now { opacity: 1; scale: 1; translate: 0 0; filter: blur(0); }
.cl-now > * { position: relative; z-index: 1; }
/* the waveform glyph: five rounded bars, the middle tallest, gently bouncing out of step */
.cl-now-wave { display: inline-flex; align-items: center; gap: 2.5px; height: 18px; }
.cl-now-wave i { display: block; width: 3px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: 50% 50%; scale: 1 0.4; }
.cl-card.is-sound .cl-now-wave i { animation: cl-wave 1s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
.cl-now-wave i:nth-child(1) { --h: 0.45; animation-delay: -0.2s; }
.cl-now-wave i:nth-child(2) { --h: 0.8;  animation-delay: -0.55s; }
.cl-now-wave i:nth-child(3) { --h: 1;    animation-delay: -0.1s; }
.cl-now-wave i:nth-child(4) { --h: 0.7;  animation-delay: -0.75s; }
.cl-now-wave i:nth-child(5) { --h: 0.4;  animation-delay: -0.35s; }
@keyframes cl-wave { from { scale: 1 0.25; } to { scale: 1 var(--h); } }
@media (prefers-reduced-motion: reduce) { .cl-card.is-sound .cl-now-wave i { animation: none; scale: 1 var(--h); } }
@media (max-width: 767px) {
  .cl-now { left: 12px; bottom: 12px; height: 32px; padding: 0 12px 0 10px; gap: 7px; border-radius: 16px; font-size: 12px; }
  .cl-now-wave { height: 12px; gap: 2px; }
  .cl-now-wave i { width: 2px; }
}
@keyframes cl-wave { from { scale: 1 0.35; } to { scale: 1 var(--h); } }
/* live waveform: the bars are driven by the sound itself (clyro.js), so no idle animation */
.cl-card.is-live .cl-now-wave i { animation: none; transition: none; }

/* smoother side fade, no line: the blur strips are gone (a backdrop blur always has a hard edge where it starts,
   which showed as a line over the cards); the fade is just the mask now, on an eased curve instead of a ramp */
@media (min-width: 768px) {
  .cl-edge { display: none; }
  .cl-shelf {
    --fl: 0; --fr: 0;
    -webkit-mask: linear-gradient(to right,
      rgba(0,0,0,var(--fl)) 0, rgba(0,0,0,var(--fl)) 18px,
      rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.06)) 48px,
      rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.2)) 78px,
      rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.44)) 108px,
      rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.7)) 138px,
      rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.9)) 165px,
      #000 190px, #000 calc(100% - 190px),
      rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.9)) calc(100% - 165px),
      rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.7)) calc(100% - 138px),
      rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.44)) calc(100% - 108px),
      rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.2)) calc(100% - 78px),
      rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.06)) calc(100% - 48px),
      rgba(0,0,0,var(--fr)) calc(100% - 18px), rgba(0,0,0,var(--fr)) 100%);
            mask: linear-gradient(to right,
      rgba(0,0,0,var(--fl)) 0, rgba(0,0,0,var(--fl)) 18px,
      rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.06)) 48px,
      rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.2)) 78px,
      rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.44)) 108px,
      rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.7)) 138px,
      rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.9)) 165px,
      #000 190px, #000 calc(100% - 190px),
      rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.9)) calc(100% - 165px),
      rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.7)) calc(100% - 138px),
      rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.44)) calc(100% - 108px),
      rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.2)) calc(100% - 78px),
      rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.06)) calc(100% - 48px),
      rgba(0,0,0,var(--fr)) calc(100% - 18px), rgba(0,0,0,var(--fr)) 100%);
  }
  .cl-shelf-wrap.at-start .cl-shelf { --fl: 1; }
  .cl-shelf-wrap.at-end .cl-shelf { --fr: 1; }
}

/* side fade v3: everything past the content edge is fully clear (so the next card never shows as a grey
   sliver), and the visible card's outer edge melts away on a smoothstep curve — no ramp corners, no line */
@media (min-width: 768px) {
  .cl-shelf { -webkit-mask: linear-gradient(to right, rgba(0,0,0,var(--fl)) 0, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.000)) 70px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.028)) 87px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.104)) 103px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.216)) 120px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.352)) 136px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.500)) 153px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.648)) 169px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.784)) 186px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.896)) 202px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.972)) 219px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 1.000)) 235px, rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 1.000)) calc(100% - 235px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.972)) calc(100% - 219px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.896)) calc(100% - 202px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.784)) calc(100% - 186px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.648)) calc(100% - 169px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.500)) calc(100% - 153px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.352)) calc(100% - 136px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.216)) calc(100% - 120px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.104)) calc(100% - 103px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.028)) calc(100% - 87px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.000)) calc(100% - 70px), rgba(0,0,0,var(--fr)) 100%); mask: linear-gradient(to right, rgba(0,0,0,var(--fl)) 0, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.000)) 70px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.028)) 87px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.104)) 103px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.216)) 120px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.352)) 136px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.500)) 153px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.648)) 169px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.784)) 186px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.896)) 202px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.972)) 219px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 1.000)) 235px, rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 1.000)) calc(100% - 235px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.972)) calc(100% - 219px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.896)) calc(100% - 202px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.784)) calc(100% - 186px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.648)) calc(100% - 169px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.500)) calc(100% - 153px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.352)) calc(100% - 136px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.216)) calc(100% - 120px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.104)) calc(100% - 103px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.028)) calc(100% - 87px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.000)) calc(100% - 70px), rgba(0,0,0,var(--fr)) 100%); }
}

/* side fade v4: everything past the content edge is fully clear (so the next card never shows as a grey
   sliver), and the visible card's outer edge melts away on a smoothstep curve — no ramp corners, no line */
@media (min-width: 768px) {
  .cl-shelf { -webkit-mask: linear-gradient(to right, rgba(0,0,0,var(--fl)) 0, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.000)) 150px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.028)) 168px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.104)) 186px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.216)) 204px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.352)) 222px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.500)) 240px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.648)) 258px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.784)) 276px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.896)) 294px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.972)) 312px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 1.000)) 330px, rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 1.000)) calc(100% - 330px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.972)) calc(100% - 312px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.896)) calc(100% - 294px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.784)) calc(100% - 276px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.648)) calc(100% - 258px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.500)) calc(100% - 240px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.352)) calc(100% - 222px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.216)) calc(100% - 204px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.104)) calc(100% - 186px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.028)) calc(100% - 168px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.000)) calc(100% - 150px), rgba(0,0,0,var(--fr)) 100%); mask: linear-gradient(to right, rgba(0,0,0,var(--fl)) 0, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.000)) 150px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.028)) 168px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.104)) 186px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.216)) 204px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.352)) 222px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.500)) 240px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.648)) 258px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.784)) 276px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.896)) 294px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.972)) 312px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 1.000)) 330px, rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 1.000)) calc(100% - 330px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.972)) calc(100% - 312px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.896)) calc(100% - 294px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.784)) calc(100% - 276px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.648)) calc(100% - 258px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.500)) calc(100% - 240px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.352)) calc(100% - 222px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.216)) calc(100% - 204px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.104)) calc(100% - 186px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.028)) calc(100% - 168px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.000)) calc(100% - 150px), rgba(0,0,0,var(--fr)) 100%); }
}
/* the film can be clicked (sound on/off): the hand, not the arrow (an earlier rule set it to inherit) */
.cl-player { cursor: url(/assets/cursors/pointer.png?v=1792255496) 26 20, pointer; cursor: image-set(url(/assets/cursors/pointer.png?v=1792255496) 1x, url(/assets/cursors/pointer@2x.png?v=1792255496) 2x) 26 20, pointer; }

/* side fade v5 (narrower, so it no longer covers the cards): everything past the content edge is fully clear (so the next card never shows as a grey
   sliver), and the visible card's outer edge melts away on a smoothstep curve — no ramp corners, no line */
@media (min-width: 768px) {
  .cl-shelf { -webkit-mask: linear-gradient(to right, rgba(0,0,0,var(--fl)) 0, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.000)) 125px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.028)) 133px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.104)) 141px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.216)) 149px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.352)) 157px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.500)) 165px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.648)) 173px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.784)) 181px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.896)) 189px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.972)) 197px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 1.000)) 205px, rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 1.000)) calc(100% - 205px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.972)) calc(100% - 197px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.896)) calc(100% - 189px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.784)) calc(100% - 181px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.648)) calc(100% - 173px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.500)) calc(100% - 165px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.352)) calc(100% - 157px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.216)) calc(100% - 149px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.104)) calc(100% - 141px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.028)) calc(100% - 133px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.000)) calc(100% - 125px), rgba(0,0,0,var(--fr)) 100%); mask: linear-gradient(to right, rgba(0,0,0,var(--fl)) 0, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.000)) 125px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.028)) 133px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.104)) 141px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.216)) 149px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.352)) 157px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.500)) 165px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.648)) 173px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.784)) 181px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.896)) 189px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 0.972)) 197px, rgba(0,0,0,calc(var(--fl) + (1 - var(--fl)) * 1.000)) 205px, rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 1.000)) calc(100% - 205px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.972)) calc(100% - 197px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.896)) calc(100% - 189px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.784)) calc(100% - 181px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.648)) calc(100% - 173px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.500)) calc(100% - 165px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.352)) calc(100% - 157px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.216)) calc(100% - 149px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.104)) calc(100% - 141px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.028)) calc(100% - 133px), rgba(0,0,0,calc(var(--fr) + (1 - var(--fr)) * 0.000)) calc(100% - 125px), rgba(0,0,0,var(--fr)) 100%); }
}

/* the side fades now melt in / out when you reach the start or the end, instead of switching off in a frame:
   the two mask amounts are registered as animatable numbers */
@property --fl { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --fr { syntax: '<number>'; inherits: true; initial-value: 0; }
.cl-shelf { transition: --fl 0.7s cubic-bezier(.22, 1, .36, 1), --fr 0.7s cubic-bezier(.22, 1, .36, 1); }

/* ---------- phones: lighter and more practical ---------- */
@media (max-width: 767px) {
  /* the line under "Clyro" sits centred like everything else in the hero */
  .cl-sub { text-align: center; max-width: 310px; margin-left: auto; margin-right: auto; text-wrap: balance; }
  /* no arrows: on a phone you just swipe the shelf (the dots show where you are) */
  .cl-arrows { display: none !important; }
  .cl-more-head { display: block; }
  /* the shelf: one card at a time with a peek of the next, a light edge fade only where there's more, no blur */
  .cl-shelf { gap: 12px; scroll-padding: 0 16px; }
  .cl-card { width: 84vw; }
  .cl-shelf, .cl-shelf-wrap.at-start .cl-shelf, .cl-shelf-wrap.at-end .cl-shelf {
    -webkit-mask: none; mask: none;
  }
  /* no 3D tilt or glare on touch — just a gentle press */
  .cl-glare { display: none; }
  .cl-card-shot { transform: none !important; transition: scale 0.3s cubic-bezier(.22, 1, .36, 1); }
  .cl-card:active .cl-card-shot { scale: 0.98; }
  .cl-card:hover, .cl-card:hover:active { transform: none; }
}
/* phones: the sky starts at the very top of the screen (the page has 24px of room above the hero there) */
@media (max-width: 767px) { .cl-hero::before { top: -80px; } }
/* the key words in the story: the same Apple blue as the glyphs in the hero pills */
.cl-read .wd.is-key.is-on { color: #007AFF; }
/* the page's blue is now the Apple blue (#007AFF): every hover-lit letter, key word and accent uses it */
.cl-page { --cl: #007AFF; }

/* hero pills appear like the island opening: a small blurred drop that springs out sideways with a little
   squash-and-stretch (overshoot, then settles), and only then the icon and text come up out of a blur */
.cl-pill { animation: cl-pill-pop 1.1s cubic-bezier(.22, 1, .36, 1) 0.75s backwards; transform-origin: 50% 50%; }
.cl-pill:nth-child(2) { animation-delay: 0.87s; }
@keyframes cl-pill-pop {
  0%   { opacity: 0; scale: 0.42 0.7; filter: blur(10px); }
  30%  { opacity: 1; scale: 1.07 0.94; filter: blur(0); }
  52%  { scale: 0.975 1.025; }
  72%  { scale: 1.012 0.995; }
  88%  { scale: 0.998 1.002; }
  100% { opacity: 1; scale: 1 1; filter: blur(0); }
}
.cl-pill > .cl-pill-ic, .cl-pill > .cl-pill-tx { animation: cl-pill-content 0.7s cubic-bezier(.22, 1, .36, 1) 1.05s backwards; }
.cl-pill:nth-child(2) > .cl-pill-ic, .cl-pill:nth-child(2) > .cl-pill-tx { animation-delay: 1.17s; }
.cl-pill > .cl-pill-tx { animation-delay: 1.12s; }
.cl-pill:nth-child(2) > .cl-pill-tx { animation-delay: 1.24s; }
@keyframes cl-pill-content { from { opacity: 0; filter: blur(6px); scale: 0.9; } }
@media (prefers-reduced-motion: reduce) { .cl-pill, .cl-pill > * { animation: none; } }

/* pills pop v2: quick like the island's hover open (~0.55s), blurred from the very first frame and only
   sharpening as they spring out; icon + text ride the same timing (no second, later blur) */
.cl-pill { animation: cl-pill-pop2 0.6s cubic-bezier(.2, .9, .3, 1) 0.7s backwards; }
.cl-pill:nth-child(2) { animation-delay: 0.78s; }
@keyframes cl-pill-pop2 {
  0%   { opacity: 0; scale: 0.55 0.75; filter: blur(9px); }
  45%  { opacity: 1; scale: 1.05 0.965; filter: blur(0); }
  70%  { scale: 0.99 1.012; }
  100% { opacity: 1; scale: 1 1; filter: blur(0); }
}
.cl-pill > .cl-pill-ic, .cl-pill > .cl-pill-tx,
.cl-pill:nth-child(2) > .cl-pill-ic, .cl-pill:nth-child(2) > .cl-pill-tx { animation: none; }
/* pills pop: a stronger blur on the way in (16px, clearing a touch later) */
@keyframes cl-pill-pop2 {
  0%   { opacity: 0; scale: 0.55 0.75; filter: blur(16px); }
  30%  { opacity: 1; filter: blur(5px); }
  50%  { scale: 1.05 0.965; filter: blur(0); }
  72%  { scale: 0.99 1.012; }
  100% { opacity: 1; scale: 1 1; filter: blur(0); }
}

/* smooth pill entrance: while a pill pops in it's a plain tinted surface (no backdrop glass, which made every
   frame of the blur re-render the glass and stutter); its own blur then runs on the GPU. Once it has settled,
   the glass comes back (clyro.js drops .is-entering), on the same tint so the swap doesn't show */
.cl-pill.is-entering, .cl-pill.liquid-glass.is-entering {
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  background: rgba(28, 68, 96, 0.36);
  will-change: transform, filter, opacity;
}
.cl-pill.liquid-glass.is-entering::before { opacity: 0.6; }
.cl-pill { transition: background-color 0.35s ease; }
.cl-shelf.is-in .cl-card:nth-child(6) { animation-delay: 0.4s; }
.cl-shelf.is-in .cl-card:nth-child(7) { animation-delay: 0.48s; }
