/* ============================================================
   Serbito v2 — visual layer (warm editorial)

   Loaded only when html.ui-v2 is set (see base_generic.html).
   First-stage rollout: typography + palette + softened cards/buttons.
   Layout (Bootstrap grid) intentionally untouched in this pass.

   Rollback: remove the conditional <link> from base_generic.html
   and delete this file.
   ============================================================ */

/* fonts */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght,SOFT@9..144,300..700,30..100&family=Inter+Tight:wght@400;500;600;700&display=swap');

html.ui-v2 {
  /* ------- tokens ------- */
  --v2-bg:           #F4ECDC;
  --v2-bg-elev:      #FBF6EB;
  --v2-surface:      #FFFFFF;
  --v2-ink:          #1C1815;
  --v2-ink-2:        #4A413A;
  --v2-muted:        #8A7E72;
  --v2-border:       #E2D6BE;
  --v2-border-soft:  #ECE2CE;

  --v2-accent:       #C2492C;
  --v2-accent-ink:   #8E3018;
  --v2-accent-soft:  #F2D9CD;
  --v2-moss:         #5F6B3A;
  --v2-good:         #4F6B3A;
  --v2-danger:       #9B3322;

  --v2-font-display: 'Fraunces', 'Iowan Old Style', 'Georgia', serif;
  --v2-font-body:    'Inter Tight', -apple-system, 'Segoe UI', sans-serif;

  --v2-radius-sm: 6px;
  --v2-radius:   10px;
  --v2-radius-lg: 18px;

  --v2-shadow-1: 0 1px 0 rgba(28,24,21,.04), 0 1px 2px rgba(28,24,21,.04);
  --v2-shadow-2: 0 2px 0 rgba(28,24,21,.04), 0 12px 28px -14px rgba(28,24,21,.18);

  /* re-map Bootstrap tokens — overrides cascade everywhere */
  --bs-body-bg:          var(--v2-bg);
  --bs-body-color:       var(--v2-ink);
  --bs-primary:          var(--v2-accent);
  --bs-primary-rgb:      194, 73, 44;
  --bs-link-color:       var(--v2-accent-ink);
  --bs-link-hover-color: var(--v2-accent);
  --bs-border-color:     var(--v2-border);
  --bs-tertiary-bg:      var(--v2-bg-elev);
}

/* ------- subtle paper texture on body ------- */
html.ui-v2 body {
  background:
    radial-gradient(rgba(28,24,21,.030) 1px, transparent 1px) 0 0 / 3px 3px,
    radial-gradient(rgba(28,24,21,.020) 1px, transparent 1px) 1px 2px / 3px 3px,
    var(--v2-bg);
  background-attachment: fixed;
  font-family: var(--v2-font-body);
  color: var(--v2-ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01','cv11';
  /* Defensive: prevent any absolute-positioned overlay (e.g. card
     hearts inside a flex-nowrap horizontal-scroll similar-ads strip)
     from ever leaking into document horizontal scroll on phone
     viewports. `clip` does not create a scroll container the way
     `hidden` does, just forbids the overflow from being scrolled. */
  overflow-x: clip;
}

/* ------- typography ------- */
html.ui-v2 h1,
html.ui-v2 .h1,
html.ui-v2 h2,
html.ui-v2 .h2,
html.ui-v2 h3,
html.ui-v2 .h3,
html.ui-v2 h4,
html.ui-v2 .h4,
html.ui-v2 .navbar-brand,
html.ui-v2 .card-title {
  font-family: var(--v2-font-display);
  font-weight: 500;
  letter-spacing: -0.018em;
  color: var(--v2-ink);
  font-variation-settings: 'opsz' 96, 'SOFT' 40;
}

html.ui-v2 h1, html.ui-v2 .h1 { font-weight: 380; font-variation-settings: 'opsz' 144, 'SOFT' 40; }
html.ui-v2 h1 em, html.ui-v2 .h1 em {
  font-style: italic; color: var(--v2-accent); font-weight: 380;
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}

html.ui-v2 p,
html.ui-v2 .card-text,
html.ui-v2 input,
html.ui-v2 textarea,
html.ui-v2 select,
html.ui-v2 .form-control,
html.ui-v2 .form-select,
html.ui-v2 .nav-link,
html.ui-v2 .btn,
html.ui-v2 button {
  font-family: var(--v2-font-body);
}

html.ui-v2 strong, html.ui-v2 b, html.ui-v2 .fw-bold {
  font-family: var(--v2-font-body);
  font-weight: 600;
}

::selection { background: #C2492C; color: #fff; }

/* ------- navbar ------- */
html.ui-v2 .navbar.bg-body-tertiary,
html.ui-v2 .navbar {
  background: color-mix(in srgb, var(--v2-bg-elev) 92%, transparent) !important;
  border-bottom: 1px solid var(--v2-border-soft);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
html.ui-v2 .navbar-brand { letter-spacing: -0.02em; }
html.ui-v2 .nav-link {
  color: var(--v2-ink-2) !important;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  transition: color .15s, border-color .15s;
  text-decoration: none;
}
html.ui-v2 .nav-link:hover {
  color: var(--v2-ink) !important;
  border-bottom-color: var(--v2-accent);
  /* Keep only the accent border underline; suppress the global a:hover black underline
     so nav links don't show a double line. */
  text-decoration: none;
}

/* ------- buttons ------- */
html.ui-v2 .btn {
  border-radius: var(--v2-radius);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform .12s ease, box-shadow .15s ease, background .15s, color .15s;
}
html.ui-v2 .btn:hover { transform: translateY(-1px); box-shadow: var(--v2-shadow-2); }
html.ui-v2 .btn-primary {
  background: var(--v2-accent); border-color: var(--v2-accent); color: #fff;
}
html.ui-v2 .btn-primary:hover {
  background: var(--v2-accent-ink); border-color: var(--v2-accent-ink); color: #fff;
}
html.ui-v2 .btn-outline-primary {
  background: transparent; color: var(--v2-accent); border-color: var(--v2-accent);
}
html.ui-v2 .btn-outline-primary:hover,
html.ui-v2 .btn-outline-primary:focus,
html.ui-v2 .btn-outline-primary:not(:disabled):not(.disabled):active {
  background: var(--v2-accent); color: #fff; border-color: var(--v2-accent);
}

/* ------- cards ------- */
html.ui-v2 .card {
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
  background: var(--v2-surface);
  box-shadow: var(--v2-shadow-1);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
html.ui-v2 .card:hover {
  transform: translateY(-3px);
  box-shadow: var(--v2-shadow-2);
  border-color: var(--v2-ink-2);
}
html.ui-v2 .card-title { font-size: 1.05rem; line-height: 1.2; }

/* ------- forms ------- */
html.ui-v2 .form-control,
html.ui-v2 .form-select {
  border: 1px solid var(--v2-border);
  border-radius: var(--v2-radius);
  background-color: var(--v2-surface);
  color: var(--v2-ink);
  transition: border-color .15s, box-shadow .15s;
}
html.ui-v2 .form-control:focus,
html.ui-v2 .form-select:focus {
  border-color: var(--v2-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--v2-accent) 18%, transparent);
  outline: 0;
}

/* ------- footer ------- */
html.ui-v2 .footer.bg-light,
html.ui-v2 footer.footer {
  background: var(--v2-bg-elev) !important;
  border-top: 1px solid var(--v2-border-soft);
  color: var(--v2-ink-2);
}
html.ui-v2 .footer a { color: var(--v2-ink-2); }
html.ui-v2 .footer a:hover { color: var(--v2-accent); }

/* ------- alerts ------- */
html.ui-v2 .alert-info {
  background: var(--v2-accent-soft);
  border-color: color-mix(in srgb, var(--v2-accent) 30%, transparent);
  color: var(--v2-accent-ink);
}

/* ------- focus ring ------- */
html.ui-v2 .navbar-nav .nav-link:focus,
html.ui-v2 .dropdown-item:focus,
html.ui-v2 .btn:focus {
  outline: 3px solid color-mix(in srgb, var(--v2-accent) 60%, transparent);
  outline-offset: 2px;
}

/* ============================================================
   Hero (homepage) — editorial spread
   ============================================================ */
html.ui-v2 .v2-hero {
  padding: 56px 0 24px;
  position: relative;
}
@media (max-width: 900px) {
  html.ui-v2 .v2-hero { padding: 32px 0 16px; }
}

html.ui-v2 .v2-hero__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: end;
}
@media (max-width: 900px) {
  html.ui-v2 .v2-hero__inner { grid-template-columns: 1fr; gap: 16px; }
}

html.ui-v2 .v2-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--v2-muted);
  font-family: var(--v2-font-body);
  margin-bottom: 12px;
}
html.ui-v2 .v2-eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--v2-ink-2);
}

html.ui-v2 h1.v2-hero__title,
html.ui-v2 .v2-hero__title {
  font-family: var(--v2-font-display);
  font-weight: 380;
  font-size: clamp(36px, 5.5vw, 78px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--v2-ink);
  margin: 0 0 16px;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
}
html.ui-v2 .v2-hero__title em {
  font-style: italic;
  font-weight: 380;
  color: var(--v2-accent);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}

html.ui-v2 .v2-hero__lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--v2-ink-2);
  max-width: 52ch;
  margin: 0 0 8px;
  font-family: var(--v2-font-body);
}

html.ui-v2 .v2-hero__meta {
  font-family: var(--v2-font-display);
  font-style: italic;
  font-size: 15px;
  color: var(--v2-muted);
  border-left: 2px solid var(--v2-accent);
  padding-left: 14px;
  max-width: 32ch;
  align-self: end;
  margin-bottom: 8px;
}
html.ui-v2 .v2-hero__meta b {
  color: var(--v2-ink);
  font-style: normal;
  font-family: var(--v2-font-body);
  font-weight: 600;
}

/* Soften the existing bootstrap search form when sitting under v2-hero */
html.ui-v2 #filter-form {
  margin-top: 8px;
}
html.ui-v2 #filter-form .form-control-lg {
  border-radius: var(--v2-radius);
  border: 1.5px solid var(--v2-ink);
  background: var(--v2-surface);
  font-family: var(--v2-font-body);
  font-size: 16px;
  padding-top: 12px; padding-bottom: 12px;
}
html.ui-v2 #filter-form .form-control-lg:focus {
  border-color: var(--v2-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--v2-accent) 18%, transparent);
}

/* ============================================================
   Chip rail (quick filters)
   ============================================================ */
html.ui-v2 .v2-chips-container {
  margin-top: 0;
}
html.ui-v2 .v2-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
html.ui-v2 .v2-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--v2-font-body);
  color: var(--v2-ink-2);
  background: var(--v2-surface);
  border: 1px solid var(--v2-border);
  border-radius: 999px;
  cursor: pointer;
  transition: color .15s, border-color .15s, background .15s, transform .15s;
  appearance: none;
  line-height: 1.2;
}
html.ui-v2 .v2-chip:hover {
  border-color: var(--v2-ink);
  color: var(--v2-ink);
  transform: translateY(-1px);
}
html.ui-v2 .v2-chip--active {
  background: var(--v2-ink);
  color: var(--v2-bg);
  border-color: var(--v2-ink);
}
html.ui-v2 .v2-chips-divider {
  display: inline-flex;
  align-items: center;
  color: var(--v2-border);
  font-size: 18px;
  user-select: none;
  padding: 0 4px;
  line-height: 1;
}
html.ui-v2 .v2-chip:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--v2-accent) 60%, transparent);
  outline-offset: 2px;
}

/* favourites chip — leading discovery chip, hidden until localStorage has ids */
html.ui-v2 .v2-chip--accent {
  background: color-mix(in srgb, var(--v2-accent-soft) 90%, transparent);
  color: var(--v2-accent-ink);
  border-color: color-mix(in srgb, var(--v2-accent) 40%, transparent);
  text-decoration: none;
}
html.ui-v2 .v2-chip--accent:hover {
  background: var(--v2-accent);
  color: #fff;
  border-color: var(--v2-accent);
}
html.ui-v2 .v2-chip__count {
  color: var(--v2-muted);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  font-size: 12px;
  padding-left: 2px;
}
html.ui-v2 .v2-chip--accent .v2-chip__count {
  color: color-mix(in srgb, var(--v2-accent-ink) 75%, transparent);
}
html.ui-v2 .v2-chip--accent:hover .v2-chip__count {
  color: color-mix(in srgb, #fff 80%, transparent);
}

/* ============================================================
   Categories rail (top-by-clicks, between chips and listings)
   ============================================================ */
html.ui-v2 .v2-cats-container {
  margin-top: 8px;
}
html.ui-v2 .v2-cats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
@media (max-width: 900px) {
  html.ui-v2 .v2-cats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  html.ui-v2 .v2-cats { grid-template-columns: repeat(2, 1fr); }
}

html.ui-v2 .v2-cat-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  padding: 14px 14px 12px;
  min-height: 96px;
  background: var(--v2-bg-elev);
  border: 1px solid var(--v2-border-soft);
  border-radius: var(--v2-radius);
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, background .15s, border-color .15s, box-shadow .15s;
}
html.ui-v2 .v2-cat-tile:hover {
  background: var(--v2-surface);
  border-color: var(--v2-ink-2);
  transform: translateY(-2px);
  box-shadow: var(--v2-shadow-2);
}

html.ui-v2 .v2-cat-tile__mark {
  font-family: var(--v2-font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1;
  color: var(--v2-accent);
  font-variation-settings: 'opsz' 96, 'SOFT' 60;
  align-self: stretch;
}

html.ui-v2 .v2-cat-tile__name {
  font-family: var(--v2-font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  color: var(--v2-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html.ui-v2 .v2-cat-tile__count {
  font-size: 12px;
  color: var(--v2-muted);
  font-variant-numeric: tabular-nums;
  font-family: var(--v2-font-body);
}

/* ============================================================
   Section header (above the listing grid)
   ============================================================ */
html.ui-v2 .v2-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 32px auto 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--v2-border);
}
html.ui-v2 .v2-section-head h2 {
  font-family: var(--v2-font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--v2-ink);
  font-variation-settings: 'opsz' 96, 'SOFT' 30;
}
html.ui-v2 .v2-section-head h2 em {
  font-style: italic;
  color: var(--v2-accent);
  font-weight: 400;
}
html.ui-v2 .v2-section-head__meta {
  font-size: 13.5px;
  color: var(--v2-muted);
  font-family: var(--v2-font-body);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}


/* ============================================================
   Language-choice banner — bottom-fixed prompt when navigator lang
   doesn't match the page. v1 used outline-primary; v2 leans on the
   warm cream palette + Fraunces italic label.
   ============================================================ */
html.ui-v2 .language-choice-banner {
  background: var(--v2-bg-elev);
  border-top: 1px solid var(--v2-border);
  box-shadow: 0 -6px 24px rgba(28, 24, 21, .12);
  padding: 14px 0;
}
html.ui-v2 .language-choice-banner .container {
  align-items: center;
}
html.ui-v2 .language-choice-banner .fw-semibold {
  font-family: var(--v2-font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  color: var(--v2-ink);
  font-variation-settings: 'opsz' 36, 'SOFT' 40;
}
html.ui-v2 .language-choice-btn {
  font-family: var(--v2-font-body);
  font-weight: 500;
  font-size: 14px;
  border-radius: 999px;
  border: 1px solid var(--v2-border);
  background: var(--v2-surface);
  color: var(--v2-ink-2);
  padding: 6px 14px;
  transition: color .15s, border-color .15s, background .15s, transform .15s;
}
html.ui-v2 .language-choice-btn:hover {
  color: var(--v2-accent);
  border-color: var(--v2-accent);
  transform: translateY(-1px);
  background: var(--v2-surface);
}
html.ui-v2 .language-choice-close {
  font-family: var(--v2-font-body);
  color: var(--v2-muted);
  text-decoration: none;
  font-size: 13px;
}
html.ui-v2 .language-choice-close:hover {
  color: var(--v2-ink);
}

/* ============================================================
   Hero — compact variant (used on /favourites/, secondary pages)
   ============================================================ */
html.ui-v2 .v2-hero--compact { padding: 32px 0 16px; }
html.ui-v2 .v2-hero--compact .v2-hero__inner { grid-template-columns: 1fr; }
html.ui-v2 .v2-hero--compact h1.v2-hero__title {
  font-size: clamp(28px, 4vw, 56px);
}

/* ============================================================
   Empty state
   ============================================================ */
html.ui-v2 .v2-empty {
  padding: 56px 0;
  display: flex;
  justify-content: center;
}
html.ui-v2 .v2-empty__inner {
  max-width: 44ch;
  text-align: center;
}
html.ui-v2 .v2-empty__title {
  font-family: var(--v2-font-display);
  font-style: italic;
  font-size: 20px;
  line-height: 1.3;
  color: var(--v2-ink);
  margin: 0 0 8px;
}
html.ui-v2 .v2-empty__hint {
  font-size: 14.5px;
  color: var(--v2-muted);
  margin: 0 0 20px;
}

/* ============================================================
   Cards (listing grid) — editorial overlay layer
   pin (top-left), heart (top-right), serif price.
   ============================================================ */

/* image wrapper — give pin/heart absolute anchors */
html.ui-v2 .v2-card-media {
  border-top-left-radius: var(--v2-radius);
  border-top-right-radius: var(--v2-radius);
  overflow: hidden;
}

/* corner pin */
html.ui-v2 .v2-card-pin {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-family: var(--v2-font-body);
  color: var(--v2-bg);
  background: var(--v2-ink);
  border-radius: 999px;
  z-index: 2;
  pointer-events: none;
  box-shadow: 0 1px 0 rgba(28,24,21,.08), 0 2px 6px rgba(28,24,21,.12);
}
html.ui-v2 .v2-card-pin--accent { background: var(--v2-accent); color: #fff; }
html.ui-v2 .v2-card-pin--moss   { background: var(--v2-moss);   color: #fff; }

/* floating heart */
html.ui-v2 .v2-card-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--v2-surface) 88%, transparent);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--v2-border-soft);
  border-radius: 999px;
  color: var(--v2-ink-2);
  cursor: pointer;
  appearance: none;
  padding: 0;
  z-index: 3;
  transition: color .15s, transform .15s, border-color .15s, background .15s;
  font-size: 16px; line-height: 1;
}
html.ui-v2 .v2-card-heart:hover {
  color: var(--v2-accent);
  border-color: var(--v2-accent);
  transform: scale(1.08);
}
html.ui-v2 .v2-card-heart:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--v2-accent) 60%, transparent);
  outline-offset: 2px;
}

/* heart glyph — Bootstrap Icons; tighter than the Unicode ♥/♡ default */
html.ui-v2 .v2-card-heart .v2-card-heart__on,
html.ui-v2 .v2-card-heart .v2-card-heart__off {
  font-size: 13px;
  line-height: 1;
}

/* heart state toggle — show outline by default, fill when .is-active */
html.ui-v2 .v2-card-heart .v2-card-heart__on  { display: none; }
html.ui-v2 .v2-card-heart .v2-card-heart__off { display: inline-block; }
html.ui-v2 .v2-card-heart.is-active {
  color: var(--v2-accent);
  border-color: var(--v2-accent);
  background: color-mix(in srgb, var(--v2-accent-soft) 90%, transparent);
}
html.ui-v2 .v2-card-heart.is-active .v2-card-heart__on  { display: inline-block; }
html.ui-v2 .v2-card-heart.is-active .v2-card-heart__off { display: none; }

/* detail-page heart variant — title-row sized, no absolute positioning */
html.ui-v2 .v2-card-heart.v2-detail-heart {
  position: static;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
html.ui-v2 .v2-card-heart.v2-detail-heart .v2-card-heart__on,
html.ui-v2 .v2-card-heart.v2-detail-heart .v2-card-heart__off {
  font-size: 18px;
}

/* card title — already mapped to Fraunces by the top-level rule; tighten */
html.ui-v2 .v2-card-title {
  font-family: var(--v2-font-display);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--v2-ink);
  font-variation-settings: 'opsz' 36;
}

/* card price — Fraunces serif, terracotta */
html.ui-v2 .v2-card-price-row { margin-bottom: 4px; }
html.ui-v2 .v2-card-price {
  font-family: var(--v2-font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--v2-accent-ink);
  font-variation-settings: 'opsz' 36;
  white-space: nowrap;
}
html.ui-v2 .v2-card-price--free {
  color: var(--v2-moss);
  font-style: italic;
  font-weight: 500;
}

/* card body — make sure padding stays consistent with v1 inline style */
html.ui-v2 .v2-card-body { padding-top: 10px; }

/* ------- motion: gentle stagger on first paint ------- */
@keyframes v2-rise {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
html.ui-v2 main h1,
html.ui-v2 main > .container > header,
html.ui-v2 .v2-hero__title,
html.ui-v2 .v2-hero__lede,
html.ui-v2 .v2-hero__meta,
html.ui-v2 .v2-chips,
html.ui-v2 .card {
  animation: v2-rise .55s cubic-bezier(.2,.7,.2,1) both;
}
html.ui-v2 .v2-hero__lede { animation-delay: .06s; }
html.ui-v2 .v2-hero__meta { animation-delay: .12s; }
html.ui-v2 .v2-chips      { animation-delay: .18s; }
html.ui-v2 .card:nth-child(2) { animation-delay: .04s; }
html.ui-v2 .card:nth-child(3) { animation-delay: .08s; }
html.ui-v2 .card:nth-child(4) { animation-delay: .12s; }
html.ui-v2 .card:nth-child(5) { animation-delay: .16s; }
html.ui-v2 .card:nth-child(6) { animation-delay: .20s; }

@media (prefers-reduced-motion: reduce) {
  html.ui-v2 *, html.ui-v2 *::before, html.ui-v2 *::after {
    animation: none !important; transition: none !important;
  }
}
