@import './tokens.css';

/* ── Disable image dragging globally ── */
img {
  -webkit-user-drag: none;
  user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-select: none;
  pointer-events: auto;
  draggable: false;
}

/* ── Custom cursor — native cursor hidden, DOM shape takes over ── */
/* Only hide on wide screens with a fine pointer (mouse/trackpad) */
@media (pointer: fine) and (min-width: 769px) {
  *, *::before, *::after {
    cursor: none !important;
  }
}

/* ── Cursor shape (CursorShape.js) — morph driven by rAF in JS ── */
.cs-root {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 10001;
}

/* ── Cursor tooltip ── */
.cursor-tooltip {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  background: var(--color-primary);
  opacity: 0.9;
  border-radius: 8px;
  padding: 8px 16px;
  color: var(--color-text-on-primary);
  font-family: var(--font-family-primary);
  font-size: var(--tooltip-size);
  font-weight: var(--tooltip-weight);
  line-height: var(--tooltip-leading);
  white-space: pre-line;
  /* Fade in on first appearance */
  animation: tooltip-in 0.12s ease forwards;
}

@keyframes tooltip-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 0.85; transform: translateY(0); }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; }

/* ── Body / background ── */
body {
  min-height: 100vh;
  background: var(--color-bg-body);
  font-family: var(--font-family-primary);
  color: var(--color-text-primary);
  transition: background 0.5s ease, color 0.5s ease;
}

/* ── Global semibold → gradient ── */
strong, b {
  font-weight: var(--weight-semibold);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 500;
  width: 40px;
  height: 40px;
  border-radius: 100px;
  border: none;
  background: var(--color-surface-action-icon);
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 40px var(--color-shadow-action-icon);
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.5s ease;
  filter: var(--filter-action-icon);
}

.back-to-top--visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  transform: scale(1.08);
}

.back-to-top:active {
  transform: scale(0.95);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 20px 48px;
  transform: translateY(0);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav--hidden {
  transform: translateY(-110%);
}

.nav-logo {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.nav-pills {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--color-surface-nav-blur);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px;
  border-radius: 100px;
  transition: background 0.5s ease;
}

/* ── Hover ghost pill (iPad-like cursor replacement) ── */
.nav-pill-hover-ghost {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 100px;
  background: var(--color-surface-nav);
  opacity: 0;
  pointer-events: none;
  transition: left 0.25s cubic-bezier(0.25, 1, 0.5, 1),
              width 0.25s cubic-bezier(0.25, 1, 0.5, 1),
              opacity 0.18s ease;
  box-shadow: 0 0 12px var(--color-shadow-nav);
  /* Much fainter than the active indicator */
  filter: opacity(0.35);
}

/* Sliding pill indicator */
.nav-pill-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  border-radius: 100px;
  background: var(--color-surface-nav);
  box-shadow: 0 0 40px var(--color-shadow-nav);
  pointer-events: none;
  will-change: left, width, transform;
  transform-origin: center center;
  /* transition added only after initial placement */
}

.nav-pill-indicator--ready {
  transition: left 0.62s cubic-bezier(0.34, 1.56, 0.64, 1),
              width 0.62s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.48s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Liquid-glass: looser spring while stretching mid-flight */
.nav-pill-indicator--liquid {
  transition: left 0.72s cubic-bezier(0.22, 1, 0.36, 1),
              width 0.72s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-pill {
  position: relative; /* sit above the indicator */
  z-index: 1;
  padding: 8px 16px;
  border-radius: 100px;
  font-family: var(--font-family-primary);
  font-weight: 500;
  font-size: 16px;
  color: var(--color-text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

/* Hide cursor inside pill area — the ghost pill IS the cursor */
.nav-pills:hover {
  cursor: none;
}
.nav-pill {
  cursor: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Active text stays dark (indicator handles the background) */
.nav-pill.active {
  color: var(--color-text-primary);
}

/* Hover — teal text, no pill (ghost does the pill job) */
.nav-pill:not(.active):hover {
  color: var(--color-primary);
}


/* ── Lazy-mode toggle ── */
.lazy-toggle {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px 0 10px;
  border: none;
  border-radius: 100px;
  background: var(--color-surface-nav-blur);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-text-primary);
  cursor: none;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
  white-space: nowrap;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              padding 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              background 0.3s ease,
              transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lazy-toggle__icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.lazy-toggle__label {
  font-family: 'Syne', sans-serif;
  font-weight: 500;
  font-size: 13px;
  transition: opacity 0.15s ease;
}

.lazy-toggle:hover {
  background: var(--color-surface-nav);
  box-shadow: 0 0 20px var(--color-shadow-nav);
}

/* Press-down — matches bento-card :active feel */
.lazy-toggle:active {
  transform: scale(0.92);
}

/* Crossfade label during icon morph */
.lazy-toggle__label--fading {
  opacity: 0 !important;
  transition: opacity 0.08s ease !important;
}

/* ── Mobile-only page logo (above the grid) ── */
.mobile-page-logo {
  display: none; /* hidden on desktop */
}

/* ── Main layout ── */
.main {
  display: flex;
  justify-content: center;
  padding: 110px 24px 80px;
}

/* ── Bento grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 252px);
  grid-auto-rows: 252px;
  gap: 18px;
}

/* ══════════════════════════════════════
   BENTO CARD (reusable base)
══════════════════════════════════════ */
.bento-card {
  background: var(--color-surface-card);
  border-radius: 32px;
  border: 1px solid var(--color-border-card);
  box-shadow:
    0 1px 3px var(--color-shadow-card-rest),
    0 1px 2px var(--color-shadow-card-rest),
    inset 0 1px 0 var(--color-card-inset-top),
    inset 0 -1px 0 var(--color-card-inset-bottom);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: background 0.5s ease, box-shadow 0.3s ease, border-color 0.3s ease, transform 0.15s ease;
  /* Fix Chrome bug: overflow:hidden + border-radius distortion */
  isolation: isolate;
  /* Staggered enter animation — delay overridden per card below */
  animation: card-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: var(--card-enter-delay, 0s);
}

/* Grain texture layer — multiply on light, screen on dark */
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: var(--card-grain-opacity);
  mix-blend-mode: var(--card-grain-blend);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.5s ease;
}

.bento-card:hover {
  box-shadow:
    0 12px 40px var(--color-shadow-card-hover),
    0 4px 12px var(--color-shadow-card-hover-2),
    inset 0 1px 0 var(--color-card-inset-top),
    inset 0 -1px 0 var(--color-card-inset-bottom);
  transform: translateY(-3px);
}

.bento-card:active,
.bento-card--pressed {
  transform: scale(0.97);
  box-shadow:
    0 1px 3px var(--color-shadow-card-rest),
    0 1px 2px var(--color-shadow-card-rest),
    inset 0 1px 0 var(--color-card-inset-top),
    inset 0 -1px 0 var(--color-card-inset-bottom);
  transition: background 0.5s ease, box-shadow 0.08s ease, border-color 0.3s ease, transform 0.08s ease;
}

/* Dark-variant cards (plugin, alexa) — always dark regardless of theme */
.bento-card.dark {
  --color-card-inset-top:     rgba(255, 255, 255, 0.05);
  --color-card-inset-bottom:  rgba(0, 0, 0, 0.30);
  --card-grain-opacity:       0.05;
  --card-grain-blend:         screen;
  --color-card-ripple:        rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow:
    0 1px 3px var(--color-shadow-card-rest),
    0 1px 2px var(--color-shadow-card-rest),
    inset 0 1px 0 var(--color-card-inset-top),
    inset 0 -1px 0 var(--color-card-inset-bottom);
}

.bento-card.dark:hover {
  box-shadow:
    0 12px 40px var(--color-shadow-card-hover),
    0 4px 12px var(--color-shadow-card-hover-2),
    inset 0 1px 0 var(--color-card-inset-top),
    inset 0 -1px 0 var(--color-card-inset-bottom);
}

/* ── Action icon ── */
.action-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: var(--color-surface-action-icon);
  border-radius: 100px;
  box-shadow: 0 2px 40px var(--color-shadow-action-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.5s ease;
  z-index: 10;
}

/* Higher specificity so card-level img rules can't override it */
.bento-card .action-icon img,
.rayo-plugin-card .action-icon img,
.rayo-alexa-card .action-icon img,
.rayo-schedule-card .action-icon img {
  width: 16px !important;
  height: 16px !important;
  transform: none !important;
  filter: var(--filter-action-icon);
}

/* Lottie toggle inside the bulb-card action icon */
.bulb-card .action-icon .bulb-lottie {
  width: 22px;
  height: 22px;
  pointer-events: none;
}
.bulb-card .action-icon .bulb-lottie svg {
  display: block;
  filter: var(--filter-action-icon);
}

.bento-card:hover .action-icon {
  opacity: 1;
  transform: scale(1);
}

/* ══════════════════════════════════════
   CARD ENTER ANIMATION
══════════════════════════════════════ */
@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Stagger delays — reading order: left→right, top→bottom, 0.1s apart */
/* Row 1 */
.about-card-wrapper { --card-enter-delay: 0s; }    /* cols 1-2 */
.gmail-card         { --card-enter-delay: 0.1s; }  /* col 3    */
.linkedin-card      { --card-enter-delay: 0.2s; }  /* col 4    */
/* Row 2 */
.bulb-card          { --card-enter-delay: 0.3s; }  /* col 1    */
.duolingo-card      { --card-enter-delay: 0.4s; }  /* col 2    */
.plugin-card        { --card-enter-delay: 0.5s; }  /* cols 3-4 */
/* Row 3 */
.ds-card            { --card-enter-delay: 0.6s; }  /* cols 1-2 */
/* Row 4 */
.ds-quote-card       { --card-enter-delay: 0.7s; }  /* cols 3-4 */
/* Row 5 */
.ux-quote-card       { --card-enter-delay: 0.8s; }  /* cols 1-2 */
.alexa-card         { --card-enter-delay: 0.9s; }  /* cols 3-4 */
/* Row 6 */
.schedule-card      { --card-enter-delay: 1.0s; }  /* cols 1-2 */
/* Row 7 */
.ss-ds-card         { --card-enter-delay: 1.1s; }  /* cols 3-4 */
/* Row 8 */
.claw-invest-card   { --card-enter-delay: 1.3s; }  /* col 1    */
.strava-card        { --card-enter-delay: 1.4s; }  /* col 2    */

/* ══════════════════════════════════════
   GRID SLOT (wrapper div per card)
   Grid placement is now driven by inline
   styles from filterLayouts.js via App.js.
══════════════════════════════════════ */
.grid-slot {
  min-width: 0;
  min-height: 0;
  transition: opacity 0.4s ease;
}

/* Cards inside a slot fill the slot area */
.grid-slot > * {
  width: 100%;
  height: 100%;
}

/* De-prioritised cards at 30 % opacity */
.grid-slot--dim {
  opacity: 0.3;
  pointer-events: none;
}

/* ══════════════════════════════════════
   GRID PLACEMENT (legacy — kept for
   reference; overridden by inline styles
   on .grid-slot wrappers)
══════════════════════════════════════ */
/* .about-card-wrapper { grid-column: 1 / 3; grid-row: 1; }
.claw-invest-card { grid-column: 1;  grid-row: 8; }
.bulb-card     { grid-column: 1;     grid-row: 2; }
.gmail-card    { grid-column: 3;     grid-row: 1; }
.linkedin-card { grid-column: 4;     grid-row: 1; }
.plugin-card   { grid-column: 3 / 5; grid-row: 2 / 4; }
.ds-card       { grid-column: 1 / 3; grid-row: 3 / 5; }
.duolingo-card { grid-column: 2;     grid-row: 2; }
.strava-card   { grid-column: 2;     grid-row: 8; }
.ux-quote-card  { grid-column: 1 / 3; grid-row: 5; }
.alexa-card    { grid-column: 3 / 5; grid-row: 5 / 7; }
.schedule-card { grid-column: 1 / 3; grid-row: 6 / 8; }
.project-card-1 { grid-column: 3 / 5; grid-row: 7 / 9; }
.ds-quote-card  { grid-column: 3 / 5; grid-row: 4; } */

/* ══════════════════════════════════════
   CARD CONTENT STYLES
══════════════════════════════════════ */

/* ── About card (collapsed) ── */
.about-card-wrapper {
  position: relative;   /* grid placement set in GRID PLACEMENT section */
}

.about-card-wrapper > .about-card {
  width: 100%;
  height: 100%;
}

.about-card {
  display: flex;
  align-items: center;
  padding-right: 28px;
  cursor: pointer;
  transition: background 0.5s ease, box-shadow 0.25s ease, border-color 0.3s ease, transform 0.15s ease, opacity 0.25s ease;
}
.about-avatar { width: 215px; height: 215px; object-fit: cover; flex-shrink: 0; }
.about-bio { font-size: var(--about-bio-size); line-height: var(--about-bio-leading); padding-left: 4px; }

/* Keep grid slot occupied, hide card while expanded */
.about-card--ghost { opacity: 0; pointer-events: none; }

/* Once the card has been interacted with, kill the entrance animation
   so it doesn't replay when returning from ghost state.
   Also snap opacity instantly (no transition) to avoid a flicker
   when the expanded overlay is removed on the same frame. */
.about-card.about-card--was-open {
  animation: none;
  transition: background 0.5s ease, box-shadow 0.25s ease, border-color 0.3s ease, transform 0.15s ease;
}

/* ── Backdrop — sits behind expanded card ── */
.about-backdrop {
  position: fixed;
  inset: 0;
  background: var(--color-backdrop);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  animation: about-backdrop-in 0.3s ease forwards;
  touch-action: none;
}

@keyframes about-backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Backdrop fades out when closing */
.about-backdrop--out {
  animation: about-backdrop-out 0.45s ease forwards;
}

@keyframes about-backdrop-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ── Expanded card — FLIP animated, above backdrop ── */
.about-expanded-card {
  position: fixed;
  background: var(--color-surface-card);
  border-radius: 32px;
  border: 1px solid var(--color-border-card);
  box-shadow:
    0 2px 200px var(--color-shadow-card-expanded),
    inset 0 1px 0 var(--color-card-inset-top),
    inset 0 -1px 0 var(--color-card-inset-bottom);
  z-index: 300;
  overflow: hidden;
  isolation: isolate;
  transition: background 0.5s ease, border-color 0.3s ease;
}

/* Grain texture — matches collapsed .bento-card */
.about-expanded-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: var(--card-grain-opacity);
  mix-blend-mode: var(--card-grain-blend);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.5s ease;
}

/* Transition fires once JS adds --settled (open) or keeps it during --closing */
.about-expanded-card--settled {
  transition:
    left         0.7s cubic-bezier(0.34, 1.1, 0.64, 1),
    top          0.7s cubic-bezier(0.34, 1.1, 0.64, 1),
    width        0.7s cubic-bezier(0.34, 1.1, 0.64, 1),
    height       0.7s cubic-bezier(0.34, 1.1, 0.64, 1),
    background   0.5s ease,
    border-color 0.3s ease;
}

/* Scrollable inner wrapper */
.about-expanded-inner {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 40px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  scrollbar-width: thin;
  box-sizing: border-box;
}

/* Content fades in after growing, fades out instantly when closing */
.about-expanded-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.about-expanded-card--settled .about-expanded-content {
  transition: opacity 0.3s ease 0.38s;
  opacity: 1;
}

/* Snap content out immediately so only the card shape shrinks back */
.about-expanded-card--closing .about-expanded-content {
  opacity: 0;
  transition: opacity 0.1s ease;
}

.about-expanded-avatar {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Flying avatar — fixed, travels between collapsed and expanded positions */
.about-avatar-fly {
  position: fixed;
  object-fit: cover;
  z-index: 400;
  pointer-events: none;
}

.about-expanded-bio {
  font-size: var(--about-expanded-size);
  line-height: var(--about-expanded-leading);
  color: var(--color-text-body);
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.about-expanded-bio p { margin: 0; }

/* Bio hyperlinks — animated underline (slide L→R in, R→L out, multi-line safe) */
.bio-link {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0% 1.5px;
  padding-bottom: 2px;
  transition: background-size 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.bio-link:hover {
  background-size: 100% 1.5px;
}

/* ── Bio link preview (iOS-style peek) ── */
.bio-link-preview {
  position: fixed;
  z-index: 500;
  width: 320px;
  transform: scale(0.92);
  transform-origin: top left;
  opacity: 0;
  pointer-events: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.25),
    0 8px 20px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.06);
  background: var(--color-surface-card);
  transition:
    opacity 0.25s cubic-bezier(0.2, 0, 0, 1),
    transform 0.25s cubic-bezier(0.2, 0, 0, 1);
  transform-origin: bottom center;
}

.bio-link-preview--visible {
  opacity: 1;
  transform: scale(1);
}

.bio-link-preview-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
  background: var(--color-surface-card);
}

/* Shrink / close button */
.about-shrink-btn img {
  filter: var(--filter-action-icon);
}

.about-shrink-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: var(--color-surface-card-white);
  border: none;
  border-radius: 100px;
  box-shadow: 0 2px 40px var(--color-shadow-action-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
  flex-shrink: 0;
}

/* ── Case Study Overlay (shared fullscreen expand) ──────────── */

.cs-card-wrapper { position: relative; }
.cs-card-wrapper > .bento-card { width: 100%; height: 100%; }

/* Ghost — keep grid slot occupied while expanded */
.cs-card--ghost { opacity: 0; pointer-events: none; }
.cs-card--was-open { animation: none; }

/* ── Backdrop ── */
.cs-backdrop {
  position: fixed;
  inset: 0;
  background: var(--color-backdrop);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 200;
  animation: cs-backdrop-in 0.3s ease forwards;
  touch-action: none;
}

@keyframes cs-backdrop-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.cs-backdrop--out {
  animation: cs-backdrop-out 0.45s ease forwards;
}

@keyframes cs-backdrop-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* ── Expanded fullscreen card — FLIP animated ── */
.cs-expanded {
  position: fixed;
  background: var(--color-bg-body);
  border-radius: 32px;
  box-shadow: 0 2px 200px rgba(0, 0, 0, 0.01);
  z-index: 300;
  overflow: hidden;
  transition: background 0.5s ease;
}

.cs-expanded--settled {
  border-radius: 0;
  transition:
    left          0.7s cubic-bezier(0.34, 1.1, 0.64, 1),
    top           0.7s cubic-bezier(0.34, 1.1, 0.64, 1),
    width         0.7s cubic-bezier(0.34, 1.1, 0.64, 1),
    height        0.7s cubic-bezier(0.34, 1.1, 0.64, 1),
    border-radius 0.7s cubic-bezier(0.34, 1.1, 0.64, 1);
}

/* ── Header bar (logo left, close right) ── */
.cs-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 40px calc(6.25% + 74px);
  z-index: 2;
  pointer-events: none;
}

.cs-header-close {
  pointer-events: auto;
}

.cs-header-close {
  width: 40px;
  height: 40px;
  background: var(--color-surface-action-icon);
  border: none;
  border-radius: 100px;
  box-shadow: 0 2px 40px var(--color-shadow-action-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.5s ease;
}

.cs-header-close img {
  filter: var(--filter-action-icon);
}

/* ── Scrollable inner area ── */
.cs-expanded-inner {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  box-sizing: border-box;
}

/* Content fades in after expand, fades out instantly on close */
.cs-expanded-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
  padding-bottom: 80px;
}

.cs-expanded--settled .cs-expanded-content {
  transition: opacity 0.3s ease 0.38s;
  opacity: 1;
}

.cs-expanded--closing .cs-expanded-content {
  opacity: 0;
  transition: opacity 0.1s ease;
}

/* ── Hero video in expanded view ── */
.cs-hero-video {
  display: block;
  border-radius: 32px;
  object-fit: cover;
  flex-shrink: 0;
  margin-top: 40px;
  transition: opacity 0.2s ease;
}

/* ── Back-to-top inside expanded case study ── */
.cs-back-to-top {
  position: absolute;
  bottom: 32px;
  right: 32px;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 100px;
  border: none;
  background: var(--color-surface-action-icon);
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 40px var(--color-shadow-action-icon);
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.5s ease;
  filter: var(--filter-action-icon);
  cursor: pointer;
}

.cs-back-to-top--visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.cs-back-to-top:hover {
  transform: scale(1.08);
}

.cs-back-to-top:active {
  transform: scale(0.95);
}

/* ── Flying video — fixed, travels between card and hero positions ── */
.cs-video-fly {
  position: fixed;
  object-fit: cover;
  z-index: 400;
  pointer-events: none;
}

/* ── TL;DR toggle — liquid glass pill (matches main nav) ── */
.tldr-bar {
  position: sticky;
  top: 40px;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 24px 0 8px;
  padding: 4px;
  border-radius: 100px;
  background: var(--color-surface-nav-blur);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: fit-content;
  transition: background 0.5s ease;
}
.tldr-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 6px);
  border-radius: 100px;
  background: var(--color-surface-nav);
  box-shadow: 0 0 40px var(--color-shadow-nav);
  pointer-events: none;
  transition: transform 0.62s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tldr-pill {
  position: relative;
  z-index: 1;
  padding: 8px 24px;
  border-radius: 100px;
  border: none;
  background: transparent;
  font-family: var(--font-family-primary);
  font-size: var(--action-size);
  font-weight: var(--action-weight);
  color: var(--color-text-primary);
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
  text-align: center;
}
.tldr-pill:not(.tldr-pill--active):hover {
  color: var(--color-primary);
}

/* ── TL;DR collapsible content ── */
.tldr-collapsible {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows 0.55s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease;
}
.tldr-collapsible > * {
  overflow: hidden;
}
.tldr-collapsible--hidden {
  grid-template-rows: 0fr;
  opacity: 0;
}

/* ── Case study body sections ── */
.cs-body {
  max-width: 680px;
  width: 100%;
  padding: 0 24px;
  margin-top: 80px;
}

.cs-title {
  font-family: var(--font-family-primary);
  font-size: var(--cs-title-size);
  font-weight: var(--cs-title-weight);
  line-height: var(--cs-title-leading);
  color: var(--color-text-primary);
  margin: 0 0 24px;
  transition: color 0.5s ease;
}

.cs-section-title {
  font-family: var(--font-family-primary);
  font-size: var(--cs-section-size);
  font-weight: var(--cs-section-weight);
  line-height: var(--cs-section-leading);
  color: var(--color-text-primary);
  margin: 48px 0 8px;
  transition: color 0.5s ease;
}

.cs-subsection-title {
  font-family: var(--font-family-primary);
  font-size: var(--cs-subsection-size);
  font-weight: var(--cs-subsection-weight);
  line-height: var(--cs-subsection-leading);
  color: var(--color-text-primary);
  margin: 32px 0 0;
  transition: color 0.5s ease;
}

.cs-body-text {
  font-family: var(--font-family-primary);
  font-size: var(--cs-body-size);
  font-weight: var(--cs-body-weight);
  line-height: var(--cs-body-leading);
  color: var(--color-text-body);
  margin: 4px 0 24px 0;
  transition: color 0.5s ease;
}

.cs-body-list {
  padding-left: 24px;
  margin: -12px 0 24px 0;
  font-family: var(--font-family-primary);
  font-size: var(--cs-body-size);
  font-weight: var(--cs-body-weight);
  line-height: var(--cs-body-leading);
  color: var(--color-text-body);
  transition: color 0.5s ease;
}
.cs-body-list li {
  margin: 0 0 6px 0;
}
.cs-body-list .cs-body-text {
  margin: 0 0 6px 0;
}


.cs-link {
  color: var(--color-text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.cs-link:hover {
  opacity: 0.6;
}

/* Second cs-body block (Problem / Solution) — less top margin since it follows the antonym section */
.cs-body--continued {
  margin-top: 48px;
}

/* Demo video inside case study body */
.cs-demo-video {
  display: block;
  width: 680px;
  aspect-ratio: 3024 / 1822;
  border-radius: 20px;
  margin-top: 32px;
}

/* Before / After image toggle */
.ba-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  width: 80vw;
  max-width: 80vw;
}
.ba-img-clip {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
}
.ba-img {
  display: block;
  width: 100%;
}
.ba-img--abs {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
.ba-img--enter-from-right {
  animation: ba-enter-right 1.2s cubic-bezier(0.9, 0, 0.1, 1) forwards;
}
.ba-img--enter-from-left {
  animation: ba-enter-left 1.2s cubic-bezier(0.9, 0, 0.1, 1) forwards;
}
.ba-img--exit-to-left {
  animation: ba-exit-left 1.2s cubic-bezier(0.9, 0, 0.1, 1) forwards;
}
.ba-img--exit-to-right {
  animation: ba-exit-right 1.2s cubic-bezier(0.9, 0, 0.1, 1) forwards;
}
@keyframes ba-enter-right {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
@keyframes ba-enter-left {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}
@keyframes ba-exit-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
@keyframes ba-exit-right {
  from { transform: translateX(0); }
  to   { transform: translateX(100%); }
}
.ba-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}
.ba-label {
  font-family: var(--font-family-primary);
  font-size: var(--action-size);
  font-weight: var(--action-weight);
  color: var(--color-text-body);
  opacity: 0.4;
  transition: opacity 0.2s ease;
}
.ba-label--active {
  opacity: 1;
}
.ba-toggle .ba-label:last-child.ba-label--active {
  color: var(--color-primary);
}
.ba-track {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 100px;
  background: var(--color-text-body);
  opacity: 1;
  transition: background 0.25s ease;
}
.ba-track--on {
  background: var(--color-primary);
  opacity: 1;
}
.ba-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-panel-bg);
  transition: transform 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.ba-track--on .ba-thumb {
  transform: translateX(18px);
}

/* Cover image inside case study body */
.cs-cover-img {
  display: block;
  width: 680px;
  border-radius: 20px;
  margin-top: 32px;
}

.cs-cover-img--full {
  width: calc(100% - 48px);
  max-width: 100%;
  padding: 0 24px;
  box-sizing: content-box;
}

/* ── Zoomable image viewer ──────────────────────────────────── */

.cs-zoom-viewer {
  position: relative;
  width: 680px;
  height: 448px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--color-surface-card);
}

.cs-zoom-scroll {
  width: 100%;
  height: 100%;
  overflow: auto;
  scrollbar-width: none;            /* Firefox */
  -ms-overflow-style: none;         /* IE/Edge */
}

.cs-zoom-scroll::-webkit-scrollbar {
  display: none;                    /* Chrome/Safari */
}

.cs-zoom-img {
  display: block;
  height: auto;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.10));
  transition: width 0.3s ease, margin 0.3s ease;
}

.cs-zoom-controls {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.cs-zoom-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--color-surface-nav-blur);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--color-text-primary);
  font-size: var(--text-3xl);
  font-weight: var(--weight-semibold);
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cs-zoom-btn:hover {
  background: var(--color-surface-card);
  transform: scale(1.06);
}

.cs-zoom-btn:active {
  transform: scale(0.95);
}

.cs-zoom-btn--disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

/* ── Miro-style board viewer ────────────────────────────────── */

.cs-miro-viewer {
  position: relative;
  width: 680px;
  height: 448px;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(to right,  rgba(0,0,0,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: var(--color-miro-bg);
}

[data-theme="dark"] .cs-miro-viewer {
  background:
    linear-gradient(to right,  rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: var(--color-miro-bg);
}

.cs-miro-scroll {
  width: 100%;
  height: 100%;
  overflow: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cs-miro-scroll::-webkit-scrollbar {
  display: none;
}

.cs-miro-wrapper {
  display: inline-block;
}

.cs-miro-canvas {
  position: relative;
  width: 2340px;
  height: 2290px;
  transform-origin: 0 0;
}

.cs-miro-board {
  display: block;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

/* ── Prototype phone containers ─────────────────────────────── */

.cs-proto-row {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.cs-proto-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cs-proto-col .cs-hint {
  margin-top: 8px;
}

.cs-proto-phone {
  position: relative;
  width: 200px;
  height: 433px;               /* 812 * (200/375) ≈ 433 */
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-proto-bezel);
  border: 3px solid var(--color-proto-bezel);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.30);
}

/* Header — fixed at top, fades in on scroll */
.cs-proto-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.cs-proto-header--visible {
  opacity: 1;
}

/* Bottom nav — fixed at bottom */
.cs-proto-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

.cs-proto-scroll {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background: var(--color-proto-screen);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cs-proto-scroll::-webkit-scrollbar {
  display: none;
}

.cs-proto-img {
  display: block;
  width: 100%;
  height: auto;
  /* Leave space for the fixed bottom nav (94px at 375w → scales with width) */
  padding-bottom: 25%;
}

/* ── Colour Variables widget (Rayo DS case study) ──────────── */

.cv-outer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 32px;
}
.cv-wrap {
  position: relative;
  width: 680px;
  max-width: calc(100vw - 48px);
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-widget-bg);
  color: var(--color-widget-text);
  font-family: var(--font-family-system);
  font-size: 12px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  user-select: none;
}

/* Top bar */
.cv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--color-widget-surface-raised);
  border-bottom: 1px solid var(--color-widget-border);
  flex-shrink: 0;
  gap: 8px;
}
.cv-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cv-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
.cv-tab {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  color: var(--color-widget-text-muted);
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.cv-tab:hover { color: var(--color-widget-text); }
.cv-tab--on { color: var(--color-widget-text); border-bottom-color: var(--color-widget-accent); }

.cv-search {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--color-widget-surface);
  border: 1px solid var(--color-widget-border);
  border-radius: 5px;
  padding: 3px 8px;
  flex-shrink: 0;
}
.cv-search svg { opacity: .5; flex-shrink: 0; }
.cv-search input {
  background: none;
  border: none;
  color: var(--color-widget-text);
  font-size: 11px;
  width: 90px;
  outline: none;
}
.cv-search input::placeholder { color: var(--color-widget-text-subtle); }

/* Body — sidebar + table */
.cv-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

/* Sidebar */
.cv-side {
  width: 160px;
  flex-shrink: 0;
  background: var(--color-widget-surface);
  border-right: 1px solid var(--color-widget-border);
  overflow-y: auto;
  padding: 6px 0;
}
.cv-side-label {
  padding: 4px 10px 2px;
  font-size: 9px;
  font-weight: 700;
  color: var(--color-widget-text-subtle);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.cv-side-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 10px;
  cursor: pointer;
  font-size: 11px;
  transition: background .1s;
}
.cv-side-item:hover { background: var(--color-widget-surface-hover); }
.cv-side-item--on { background: var(--color-widget-surface-active); color: var(--color-widget-text-active); }
.cv-side-item--i1 { padding-left: 22px; }
.cv-side-count { font-size: 10px; color: var(--color-widget-text-subtle); }
.cv-side-item--on .cv-side-count { color: var(--color-widget-text-active-muted); }

/* Table */
.cv-table {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.cv-thead {
  display: flex;
  padding: 6px 12px;
  background: var(--color-widget-surface-raised);
  border-bottom: 1px solid var(--color-widget-border);
  flex-shrink: 0;
}
.cv-col-name { width: 150px; flex-shrink: 0; font-weight: 600; color: var(--color-widget-text-muted); font-size: 10px; }
.cv-col-val  { flex: 1; min-width: 0; font-weight: 600; color: var(--color-widget-text-muted); font-size: 10px; }

.cv-rows {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Group heading */
.cv-gh {
  padding: 10px 12px 4px;
  font-size: 11px;
  font-weight: 700;
  border-bottom: 1px solid var(--color-widget-border);
}
.cv-gh-path { color: var(--color-widget-text-subtle); font-weight: 400; }

/* Variable row */
.cv-row {
  display: flex;
  align-items: center;
  padding: 5px 12px;
  border-bottom: 1px solid var(--color-widget-border);
  transition: background .08s;
}
.cv-row:hover { background: var(--color-widget-surface-hover); }
.cv-row-name { font-size: 11px; }
.cv-col-val {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
}

/* Swatch */
.cv-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid var(--color-widget-swatch-border);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: repeating-conic-gradient(var(--color-widget-checkerboard-dark) 0% 25%, var(--color-widget-checkerboard-light) 0% 50%) 0 0 / 6px 6px;
}
.cv-swatch-fill {
  position: absolute;
  inset: 0;
  border-radius: 2px;
}

/* Alias pill */
.cv-alias {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--color-widget-alias-bg);
  border: 1px solid var(--color-widget-alias-border);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 10px;
  color: var(--color-widget-text-muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cv-alias .cv-swatch { width: 12px; height: 12px; }

/* Number badge */
.cv-num {
  background: var(--color-widget-alias-bg);
  border-radius: 3px;
  padding: 1px 7px;
  font-size: 11px;
  font-family: 'SF Mono','Fira Code','Consolas', monospace;
}
.cv-muted { color: var(--color-widget-text-subtle); }

/* Empty state */
.cv-empty {
  padding: 32px 16px;
  text-align: center;
  color: var(--color-widget-text-subtle);
  font-size: 12px;
}

/* Scrollbar */
.cv-wrap ::-webkit-scrollbar { width: 4px; height: 4px; }
.cv-wrap ::-webkit-scrollbar-track { background: transparent; }
.cv-wrap ::-webkit-scrollbar-thumb { background: var(--color-widget-scrollbar); border-radius: 2px; }

/* Responsive */
@media (max-width: 768px) {
  .cv-side { width: 120px; }
  .cv-col-name { width: 100px; }
  .cv-alias { font-size: 9px; }
  .cv-search input { width: 60px; }
}
@media (max-width: 480px) {
  .cv-side { display: none; }
  .cv-topbar { flex-wrap: wrap; }
}

/* ── Collection Card widget (Rayo DS case study) ───────────── */

.cs-hint:has(.cc-interactive-tag) {
  display: flex;
  align-items: center;
}
.cs-hint--centered {
  justify-content: center;
  margin-top: 6px;
  margin-bottom: 20px;
}
.cc-interactive-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--gradient-brand);
  color: var(--color-text-on-primary);
  letter-spacing: var(--tracking-wide);
  flex-shrink: 0;
}
.cc-outer .card-ripple { display: none; }
.cc-outer, .cc-outer * { cursor: default; }
.cc-outer select { cursor: pointer; }
.cc-outer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 32px;
}
.cc-layout {
  display: flex;
  width: 680px;
  max-width: calc(100vw - 48px);
  background: var(--color-panel-bg);
  border-radius: 12px;
  border: 1px solid var(--color-panel-border);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* ── Canvas (left) ── */
.cc-canvas {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: var(--color-panel-surface);
  min-height: 420px;
  overflow: hidden;
}
.cc-scaler {
  transition: transform .4s cubic-bezier(.4,0,.2,1),
              width .4s cubic-bezier(.4,0,.2,1),
              height .4s cubic-bezier(.4,0,.2,1);
  transform-origin: center center;
}

/* ── Panel (right) ── */
.cc-panel {
  width: 220px;
  flex-shrink: 0;
  border-left: 1px solid var(--color-panel-border-subtle);
  background: var(--color-panel-bg);
  overflow-y: auto;
}
.cc-panel-header {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-panel-border-subtle);
}
.cc-panel-header h2 {
  font-family: var(--font-family-system);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-panel-text);
}
.cc-variant-tag {
  font-size: 10px;
  font-weight: 400;
  color: var(--color-panel-text-subtle);
}
.cc-panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  border-bottom: 1px solid var(--color-panel-border-subtle);
}
.cc-panel-row label {
  font-family: var(--font-family-system);
  font-size: 11px;
  color: var(--color-panel-text-muted);
  flex-shrink: 0;
}
.cc-panel-section {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px 6px;
  border-bottom: 1px solid var(--color-panel-border-subtle);
}
.cc-section-caret {
  width: 5px; height: 5px;
  border-right: 1.5px solid var(--color-panel-caret);
  border-bottom: 1.5px solid var(--color-panel-caret);
  transform: rotate(45deg);
  margin-top: -2px;
}
.cc-panel-section span {
  font-family: var(--font-family-system);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-panel-text-dark);
}
.cc-figma-select {
  position: relative;
  min-width: 90px;
}
.cc-figma-select select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--color-panel-bg);
  border: 1px solid var(--color-panel-border);
  border-radius: 5px;
  color: var(--color-panel-text-dark);
  font-size: 11px;
  font-family: var(--font-family-system);
  padding: 4px 24px 4px 8px;
  width: 100%;
  cursor: pointer;
  outline: none;
  transition: border-color .15s;
}
.cc-figma-select select:hover { border-color: var(--color-panel-border); }
.cc-figma-select select:focus { border-color: var(--color-panel-focus); }
.cc-figma-select::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid var(--color-panel-caret);
  pointer-events: none;
}

/* ── Collection Card itself ── */
.cc-card {
  position: relative;
  overflow: hidden;
  transition: width .4s cubic-bezier(.4,0,.2,1);
}
.cc-size-small  { width: 375px; height: 375px; }
.cc-size-medium { width: 834px; height: 375px; }

.cc-card-bg {
  position: absolute;
  width: 834px;
  height: 448px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.cc-fallback-bg {
  position: absolute;
  width: 834px;
  height: 448px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  background: var(--color-brand-rayo-fallback-bg);
}
.cc-fallback-bg img {
  position: absolute;
  width: 2796px; height: 1954px;
  left: -1565px; top: -667px;
  max-width: none;
}
.cc-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.cc-card-heading {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 24px 24px 0;
  height: 104px;
}
.cc-size-medium .cc-card-heading { padding: 24px 80px 0; }

.cc-card-title {
  flex: 1;
  font-family: var(--font-family-rayo);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.36px;
  color: var(--color-brand-rayo-text);
}
.cc-icon-button {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-brand-rayo-text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cc-arrow-svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: var(--color-text-on-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cc-episode-carousel {
  margin-top: auto;
  display: flex;
  gap: 12px;
  padding: 0 24px 24px;
  overflow: hidden;
}
.cc-size-medium .cc-episode-carousel { padding: 0 80px 24px; }
.cc-content-rail {
  position: absolute;
  bottom: 24px;
  left: 24px;
  display: block;
  height: 104px;
  width: auto;
  max-width: none;
}

.cc-episode-card {
  flex-shrink: 0;
  width: 286px;
  background: var(--color-panel-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 8px 12px 8px 8px;
  gap: 12px;
}
.cc-episode-thumb {
  width: 88px; height: 88px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.cc-episode-thumb img {
  position: absolute;
  max-width: none;
}
.cc-thumb-tl { width: 53%; height: 49.37%; left: 50.05%; top: -0.02%; }
.cc-thumb-tr { width: 58.55%; height: 56.08%; left: 49.16%; top: 49.29%; }
.cc-thumb-bl { width: 57.17%; height: 53.54%; left: -6.62%; top: 49.09%; }
.cc-thumb-br { width: 53.78%; height: 53.78%; left: -3.23%; top: -4.67%; }

.cc-episode-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: stretch;
}
.cc-episode-name {
  font-family: var(--font-family-manrope);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-brand-rayo-text);
  max-height: 44px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-episode-footer {
  display: flex;
  align-items: center;
  height: 24px;
}
.cc-episode-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cc-station-disc {
  width: 20px; height: 20px;
  border-radius: 300px;
  overflow: hidden;
  flex-shrink: 0;
}
.cc-station-disc img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.cc-meta-labels {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cc-meta-label {
  font-family: var(--font-family-manrope);
  font-size: 12px;
  font-weight: 600;
  line-height: 12px;
  color: var(--color-brand-rayo-text-muted);
  white-space: nowrap;
}
.cc-meta-dot {
  width: 2px; height: 2px;
  border-radius: 360px;
  background: var(--color-brand-rayo-text-muted);
  flex-shrink: 0;
}

/* ── Version history section ─────────────────────────────────── */

.cs-versions-section {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-shrink: 0;
  margin-top: 48px;
}

.cs-version-wrap {
  flex: 1 1 0;
  opacity: 0;
  transform: translateX(-32px);
  text-align: center;
}

.cs-version-wrap .cs-version-img {
  border-radius: 4px;
}

.cs-version-wrap--visible {
  animation: cs-version-in 0.5s cubic-bezier(0.34, 1.1, 0.64, 1) calc(var(--i) * 0.08s) both;
}

.cs-version-img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

@keyframes cs-version-in {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Error guidance section ──────────────────────────────────── */

.cs-error-section {
  width: 680px;
  background: var(--color-surface-card-white);
  border-radius: 32px;
  padding: 90px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
  margin-top: 48px;
  transition: background 0.5s ease;
}

/* Slide-up container */
.cs-error-bar {
  position: relative;
  height: 48px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cs-error-img {
  position: absolute;
  max-width: 100%;
  height: auto;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.cs-error-img--active {
  animation: cs-error-enter 0.4s cubic-bezier(0.34, 1.1, 0.64, 1) forwards;
}

.cs-error-img--leaving {
  animation: cs-error-leave 0.35s ease forwards;
}

@keyframes cs-error-enter {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes cs-error-leave {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-20px); }
}

.cs-figma-bar {
  display: block;
  max-width: 100%;
  height: auto;
  pointer-events: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ── Marquee background — radio station tiles ──────────────── */

.cs-marquee-section {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);   /* break out of centred content to full viewport */
  margin-top: 64px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px 0;
}

.cs-marquee-track {
  display: flex;
  gap: 6px;
  width: max-content;
  animation: cs-marquee-left 40s linear infinite;
}

.cs-marquee-track--right {
  animation-name: cs-marquee-right;
}

.cs-marquee-set {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.cs-marquee-img {
  height: 160px;
  width: auto;
  border-radius: 12px;
  display: block;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.25s ease;
  cursor: default;
}

.cs-marquee-img:hover {
  opacity: 1;
}

/* Centred hero image overlaid on the marquee */
.cs-marquee-hero {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 80%;
  width: auto;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  z-index: 2;
  pointer-events: none;
}

@keyframes cs-marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes cs-marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* ── Case Study Image Scroll Reveal ───────────────────────── */

.cs-expanded-content .cs-cover-img,
.cs-expanded-content .cs-demo-video,
.cs-expanded-content .cs-account-link-steps,
.cs-expanded-content .ba-wrap {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.cs-expanded-content .cs-cover-img.cs-img-visible,
.cs-expanded-content .cs-demo-video.cs-img-visible,
.cs-expanded-content .cs-account-link-steps.cs-img-visible,
.cs-expanded-content .ba-wrap.cs-img-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Disable scroll-reveal on zoomable/miro viewers — they manage their own opacity/transform */
.cs-expanded-content .cs-zoom-viewer.cs-cover-img,
.cs-expanded-content .cs-miro-viewer.cs-cover-img,
.cs-expanded-content .cs-proto-row.cs-cover-img {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ── Alexa Review Cards ─────────────────────────────────────── */

.cs-review-marquee {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: 48px;
  overflow: hidden;
  padding: 24px 0;
}

.cs-review-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: cs-marquee-left 35s linear infinite;
}

.cs-review-marquee:hover .cs-review-track {
  animation-play-state: paused;
}

.cs-review-set {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

.cs-review-card {
  width: 320px;
  min-height: 180px;
  flex-shrink: 0;
  background: var(--color-surface-card-white);
  border: 1px solid var(--color-border-card);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.5s ease, border-color 0.5s ease;
}

.cs-review-stars {
  display: flex;
  gap: 2px;
  font-size: var(--stars-size);
  color: var(--color-brand-alexa-star);
  letter-spacing: 1px;
}

.cs-review-title {
  font-family: var(--font-family-primary);
  font-size: var(--review-title-size);
  font-weight: var(--review-title-weight);
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.3;
  transition: color 0.5s ease;
}

.cs-review-body {
  font-family: var(--font-family-primary);
  font-size: var(--review-body-size);
  font-weight: var(--review-body-weight);
  color: var(--color-text-body);
  margin: 0;
  line-height: var(--review-body-leading);
  transition: color 0.5s ease;
}

/* ── Alexa Account Link Steps ──────────────────────────────── */

.cs-account-link-steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  margin-top: 32px;
  max-width: 680px;
  width: 100%;
}

.cs-account-link-img {
  width: calc((100% - 48px) / 3);
  border-radius: 16px;
  display: block;
  flex-shrink: 0;
}

.cs-account-link-img--1 {
  margin-top: 0;
}

.cs-account-link-img--2 {
  margin-top: 40px;
}

.cs-account-link-img--3 {
  margin-top: 80px;
}

@media (max-width: 768px) {
  .cs-account-link-steps {
    gap: 12px;
    max-width: calc(100vw - 48px);
  }

  .cs-account-link-img {
    border-radius: 10px;
  }

  .cs-account-link-img--1 {
    margin-top: 0;
  }

  .cs-account-link-img--3 {
    margin-top: 64px;
  }
}

/* ── Antonym Section ─────────────────────────────────────────── */

.cs-hint {
  font-family: var(--font-family-primary);
  font-size: var(--hint-size);
  font-weight: var(--hint-weight);
  color: var(--color-text-subtle);
  margin-top: 12px;
  transition: color 0.5s ease;
}

.cs-antonym-section {
  position: relative;
  /* width & height set by JS inline style for responsive scaling */
  background: var(--color-surface-card-white);
  border-radius: 32px;
  flex-shrink: 0;
  margin-top: 48px;
  transition: background 0.5s ease;
}

/* ── Mobile antonym layout: cards left, screenshot right ── */
.cs-antonym-section--mobile {
  display: flex;
  align-items: center;
  padding: 24px;
  gap: 20px;
  height: auto !important;
}

.cs-antonym-mobile-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 50%;
  min-width: 0;
}

.cs-antonym-section--mobile .cs-antonym-card {
  box-shadow: none;
}

.cs-antonym-mobile-screenshot {
  flex: 1 1 50%;
  min-width: 0;
  border-radius: 7px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.cs-antonym-mobile-screenshot .cs-antonym-screenshot {
  position: static;
  width: 100%;
  height: auto;
  display: block;
}

/* Centre screenshot */
/* Clips the sliding screenshots */
.cs-antonym-screenshot-wrap {
  position: absolute;
  /* left, top, width, height set by JS inline style for responsive scaling */
  border-radius: 20px;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Invisible hover zones layered over the screenshot */
.cs-antonym-zone {
  z-index: 2;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.cs-antonym-zone:hover,
.cs-antonym-zone--active {
  background: rgba(0, 0, 0, 0.06);
}

.cs-antonym-screenshot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(0);
}

/* Podcast screenshot sits off to the right by default */
.cs-antonym-screenshot--podcast {
  transform: translateX(100%);
}

/* When content-type is hovered: default exits left, podcast enters from right */
.cs-antonym-screenshot--exit {
  transform: translateX(-100%);
}

.cs-antonym-screenshot--podcast.cs-antonym-screenshot--active {
  transform: translateX(0);
}

/* Wrapper for each card + its hover image */
.cs-antonym-card-wrapper {
  position: absolute;
  /* width set by JS inline style for responsive scaling */
}

/* The annotation card itself */
.cs-antonym-card {
  background: var(--color-surface-card);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: opacity 0.2s ease, background 0.5s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.cs-antonym-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text-primary);
  white-space: nowrap;
  margin: 0;
  transition: color 0.5s ease;
}

.cs-antonym-card-desc {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-text-body);
  margin: 0;
  transition: color 0.5s ease;
}

/* Hover image — fades in just below its card */
.cs-antonym-hover-img {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  object-fit: contain;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 10;
}

.cs-antonym-hover-img--visible {
  opacity: 1;
}

/* ── Sun / Moon Theme Toggle Card ─────────────────────────── */
.bulb-card {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  transition: background 0.5s ease, box-shadow 0.25s ease;
}


/* Icon wrapper — sun and moon are stacked inside */
.icon-wrap {
  position: relative;
  width: 90px;
  height: 90px;
  z-index: 1;
  overflow: visible;
}

/* ── Sun ── */
.sun {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transform: rotate(0deg) scale(1);
  transition:
    opacity    0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform  0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.sun.hidden {
  opacity: 0;
  transform: rotate(90deg) scale(0.4);
}


.sun-circle {
  position: absolute;
  width: 49px;
  height: 49px;
  background: var(--gradient-sun);
  border-radius: 50%;
  box-shadow: 0 0 18px var(--color-sun-glow);
  animation: sun-breathe 2.8s ease-in-out infinite;
  z-index: 2;
}

@keyframes sun-breathe {
  0%, 100% { box-shadow: 0 0 14px rgba(245, 166, 35, 0.45); }
  50%       { box-shadow: 0 0 36px rgba(245, 166, 35, 0.90), 0 0 64px rgba(255, 190, 40, 0.28); }
}

/*
 * B-style sharp burst rays:
 * .ray-arm  — zero-size anchor at icon centre, rotated per ray
 * .ray-bar  — sits at centre (bottom: 0), shoots outward via scaleY, fades as it travels
 */
.ray-arm {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  z-index: 1;
}

.ray-bar {
  position: absolute;
  width: 3px; height: 110px;
  bottom: 0; margin-left: -1.5px;
  transform-origin: bottom center;
  transform: scaleY(0);
  opacity: 0;
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(to top,
    rgba(245, 158, 11, 1)   0%,
    rgba(245, 158, 11, 0)   100%);
  animation: shoot-b 1.6s cubic-bezier(0.25, 0, 0.6, 1) infinite;
}

@keyframes shoot-b {
  0%   { transform: scaleY(0);    opacity: 0;    }
  5%   { transform: scaleY(0.05); opacity: 0.95; }
  100% { transform: scaleY(1);    opacity: 0;    }
}

/* Pause all sun animations when hidden (dark mode) */
.sun.hidden .ray-bar,
.sun.hidden .sun-circle { animation-play-state: paused; }

/* ── Moon ── */
.moon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: rotate(-90deg) scale(0.4);
  transition:
    opacity    0.35s cubic-bezier(0.4, 0, 0.2, 1) 0.05s,
    transform  0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s;
}
.moon.visible {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Crescent shape — full circle with a punched-out circle on top-right */
.moon-shape {
  position: relative;
  width: 50px;
  height: 50px;
}
.moon-shape::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--gradient-moon);
  box-shadow: 0 0 18px var(--color-moon-glow);
}
/* The punch-out circle uses the card's own background colour to carve the crescent */
.moon-shape::after {
  content: '';
  position: absolute;
  width: 35px;
  height: 35px;
  top: -7px;
  left: 18px;
  border-radius: 50%;
  background: var(--color-surface-card);
  transition: background 0.5s ease;
}

/* Twinkling stars beside the moon */
.moon-stars {
  position: absolute;
  inset: 0;
}
.mstar {
  position: absolute;
  border-radius: 50%;
  background: var(--color-moon-star);
  animation: twinkle 1.8s ease-in-out infinite;
}
.mstar:nth-child(1) { width: 7px; height: 7px; top:  5px; right:  2px; animation-delay: 0.0s; }
.mstar:nth-child(2) { width: 5px; height: 5px; top: 26px; right: -8px; animation-delay: 0.6s; }
.mstar:nth-child(3) { width: 5px; height: 5px; top:  0px; right: 15px; animation-delay: 1.1s; }

@keyframes twinkle {
  0%, 100% { opacity: 1;   transform: scale(1);   }
  50%       { opacity: 0.2; transform: scale(0.4); }
}

/* ── Click ripple (all cards) ── */
.card-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: card-ripple 0.52s linear forwards;
  background: var(--color-card-ripple);
  pointer-events: none;
  z-index: 10;
}
@keyframes card-ripple {
  to { transform: scale(20); opacity: 0; }
}

/* Gmail / LinkedIn */
.gmail-card, .linkedin-card { display: flex; align-items: center; justify-content: center; }

/* ── LinkedIn animated icon ── */
.li-svg {
  overflow: visible;
  display: block;
}

.li-dot {
  fill: var(--color-brand-linkedin);
  transform-origin: 11px 10px;
  transform: scale(0);
  opacity: 0;
  animation: li-pop-in 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.li-path {
  fill: none;
  stroke: var(--color-brand-linkedin);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.2;
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  animation: li-draw var(--draw-dur, 0.5s) cubic-bezier(0.4, 0, 0.2, 1) var(--draw-delay, 0s) forwards;
}

@keyframes li-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes li-pop-in {
  to { transform: scale(1); opacity: 1; }
}

/* ── Gmail copy animation ── */

/* 1. Container transitions: grows + flips bg after the icon fades (delay 0.1s) */
.gmail-card .action-icon {
  overflow: hidden;
  transition:
    width            0.28s cubic-bezier(0.34, 1.4, 0.64, 1) 0.1s,
    background-color 0.22s ease                              0.1s,
    padding          0.28s ease                              0.1s;
}

.gmail-card .action-icon.gmail-copied-label {
  opacity: 1 !important;
  transform: scale(1) !important;
  width: 86px;
  padding: 0 14px;
  background: var(--color-text-primary);
}

/* 2. Copy icon fades out immediately on click */
.gm-copy-icon {
  flex-shrink: 0;
  transition: opacity 0.12s ease;
}

.gm-copy-icon--out {
  opacity: 0 !important;
}

/* 3. "Copied" text fades in once the pill has grown (delay 0.3s) */
.gm-copied-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 3px;
  opacity: 0;
  font-size: var(--text-md);
  font-weight: var(--weight-semibold);
  color: var(--color-surface-card);
  white-space: nowrap;
  letter-spacing: var(--tracking-tight);
  pointer-events: none;
  transition: opacity 0.15s ease 0s;
}

.gm-copied-text--in {
  opacity: 1;
  transition: opacity 0.4s ease 0.3s;
}

.gm-check-lottie {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.gm-check-lottie svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: var(--filter-checkmark);
}

/* ── Gmail animated icon ── */
.gm-svg {
  overflow: hidden;
  display: block;
}

.gm-from-top   { transform: translateY(-50px); opacity: 0; }
.gm-from-left  { transform: translateX(-70px); opacity: 0; }
.gm-from-right { transform: translateX(70px);  opacity: 0; }

.gm-from-top,
.gm-from-left,
.gm-from-right {
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.34, 1.15, 0.64, 1);
  animation-delay: 0s;
  animation-fill-mode: both;
}

.gm-from-top   { animation-name: gm-in-top; }
.gm-from-left  { animation-name: gm-in-left; }
.gm-from-right { animation-name: gm-in-right; }

@keyframes gm-in-top {
  from { transform: translateY(-50px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
@keyframes gm-in-left {
  from { transform: translateX(-70px); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}
@keyframes gm-in-right {
  from { transform: translateX(70px);  opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}


/* Project cards (dark) */
.plugin-card, .alexa-card, .schedule-card {
  background: var(--color-surface-card-dark);
  border-radius: 32px;
  border: none;
}
.alexa-card, .schedule-card { background: var(--color-surface-card-dark); }

/* Alexa card video background */
.alexa-card {
  padding: 0 !important;
  overflow: hidden;
}

.alexa-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.alexa-card .action-icon {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.20);
}

/* Plugin card video background */
.plugin-card {
  padding: 0 !important;
  overflow: hidden;
}

.plugin-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.05);
  transform-origin: center;
}

.plugin-card .action-icon {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.20);
}

/* Project card — purple background override */
.bento-card.dark.project-card-1 {
  background: var(--color-brand-project-purple);
  border-color: rgba(255, 255, 255, 0.12);
}

.bento-card.dark.project-card-1:hover {
  background: var(--color-brand-project-purple-hover);
  border-color: rgba(255, 255, 255, 0.18);
}

/* Full-card fill image */
.project-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* ── Infinite logo banner ── */
.pc1-banner {
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  overflow: hidden;
  z-index: 0;
  /* Fade out edges for a polished look */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image:         linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  /* Safari fix: isolate the mask into its own compositing layer so it
     doesn't get dropped when the animated child triggers a layer change */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.pc1-track {
  display: flex;
  /* Safari fix: promote to GPU layer before animation starts so the
     translateX range is calculated correctly from the first frame */
  will-change: transform;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  animation: pc1-scroll 40s linear infinite;
  -webkit-animation: pc1-scroll 40s linear infinite;
}

.pc1-track img {
  /* Explicit pixel dimensions derived from natural size (1624×40) at
     display height 32px: width = 1624 × (32/40) = 1299px.
     Safari fix: without explicit width, the browser doesn't know the
     track's total width before images load, so translateX(-50%) is
     calculated from ~0px and the marquee barely moves on cold load. */
  height: 32px;
  width: 1299px;
  flex-shrink: 0;
  padding-right: 64px;
}

@-webkit-keyframes pc1-scroll {
  from { -webkit-transform: translateX(0); }
  to   { -webkit-transform: translateX(-50%); }
}

@keyframes pc1-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.project-label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  font-weight: var(--project-label-weight);
  font-size: var(--project-label-size);
  letter-spacing: var(--project-label-tracking);
  text-transform: uppercase;
  color: var(--color-text-muted-dark);
}

/* Simplestream DS card — image-based case study */
.ss-ds-card {
  padding: 0 !important;
  overflow: hidden;
}

.ss-ds-card .action-icon {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.20);
}

.ss-ds-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hero wrap — purple bg + rounded corners to match homepage card */
.ss-ds-hero-wrap {
  border-radius: 32px;
  overflow: hidden;
  margin-top: 40px;
}

.ss-ds-hero-wrap .cs-hero-video {
  margin-top: 0;
}

/* Hero overlay — logo rail on top of the expanded hero image */
.ss-ds-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  padding-top: 40px;
  overflow: hidden;
  pointer-events: none;
}

.pc1-banner--expanded {
  position: relative;
  top: auto;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pc1-banner--expanded .pc1-track img {
  height: 28px;
}

/* Scrollable tall-image container */
.ss-ds-scroll-container {
  max-height: 480px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 !important;
  -webkit-overflow-scrolling: touch;
}

.ss-ds-scroll-img {
  display: block;
  width: 100%;
  height: auto;
}

/* Full-width image — stretches to scroll container, no rounding, no enter animation */
.cs-cover-img.ss-ds-img-full {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-radius: 0;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* Design System */
.ds-card {
  padding: 0 !important;
  overflow: hidden;
}

.ds-card .action-icon {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.20);
}

.ds-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* Duolingo */
.duolingo-card {
  position: relative;
  overflow: hidden;
}
.duolingo-streak {
  position: absolute;
  top: 32px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px;
  white-space: nowrap;
  z-index: 2;
}
.duolingo-fire { width: 28px; height: calc(28px * 1.27); flex-shrink: 0; }
.streak-number {
  font-family: var(--font-family-display);
  font-weight: var(--streak-weight);
  font-size: var(--streak-size);
  line-height: 1;
  background: var(--gradient-duo-streak);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.duolingo-avatar {
  display: block;
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  height: 70%;
  width: auto;
  object-fit: contain;
  object-position: bottom;
  z-index: 1;
}
.duolingo-app-icon {
  position: absolute; bottom: 16px; right: 16px;
  width: 48px; height: 48px; border-radius: 16px; overflow: hidden;
  z-index: 3;
}
.duolingo-app-icon img { width: 100%; height: 100%; object-fit: cover; }

/* Strava */
.strava-card { padding: 0 !important; }

/* Leaflet map fills the entire card */
.strava-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  border-radius: 32px;
  overflow: hidden;
}

/* Loading pulse */
.strava-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--color-surface-skeleton-base) 25%, var(--color-surface-skeleton-shine) 50%, var(--color-surface-skeleton-base) 75%);
  background-size: 200% 100%;
  animation: strava-shimmer 1.4s ease infinite;
  z-index: 1;
  border-radius: 32px;
}
@keyframes strava-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Stats bar — bottom of card */
.strava-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 16px 14px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  z-index: 2;
}
.strava-distance {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-brand-strava);
  letter-spacing: -0.01em;
}
.strava-elevation {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-brand-strava);
}

/* Strava logo badge — bottom right */
.strava-badge {
  position: absolute;
  bottom: 16px; right: 16px;
  width: 48px; height: 48px;
  border-radius: 16px;
  overflow: hidden;
  z-index: 3;
}
.strava-badge img { width: 100%; height: 100%; object-fit: cover; }

/* Schedule */
.schedule-card {
  padding: 0 !important;
  overflow: hidden;
}

.schedule-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.schedule-card .action-icon {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.20);
}

/* ── UX Quote Card — expandable wrapper ── */
.ux-quote-card-wrapper {
  position: relative;
  width: 100%; height: 100%;
}

.ux-quote-card-wrapper > .ux-quote-card {
  width: 100%; height: 100%;
}

/* Ghost: hide collapsed card while expanded, keep grid slot occupied */
.ux-quote-card--ghost { opacity: 0; pointer-events: none; }

/* ── UX Quote expanded content ── */
.ux-quote-expanded-inner {
  padding: 40px 56px !important;   /* narrower side padding for 560px card */
  justify-content: center;
}

.ux-quote-expanded-icon {
  width: 36px; height: auto;
  display: block; flex-shrink: 0;
}

.ux-quote-expanded-quote {
  font-size: var(--quote-expanded-size);
  font-weight: var(--quote-expanded-weight);
  line-height: var(--quote-expanded-leading);
  text-align: center;
  color: var(--color-text-primary);
  transition: color 0.5s ease;
  margin: 0;
}

.ux-quote-expanded-quote strong {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: var(--weight-bold);
}


.ux-quote-expanded-body {
  font-size: var(--quote-body-size);
  line-height: var(--quote-body-leading);
  color: var(--color-text-body);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
  width: 100%;
  transition: color 0.5s ease;
}

.ux-quote-expanded-body p { margin: 0; }

.ux-quote-expanded-list {
  padding-left: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ux-quote-expanded-list li {
  padding-left: 4px;
}

/* ── DS Quote Card — expandable wrapper ── */
.ds-quote-card-wrapper {
  position: relative;
  width: 100%; height: 100%;
}

.ds-quote-card-wrapper > .ds-quote-card {
  width: 100%; height: 100%;
}

.ds-quote-card--ghost {
  opacity: 0;
  pointer-events: none;
}

.ds-quote-expanded-inner {
  padding: 40px 56px !important;
  justify-content: center;
}

.ds-quote-expanded-icon {
  width: 36px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.ds-quote-expanded-quote {
  font-size: var(--quote-expanded-size);
  font-weight: var(--quote-expanded-weight);
  line-height: var(--quote-expanded-leading);
  text-align: center;
}

.ds-quote-expanded-quote strong {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


.ds-quote-expanded-body {
  font-size: var(--quote-body-size);
  line-height: var(--quote-body-leading);
  color: var(--color-text-body);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

/* Quote cards */
.ux-quote-card, .ds-quote-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 32px; gap: 16px;
}

.ux-quote-card .quote-text,
.ds-quote-card .quote-text {
  font-size: var(--quote-size); line-height: var(--quote-leading);
  color: var(--color-text-primary); transition: color 0.5s ease;
  font-weight: var(--quote-weight);
}

.ux-quote-card strong,
.ds-quote-card strong {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: var(--weight-bold);
}

.quote-icon {
  width: 29px; height: auto;
  display: block; flex-shrink: 0;
}

.design-principle {
  font-size: var(--principle-size);
  font-weight: var(--principle-weight);
  letter-spacing: var(--principle-tracking);
  text-transform: uppercase;
  color: var(--color-text-primary);
  opacity: 0.3;
  transition: color 0.5s ease;
}

/* ══════════════════════════════════════
   CLAW INVEST CARD
══════════════════════════════════════ */
.claw-invest-card { padding: 0 !important; overflow: hidden; }

.claw-invest-bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/general/claw-invest-bg.jpg');
  background-size: cover;
  background-position: center top;
  transition: transform 0.4s ease;
}

.claw-invest-card:hover .claw-invest-bg {
  transform: scale(1.04);
}

.claw-invest-label {
  position: absolute;
  bottom: 16px;
  left: 18px;
  right: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.claw-invest-title {
  font-size: var(--claw-title-size);
  font-weight: var(--claw-title-weight);
  letter-spacing: var(--claw-title-tracking);
  color: var(--color-text-on-primary);
  line-height: 1.2;
}

/* Telegram badge — bottom right, matches duolingo-app-icon spec */
.claw-invest-badge {
  position: absolute;
  bottom: 16px; right: 16px;
  width: 48px; height: 48px;
  border-radius: 16px;
  overflow: hidden;
  z-index: 3;
}
.claw-invest-badge img { width: 100%; height: 100%; object-fit: cover; }

/* ══════════════════════════════════════
   MOBILE BREAKPOINT — 2 columns
══════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Nav: floating pill at bottom ── */
  .nav {
    top: auto;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 24px;
    right: 24px;
    padding: 0;
    background: none;
    border: none;
  }

  /* Never hide on mobile — thumb needs it reachable */
  .nav--hidden {
    transform: none;
  }

  /* Logo lives at top of page on mobile, not in the nav */
  .nav-logo {
    display: none;
  }

  /* Mobile page logo — centred above the grid */
  .mobile-page-logo {
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
  }

  /* Pills stretch to fill the nav, with more generous spacing */
  .nav-pills {
    position: relative;
    left: 0;
    transform: none;
    width: 100%;
    justify-content: center;
    padding: 6px;
    gap: 0;
  }

  .nav-pill {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
  }

  /* Stack logo above grid instead of side-by-side */
  .main {
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  }

  /* ── Grid: 4 → 2 columns, fluid width ── */
  /* Row height = column width → 1:1 cards.
     Column width = (viewport − 2×24px padding − 18px gap) / 2
     width: 100% overrides align-items:center on .main so 1fr
     columns actually fill the available space. */
  .grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(calc((100vw - 66px) / 2), auto);
    width: 100%;
  }

  /* Single-cell cards: enforce 1:1 via aspect-ratio as a safety net
     in case grid-auto-rows and column width drift apart. */
  .strava-card,
  .claw-invest-card,
  .gmail-card,
  .linkedin-card,
  .bulb-card,
  .duolingo-card {
    aspect-ratio: 1 / 1;
  }

  /* Quote cards: 50% taller so text doesn't crop.
     Full-width cards (1/3), alone in their row, so growing is safe. */
  .ds-quote-card,
  .ux-quote-card {
    min-height: calc((100vw - 66px) * 0.75);
  }

  /* Card grid placements are driven by inline styles from MOBILE_LAYOUTS
     in filterLayouts.js — no CSS placement rules needed here. */

  /* ── Animation delays — re-staggered for mobile reading order ── */
  .about-card-wrapper { --card-enter-delay: 0s;   }
  .gmail-card         { --card-enter-delay: 0.1s;  }
  .linkedin-card      { --card-enter-delay: 0.2s;  }
  .plugin-card        { --card-enter-delay: 0.3s;  }
  .ds-quote-card      { --card-enter-delay: 0.4s;  }
  .ds-card            { --card-enter-delay: 0.5s;  }
  .ux-quote-card      { --card-enter-delay: 0.6s;  }
  .alexa-card         { --card-enter-delay: 0.7s;  }
  .schedule-card      { --card-enter-delay: 0.8s;  }
  .ss-ds-card         { --card-enter-delay: 0.9s;  }
  .bulb-card          { --card-enter-delay: 1.0s;  }
  .duolingo-card      { --card-enter-delay: 1.1s;  }
  .claw-invest-card   { --card-enter-delay: 1.2s;  }
  .strava-card        { --card-enter-delay: 1.3s;  }

  /* ── About card avatar — 1/3 of card width ── */
  .about-avatar {
    width:  calc((100vw - 48px) / 3);
    height: calc((100vw - 48px) / 3);
  }

  /* ── Expanded about card — tighter side padding on mobile ── */
  .about-expanded-inner {
    padding-left: 40px;
    padding-right: 40px;
  }

  /* ── Case study header — bring close button to edge on narrow screens ── */
  .cs-header {
    padding: 24px 24px;
  }

  /* ── TLDR bar — align with exit button ── */
  .tldr-bar {
    top: 24px;
  }

  /* ── Case study hero video — scale down with page padding ── */
  .cs-hero-video {
    width:  calc(100vw - 48px) !important;
    height: calc(100vw - 48px) !important;
    max-width: 448px;
    max-height: 448px;
  }

  /* ── Agentic DS hero wrap — match shrunk hero size ── */
  .ads-hero-wrap {
    width:  calc(100vw - 48px) !important;
    height: calc(100vw - 48px) !important;
    max-width: 448px;
    max-height: 448px;
  }

  /* ── Layer Lint hero wrap — match shrunk hero size ── */
  .ll-hero-wrap {
    width:  calc(100vw - 48px) !important;
    height: calc(100vw - 48px) !important;
    max-width: 448px;
    max-height: 448px;
  }

  /* ── Marquee — full opacity, no hover, smaller for faster load ── */
  .cs-marquee-img {
    opacity: 1;
    transition: none;
    height: 100px;
  }
  .cs-marquee-img:hover {
    opacity: 1;
  }

  /* ── Case study back-to-top — clear mobile browser nav bar ── */
  .cs-back-to-top {
    bottom: 48px;
  }

  /* ── Disable scroll-reveal on demo video only (IO unreliable in overlay on mobile) ── */
  .cs-expanded-content .cs-demo-video {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  /* ── Case study containers — fit viewport with same padding as text ── */
  .cs-demo-video {
    width: calc(100vw - 48px) !important;
    max-width: 680px;
  }

  .cs-cover-img {
    width: calc(100vw - 48px) !important;
    max-width: 680px;
  }

  .cs-zoom-viewer,
  .cs-miro-viewer {
    width: calc(100vw - 48px) !important;
    max-width: 680px;
    height: 320px;
  }

  .cs-proto-row {
    gap: 8px;
  }

  .cs-proto-phone {
    width: calc((100vw - 48px - 16px) / 3);
    max-width: 200px;
    height: auto;
    aspect-ratio: 375 / 812;
    border-radius: 14px;
  }

  .ba-wrap {
    width: calc(100vw - 48px);
    max-width: calc(100vw - 48px);
  }

  .cs-error-section {
    width: calc(100vw - 48px);
    max-width: 680px;
  }

  /* Antonym & version section widths/heights set in JS via csScale */
  .cs-antonym-section { max-width: calc(100vw - 48px); }
  .cs-versions-section { max-width: calc(100vw - 48px); }



  /* ── Duolingo: scale down streak on mobile ── */
  .duolingo-streak { top: 20px; }
  .duolingo-fire   { width: 20px; height: calc(20px * 1.27); }
  .streak-number   { font-size: var(--streak-size-mobile); }

  /* ── Strava: hide elevation on mobile (too cramped) ── */
  .strava-elevation {
    display: none;
  }

  /* Simplestream logo rail — 150% faster on smaller screen */
  .pc1-track {
    animation-duration: 16s;
  }

  /* ── Hide back-to-top on mobile homepage (nav is already at bottom) ── */
  .back-to-top {
    display: none;
  }

  /* ── Always show action icon (no hover needed) ── */
  .action-icon {
    opacity: 1;
    transform: scale(1);
  }

  /* ── Disable hover lift so tap goes straight to click ── */
  .bento-card:hover {
    transform: none;
    border-color: var(--color-border-card);
    box-shadow:
      0 1px 3px var(--color-shadow-card-rest),
      0 1px 2px var(--color-shadow-card-rest),
      inset 0 1px 0 var(--color-card-inset-top),
      inset 0 -1px 0 var(--color-card-inset-bottom);
  }

  .bento-card.dark:hover {
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow:
      0 1px 3px var(--color-shadow-card-rest),
      0 1px 2px var(--color-shadow-card-rest),
      inset 0 1px 0 var(--color-card-inset-top),
      inset 0 -1px 0 var(--color-card-inset-bottom);
  }

  /* ── Pressed state — MUST come after hover reset to win specificity ── */
  .bento-card:active,
  .bento-card--pressed {
    transform: scale(0.97) !important;
    box-shadow:
      0 1px 3px var(--color-shadow-card-rest),
      0 1px 2px var(--color-shadow-card-rest),
      inset 0 1px 0 var(--color-card-inset-top),
      inset 0 -1px 0 var(--color-card-inset-bottom) !important;
    transition: transform 0.08s ease, box-shadow 0.08s ease !important;
  }
}

/* ══════════════════════════════════════
   REDUCED MOTION
   When the OS (or low-power mode) signals reduced motion,
   disable all keyframe animations and heavy transitions.
   Cards appear instantly; hover/active still work via
   simple property changes — just without animated movement.
══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  /* Kill all keyframe animations globally */
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
  }

  /* Cap transition durations to instant-feeling snaps */
  .bento-card,
  .bento-card:hover,
  .bento-card:active,
  .bento-card--pressed,
  .grid-slot,
  .nav-pill-indicator,
  .nav-pill-indicator--ready,
  .nav-pill-indicator--liquid,
  .back-to-top {
    transition-duration: 0.1s !important;
  }

  /* Hide custom cursor — native cursor is fine */
  .cs-root,
  .cursor-tooltip {
    display: none !important;
  }

  /* Restore native cursor when custom one is hidden */
  *, *::before, *::after {
    cursor: auto !important;
  }

  /* Remove persistent GPU layers that aren't needed without animation */
  .bento-card {
    will-change: auto !important;
  }

  .nav-pill-indicator {
    will-change: auto !important;
  }

  .ba-img {
    will-change: auto !important;
  }
}


/* ═══════════════════════════════════════════════════════════
 *  AGENTIC DS CASE STUDY
 * ═══════════════════════════════════════════════════════════ */

/* ── Card styling ── */
.agentic-ds-card {
  background: var(--color-surface-claude);
}

.agentic-ds-card video {
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

/* Magnetic canvas background */
.ads-card-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Card face — logos + pixel title */
.ads-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
  z-index: 1;
}

.ads-card-logos {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ads-card-logo-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ads-card-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ads-card-logo--claude {
  filter: brightness(0) invert(1);
}

.ads-card-title {
  font-family: 'Tiny5', monospace;
  font-size: 40px;
  line-height: 1;
  color: var(--color-text-on-primary);
  text-align: center;
  white-space: pre-line;
  margin: 0;
}

/* Collapsed card image — fills card for fly animation bounding rect */
.ads-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hero wrapper — mirrors ss-ds-hero-wrap pattern */
.ads-hero-wrap {
  border-radius: 32px;
  overflow: hidden;
  margin-top: 40px;
}

.ads-hero-wrap .cs-hero-video {
  margin-top: 0;
}

.ads-hero-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
}

/* Fly overlay — logos + text that ride the flying element during transition */
.ads-fly-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  pointer-events: none;
}

/* ── Layer Lint card ── */
.ll-card {
  background: #1a1a1a;
  position: relative;
  overflow: hidden;
}

/* ── Layer panel animated background ── */
.ll-bg-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ll-bg-track {
  width: 80%;
  max-width: 260px;
  margin: 0 auto;
  will-change: transform;
}

.ll-bg-panel {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ll-bg-row {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 8px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0;
  transform: translateY(6px);
  clip-path: inset(0 0 0 0);
  transition: opacity 0.3s ease, transform 0.3s ease, clip-path 0.4s ease-in;
  overflow: hidden;
}

.ll-bg-row--visible {
  opacity: 0.3;
  transform: translateY(0);
}

/* Hidden layers: dashed border, lower opacity */
.ll-bg-row--hidden {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.08);
}
.ll-bg-row--hidden.ll-bg-row--visible {
  opacity: 0.15;
}

/* Right-to-left wipe for hidden layer removal */
.ll-bg-row--wiping {
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
}

/* Renamed layer: teal text */
.ll-bg-row--renamed .ll-bg-name {
  color: #0d9488;
}

.ll-bg-icon {
  width: 12px;
  flex-shrink: 0;
  text-align: center;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1;
}

.ll-bg-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-family: ui-monospace, 'Cascadia Code', 'Fira Code', monospace;
  font-size: 10px;
  line-height: 26px;
}

/* Blinking cursor */
.ll-bg-cursor {
  display: inline-block;
  width: 1px;
  height: 11px;
  background: rgba(255, 255, 255, 0.7);
  margin-left: 1px;
  vertical-align: middle;
  animation: ll-blink 0.6s step-end infinite;
}

.ll-bg-row--renamed .ll-bg-cursor {
  background: #0d9488;
}

@keyframes ll-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.ll-bg-eye {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.25);
}

.ll-bg-eye--closed {
  color: rgba(255, 255, 255, 0.12);
}

.ll-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

.ll-card-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.ll-card-title {
  font-family: var(--font-family-heading);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.05;
  color: #f5f5f5;
  text-align: center;
  white-space: pre-line;
  margin: 0;
}

.ll-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ll-hero-wrap {
  border-radius: 32px;
  overflow: hidden;
  margin-top: 40px;
}

.ll-hero-wrap .cs-hero-video {
  margin-top: 0;
}

.ll-hero-overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background: #1a1a1a;
}

.ll-fly-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}

/* ── Before / After toggle ── */
.ll-before-after {
  max-width: 680px;
  margin: 0 auto;
}

.ll-toggle-bar {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 12px;
}

.ll-toggle-btn {
  padding: 6px 18px;
  border: 1px solid var(--border-light, #e0e0e0);
  border-radius: 100px;
  background: transparent;
  color: var(--color-text-secondary, #666);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ll-toggle-btn--active {
  background: #0d9488;
  border-color: #0d9488;
  color: #fff;
}

.ll-panels-wrap {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border-light, #e0e0e0);
}

.ll-panels-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ll-panels-track--after {
  transform: translateX(-50%);
}

.ll-panel {
  flex: 0 0 100%;
  min-width: 0;
}

.ll-panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: var(--color-surface-secondary, #f5f5f5);
  border-bottom: 1px solid var(--border-light, #e0e0e0);
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-primary, #333);
}

.ll-panel-title {
  font-weight: 600;
}

.ll-panel-badge {
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--color-text-secondary, #666);
}

.ll-panel-list {
  padding: 4px 0;
}

.ll-panel-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  font-size: 11px;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  color: var(--color-text-primary, #333);
}

.ll-panel-row--hidden {
  opacity: 0.35;
  text-decoration: line-through;
}

.ll-panel-icon {
  width: 14px;
  text-align: center;
  font-size: 10px;
  color: var(--color-text-secondary, #888);
  flex-shrink: 0;
}

.ll-panel-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ll-panel-hidden-tag {
  font-size: 10px;
  opacity: 0.5;
}

/* ── Plugin demo ── */
.ll-demo {
  max-width: 380px;
  margin: 0 auto;
  border-radius: 12px;
  border: 1px solid var(--border-light, #e0e0e0);
  overflow: hidden;
  background: var(--color-surface-primary, #fff);
}

.ll-demo-chrome {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid var(--border-light, #e0e0e0);
}

.ll-demo-tabs {
  display: flex;
  gap: 0;
  flex: 1;
}

.ll-demo-tab {
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--color-text-secondary, #888);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.ll-demo-tab--active {
  color: var(--color-text-primary, #333);
  font-weight: 600;
  border-bottom-color: #0d9488;
}

.ll-demo-settings {
  font-size: 14px;
  opacity: 0.3;
}

.ll-demo-body {
  padding: 12px;
  min-height: 200px;
}

.ll-demo-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ll-demo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 11px;
  transition: all 0.2s ease;
}

.ll-demo-row:hover {
  background: rgba(0, 0, 0, 0.03);
}

.ll-demo-name {
  flex: 1;
  font-family: ui-monospace, 'Cascadia Code', monospace;
  color: var(--color-text-primary, #333);
}

.ll-demo-reason {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 1px 5px;
  border-radius: 3px;
}

.ll-demo-reason--hidden {
  background: rgba(224, 62, 62, 0.12);
  color: #c33;
}

.ll-demo-reason--empty {
  background: rgba(161, 102, 255, 0.15);
  color: #7a4ccc;
}

.ll-demo-remove-btn {
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--color-text-secondary, #888);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.ll-demo-remove-btn:hover {
  background: rgba(224, 62, 62, 0.1);
  color: #e03e3e;
}

.ll-demo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  color: #0d9488;
  font-size: 13px;
  font-weight: 500;
}

/* Rename rows */
.ll-demo-rename-row {
  gap: 6px;
}

.ll-demo-old {
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 10px;
  color: var(--color-text-secondary, #888);
  text-decoration: line-through;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ll-demo-arrow {
  color: var(--color-text-secondary, #aaa);
  font-size: 11px;
  flex-shrink: 0;
}

.ll-demo-new {
  font-family: ui-monospace, 'Cascadia Code', monospace;
  font-size: 10px;
  color: #0d9488;
  font-weight: 500;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ll-demo-apply-btn {
  padding: 3px 10px;
  border: 1px solid #0d9488;
  border-radius: 4px;
  background: transparent;
  color: #0d9488;
  font-size: 10px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.ll-demo-apply-btn:hover {
  background: rgba(13, 148, 136, 0.08);
}

.ll-demo-check {
  color: #0d9488;
  font-size: 13px;
  flex-shrink: 0;
  width: 42px;
  text-align: center;
}

.ll-demo-row--applied .ll-demo-old {
  opacity: 0.3;
}

.ll-demo-row--applied .ll-demo-new {
  font-weight: 600;
}

/* ── Action icon text label variant ── */
.action-icon--label {
  width: auto;
  padding: 0 14px;
  border-radius: 100px;
  text-decoration: none;
}

.action-icon__text {
  font-family: var(--font-family-primary);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  color: var(--color-text-primary);
  white-space: nowrap;
  line-height: 40px;
  text-decoration: none;
}

.cs-subtitle {
  font-size: var(--text-4xl);
  font-weight: var(--weight-medium);
  color: var(--color-text-subtle);
  margin: -8px 0 24px;
  line-height: var(--leading-relaxed);
  font-style: italic;
}

.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 32px;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-subtle);
  letter-spacing: var(--tracking-wide);
}

.cs-closing {
  font-size: var(--text-4xl);
  font-weight: var(--weight-medium);
  line-height: var(--leading-relaxed);
  font-style: italic;
  color: var(--color-text-subtle);
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-card);
}

/* ── Token Layer Demo ── */
.ads-token-demo {
  margin: 20px 0 4px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border-card);
}

.ads-token-layer {
  border-bottom: 1px solid var(--color-border-card);
}

.ads-token-layer:last-child {
  border-bottom: none;
}

.ads-token-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  background: var(--color-surface-card);
  transition: background 0.15s ease;
}

.ads-token-header:hover {
  background: var(--color-surface-card-white);
}

.ads-token-tier {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ads-token-tier-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  background: var(--color-surface-card-white);
  color: var(--color-text-primary);
  letter-spacing: var(--tracking-wide);
  border: 1px solid var(--color-border-card);
  font-family: var(--font-family-mono, monospace);
}

.ads-token-tier-desc {
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
}

.ads-token-chevron {
  font-size: 20px;
  color: var(--color-text-subtle);
  font-weight: var(--weight-bold);
  width: 24px;
  text-align: center;
}

.ads-token-rows-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: grid-template-rows;
}

.ads-token-layer--open .ads-token-rows-wrap {
  grid-template-rows: 1fr;
}

.ads-token-rows {
  min-height: 0;
  overflow: hidden;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--color-surface-card-white);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) 0.05s;
}

.ads-token-layer--open .ads-token-rows {
  opacity: 1;
}

.ads-token-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}

.ads-token-swatch {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
}

.ads-token-swatch--sm {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

.ads-token-name {
  font-family: var(--font-family-mono);
  font-size: var(--text-xs);
  color: var(--color-text-primary);
  min-width: 260px;
}

.ads-token-value {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
}

.ads-token-dark {
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}


/* ── Workflow crossfade transition ── */
.ads-fade-enter-active,
.ads-fade-leave-active {
  transition: opacity 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ads-fade-enter-from {
  opacity: 0;
  transform: translateY(6px);
}

.ads-fade-leave-to {
  opacity: 0;
  transform: translateY(-6px);
}

/* ── Agent Workflow Demo ── */
.ads-workflow-demo {
  margin: 20px 0 4px;
  border-radius: 12px;
  border: 1px solid var(--color-border-card);
  overflow: hidden;
}

.ads-workflow-tabs {
  display: flex;
  gap: 0;
  background: var(--color-surface-card);
  border-bottom: 1px solid var(--color-border-card);
}

.ads-workflow-tab {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: none;
  font-family: var(--font-family-primary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-subtle);
  cursor: pointer;
  transition: all 0.15s ease;
  border-bottom: 2px solid transparent;
}

.ads-workflow-tab:hover {
  color: var(--color-text-primary);
}

.ads-workflow-tab--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.ads-workflow-card-wrap {
  background: var(--color-surface-card-white);
  overflow: hidden;
  transition: height 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: height;
}

.ads-workflow-card {
  display: flex;
  align-items: stretch;
  padding: 24px;
  gap: 16px;
}

.ads-workflow-step {
  flex: 1;
  padding: 16px;
  border-radius: 8px;
  background: var(--color-surface-card);
}

.ads-workflow-step p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-text-primary);
  margin: 0;
}

.ads-workflow-step--outcome {
  background: linear-gradient(135deg, rgba(0, 139, 139, 0.06), rgba(124, 92, 252, 0.06));
}

.ads-workflow-label {
  display: block;
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: 8px;
}

.ads-workflow-arrow {
  display: flex;
  align-items: center;
  color: var(--color-text-subtle);
  font-size: 20px;
  flex-shrink: 0;
}

@keyframes ads-slide-in {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.ads-workflow-slide {
  opacity: 0;
  animation: ads-slide-in 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: var(--delay, 0ms);
}


/* ── Browser Window ── */
.ads-browser-window {
  display: block;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border-card);
  background: var(--color-surface-card);
  cursor: pointer;
  margin: 32px 40px 16px;
}

.ads-browser-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--color-surface-card);
  border-bottom: 1px solid var(--color-border-card);
}

.ads-browser-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.ads-browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.ads-browser-dot--red    { background: #ff5f57; }
.ads-browser-dot--yellow { background: #febc2e; }
.ads-browser-dot--green  { background: #28c840; }

.ads-browser-address {
  flex: 1;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  background: var(--color-surface-card-white);
  border-radius: 6px;
  padding: 4px 12px;
  font-family: var(--font-family-primary);
}

.ads-browser-viewport {
  position: relative;
  line-height: 0;
}

.ads-browser-img {
  width: 100%;
  display: block;
}

.ads-browser-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: background 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ads-browser-window:hover .ads-browser-overlay {
  background: rgba(0, 0, 0, 0.45);
}

.ads-browser-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-family-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: #fff;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ads-browser-window:hover .ads-browser-cta {
  opacity: 1;
  transform: translateY(0);
}

.ads-browser-icon {
  flex-shrink: 0;
}


/* ── Results grid ── */
.ads-results {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0 40px;
}

.ads-result-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  border-radius: 12px;
  background: var(--color-surface-card);
  border: 1px solid var(--color-border-card);
  text-align: center;
}

.ads-result-number {
  font-family: var(--font-family-heading);
  font-size: var(--text-8xl);
  font-weight: var(--weight-semibold);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.ads-result-label {
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
  line-height: var(--leading-normal);
}


/* ── Mobile responsive ── */
@media (max-width: 768px) {
  .ads-workflow-card {
    flex-direction: column;
  }

  .ads-workflow-arrow {
    transform: rotate(90deg);
    justify-content: center;
  }

  .ads-results {
    grid-template-columns: repeat(2, 1fr);
  }

  .ads-token-name {
    min-width: 0;
    font-size: 9px;
  }

  .ads-token-tier-desc {
    display: none;
  }

  .cs-meta {
    flex-direction: column;
  }
}
