/* why-cats.css — billubnb.in/why-cats only (v1.5.0). Phone first. Motion is driven by custom properties that
   /static/js/pages/why-cats.js writes (--walk --bob --lean --blink --heart on the meeting stage, --e on the parts stage).
   Every property defaults to the END state, so without JS or with reduced motion the page shows the finished scene. */
@layer sections {
  .page-why-cats {
    --wc-fur: #A47E57; --wc-stripe: #4B3524; --wc-cream: #EBDDC4; --wc-eye: #8DA559; --wc-ink: #2A1D14; --wc-nose: #D98C80;
    --wc-ear: #E7AFA3; --wc-whisker: #FFF8EE; --wc-tag-dot: #FFF8EE; --wc-heart: #E2675B;
    --wc-collar-toofan: #2A1D14; --wc-collar-tejas: #C8372D;
    --wc-plum: #7A3B5E; --wc-plum-soft: #F4E3EC;
  }

  /* ---------------------------------------------------------------- 1. the meeting ------------------------------------- */
  .wc-meet { position: relative; background:
      radial-gradient(120% 70% at 50% 100%, var(--sun-soft) 0%, transparent 60%),
      linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
  .wc-meet__stage { display: grid; grid-template-rows: auto 1fr auto; min-height: calc(100svh - var(--header-h)); overflow: clip;
    padding-top: var(--space-4); padding-bottom: calc(var(--space-4) + var(--bar-h, 0px)); }
  html.wc-motion .wc-meet { height: 250svh; }
  html.wc-motion .wc-meet__stage { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); min-height: 0; }
  .wc-meet__copy { text-align: center; max-width: 60rem; }
  .wc-meet__copy .crumbs { justify-content: center; }
  .wc-meet h1 { font-size: var(--step-4); line-height: 1.02; margin: var(--space-2) 0 var(--space-3); text-wrap: balance; }
  .wc-h1-em { display: block; font-style: italic; color: var(--amber); font-variation-settings: "SOFT" 100, "WONK" 1; }
  .wc-meet__lead { margin-inline: auto; max-width: 36rem; }
  .wc-meet__steps { list-style: none; padding: 0; margin: var(--space-4) auto 0; max-width: 34rem; display: grid; min-height: 4.6em;
    font-weight: 700; color: var(--ink-2); }
  .wc-meet__steps li { grid-area: 1 / 1; }
  .wc-meet__steps li:not([data-step="3"]) { display: none; }                      /* no motion: the final line only */
  html.wc-motion .wc-meet__steps li { display: block; opacity: 0; visibility: hidden; transition: opacity .45s var(--ease-out), visibility .45s; }
  html.wc-motion [data-step-now="1"] li[data-step="1"], html.wc-motion [data-step-now="2"] li[data-step="2"],
  html.wc-motion [data-step-now="3"] li[data-step="3"] { opacity: 1; visibility: visible; }
  .wc-meet__steps a { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; color: var(--amber); }
  .wc-meet__steps .i { width: 1em; height: 1em; }

  .wc-meet__scene { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: clamp(240px, 52vw, 400px); padding-top: var(--space-4);
    padding-bottom: 2.2rem; }                                       /* room for the names (they hang 1.7rem below; the stage clips) — 1.7.0 */
  /* pinned: the scene is whatever height is left under the copy — size the cats to THAT (container query), never over the text */
  html.wc-motion .wc-meet__scene { min-height: 0; container-type: size; }
  /* 1.29.0 (a guest on a 412-px OPPO F21 Pro: "the sliding names and heart don't position right"): ONE size for the pair, --cat-w, that the
     cats, their names and the heart all derive from — so the heart sits just above the heads and the names never collide, on every phone.
     (Unregistered custom property: the cqh inside resolves where it's used — the cats and the heart, inside the scene container.) */
  .wc-meet__scene { --cat-w: min(40vw, 300px); }
  html.wc-motion .wc-meet__scene { --cat-w: min(40vw, 300px, calc((100cqh - 3rem) * .8)); }
  @media (max-width: 599px) and (min-height: 700px) {            /* tall phones: never shrink the pair below a readable size */
    html.wc-motion .wc-meet__scene { --cat-w: min(40vw, max(108px, calc((100cqh - 3rem) * .8))); }
  }
  .wc-meet__cat { position: relative; width: var(--cat-w); will-change: transform; }
  .wc-meet__cat .wc-cat { display: block; width: 100%; height: auto; overflow: visible; }
  .wc-meet__cat--l { margin-right: -5%; transform: translateX(calc((1 - var(--walk, 1)) * -62vw)) translateY(calc(var(--bob, 0) * 1px)); }
  .wc-meet__cat--r { width: calc(var(--cat-w) * .875); margin-left: -5%;
    transform: translateX(calc((1 - var(--walk, 1)) * 62vw)) translateY(calc(var(--bob, 0) * -1px)); }
  [data-cats-away] .wc-meet__cat { visibility: hidden; }                 /* parked off-screen before the first scroll */
  .wc-meet__cat--l .wc-cat__head { transform: rotate(calc(var(--lean, 1) * 10deg)); }
  .wc-meet__cat--r .wc-cat__head { transform: rotate(calc(var(--lean, 1) * -10deg)); }
  .wc-meet__name { position: absolute; bottom: -1.7rem; white-space: nowrap; font: 800 .85rem/1 var(--font-text);
    letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); opacity: var(--walk, 1); }
  /* each name sits under its own head and leans OUTWARD (Toofan's ends under his head, Tejas's starts under hers): the cat boxes overlap
     when they meet, so names centred on the boxes ran into each other ("TOOFTEJAS") on 360-px phones */
  .wc-meet__cat--l .wc-meet__name { right: 44%; }
  .wc-meet__cat--r .wc-meet__name { left: 40%; }
  .wc-meet__floor { position: absolute; left: 50%; bottom: -6px; width: min(80vw, 560px); height: 22px; transform: translateX(-50%);
    border-radius: 50%; background: radial-gradient(closest-side, rgba(58,42,34,.18), transparent); z-index: -1; }
  /* the heart rises from between the two heads: its bottom = the scene's bottom padding (2.2rem) + Toofan's height (the cat is 200×250) + a gap.
     It used to be 66% of the scene's height — which has nothing to do with the cats, so it sat on Toofan's ear or far above, phone by phone. */
  .wc-heart { position: absolute; left: calc(50% + var(--cat-w) * .03); bottom: calc(2.2rem + var(--cat-w) * 1.25 + .4rem); width: clamp(34px, calc(var(--cat-w) * .26), 70px); height: auto; z-index: 2; pointer-events: none;
    transform: translate(-50%, calc((1 - var(--heart, 1)) * 40px)) scale(calc(.3 + var(--heart, 1) * .7)); opacity: var(--heart, 1);
    filter: drop-shadow(0 8px 14px rgba(226,103,91,.35)); }
  .wc-meet__hint { justify-self: center; display: inline-flex; flex-direction: column; align-items: center; gap: .1rem; min-height: 44px;
    margin-top: var(--space-6); font-weight: 700; font-size: var(--step--1); color: var(--ink-3); text-decoration: none; opacity: calc(1 - var(--walk, 1) * 2.5); }   /* gone before the cats reach it (1.29.0) */
  .wc-meet__hint .i { width: 22px; height: 22px; animation: wc-nudge 1.6s var(--ease) infinite; }
  html:not(.wc-motion) .wc-meet__hint { display: none; }
  /* 1.29.0: the hint floats over the (still empty) floor instead of keeping a 76-px row for itself — it has faded out by the time the cats
     arrive, and that row is room the cats need on phones */
  html.wc-motion .wc-meet__stage { position: sticky; }
  html.wc-motion .wc-meet__hint { position: absolute; left: 50%; bottom: calc(var(--space-3) + var(--bar-h, 0px)); transform: translateX(-50%); margin: 0; }
  /* below 900 px the WhatsApp / Book bar (≈ 66 px) covers the bottom of the pinned stage: keep the cats' names above it.
     (--bar-h was read in four places here but never set; the hint's own row used to hide the problem.) */
  @media (max-width: 899px) { .page-why-cats { --bar-h: calc(68px + env(safe-area-inset-bottom, 0px)); } }
  @media (max-width: 599px) {                                     /* phones: a slightly smaller heading leaves the pair room to be seen */
    html.wc-motion .wc-meet h1 { font-size: clamp(1.95rem, 8.6vw, 2.6rem); margin-bottom: var(--space-2); }
    html.wc-motion .wc-meet__lead { font-size: .95rem; line-height: 1.5; }
    html.wc-motion .wc-meet__steps { margin-top: var(--space-3); }
  }
  @media (max-width: 599px) and (max-height: 859px) {             /* Chrome on Android with its address bar (~412×790): the breadcrumb row goes, the heart stays clear of the caption */
    html.wc-motion .wc-meet .crumbs { display: none; }
  }
  html:not(.wc-motion) .wc-meet__scene { padding-top: calc(var(--space-4) + 3.2rem); }   /* the finished scene: room for the heart above the heads */

  /* the cat parts every scene can move (transform-box so rotations pivot on the part itself) */
  .wc-cat__head, .wc-cat__ears, .wc-cat__eyes, .wc-cat__whiskers, .wc-cat__nose, .wc-cat__tail, .wc-cat__paws, .wc-cat__collar, .wc-cat__lid {
    transform-box: fill-box; }
  .wc-cat__head { transform-origin: 50% 92%; }
  .wc-cat__lid { transform-origin: 50% 0; transform: scaleY(var(--blink, 0)); }
  .wc-cat__tail { transform-origin: 0% 100%; }
  html.wc-motion .wc-meet__cat .wc-cat__tail { animation: wc-tail 2.8s ease-in-out infinite alternate; }
  html.wc-motion .wc-meet__cat--r .wc-cat__tail { animation-duration: 2.1s; }

  /* ---------------------------------------------------------------- 2. the tally ---------------------------------------- */
  .wc-tally { background: var(--sage-deep); color: var(--on-deep); padding: var(--space-6) 0; }
  .wc-tally__row { list-style: none; margin: 0 auto; padding-inline: var(--gutter); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
  .wc-tally li { display: grid; justify-items: center; text-align: center; gap: .15rem; }
  .wc-tally strong { font: 800 var(--step-3)/1 var(--font-display); color: var(--sun); font-variant-numeric: tabular-nums; }
  .wc-tally span { font-weight: 700; color: var(--on-deep-2); font-size: var(--step--1); }

  /* ---------------------------------------------------------------- 3. the case file ------------------------------------ */
  .wc-file { padding-bottom: calc(var(--space-8) + var(--sheet-r)); }
  .wc-legend { margin: 0 0 var(--space-5); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper-3); }
  .wc-legend summary { display: flex; align-items: center; gap: .6rem; min-height: 52px; padding: .4rem var(--space-4); cursor: pointer; font-weight: 800; list-style: none; }
  .wc-legend summary::-webkit-details-marker { display: none; }
  .wc-legend summary .i:last-child { margin-left: auto; transition: transform var(--dur-2); }
  .wc-legend[open] summary .i:last-child { transform: rotate(180deg); }
  .wc-legend__list { list-style: none; margin: 0; padding: 0 var(--space-4) var(--space-4); display: grid; gap: var(--space-3); }
  .wc-legend__list li { display: grid; grid-template-columns: minmax(0, auto) 1fr; align-items: center; gap: var(--space-3); }
  .wc-legend__list li > span:last-child { color: var(--ink-2); }

  .wc-filter { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-6); }
  .wc-chip { display: inline-flex; align-items: center; gap: .45rem; min-height: 46px; padding: .45rem 1rem; border-radius: var(--r-pill);
    border: 1.5px solid var(--line-strong); background: var(--paper-3); color: var(--ink); font: 700 1rem/1.1 var(--font-text); cursor: pointer;
    transition: background-color var(--dur-1), border-color var(--dur-1), transform var(--dur-1); }
  .wc-chip span { font-size: .85rem; padding: .1rem .5rem; border-radius: var(--r-pill); background: var(--paper-2); color: var(--ink-2); }
  .wc-chip:hover { border-color: var(--ink-2); }
  .wc-chip:active { transform: scale(.97); }
  .wc-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
  .wc-chip[aria-pressed="true"] span { background: var(--sun); color: var(--ink); }

  .wc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-7) var(--space-5); }
  .wc-card { position: relative; min-width: 0; }
  .wc-card > article { position: relative; height: 100%; display: flex; flex-direction: column; gap: var(--space-2);
    padding: var(--space-6) var(--space-5) var(--space-5); border-radius: var(--r-md); background: var(--paper-3);
    border: 1px solid var(--line); border-top: 6px solid var(--wc-accent, var(--sage)); box-shadow: var(--shadow-1); }
  .wc-card--good { --wc-accent: var(--sage); --wc-kind-bg: var(--sage-tint); --wc-kind-ink: var(--sage-deep); }
  .wc-card--cute { --wc-accent: var(--blush); --wc-kind-bg: var(--blush-soft); --wc-kind-ink: #8A3B2C; }
  .wc-card--weird { --wc-accent: #C9A2BC; --wc-kind-bg: var(--wc-plum-soft); --wc-kind-ink: var(--wc-plum); }
  .wc-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); margin-top: calc(-1 * var(--space-8)); }
  .wc-card__sticker { flex: 0 0 auto; width: 104px; height: 104px; display: grid; place-items: center; filter: drop-shadow(0 10px 12px rgba(58,42,34,.18));
    transform: rotate(-4deg); transition: transform var(--dur-2) var(--ease-out); }
  .wc-card:nth-child(even) .wc-card__sticker { transform: rotate(4deg); }
  .wc-card__sticker img { width: 104px; height: 104px; object-fit: contain; }
  .wc-paw { width: 64px; height: 64px; padding: 14px; box-sizing: content-box; border-radius: 50%; background: var(--paper-2); fill: var(--wc-accent, var(--sage)); }
  .wc-card:hover .wc-card__sticker { transform: rotate(0) scale(1.06); }
  .wc-card__kind { margin-top: calc(var(--space-8) - .2rem); padding: .3rem .7rem; border-radius: var(--r-pill); background: var(--wc-kind-bg); color: var(--wc-kind-ink);
    font-weight: 800; font-size: .85rem; white-space: nowrap; }
  .wc-card__big { margin: var(--space-2) 0 0; font: 800 var(--step-2)/1 var(--font-display); color: var(--amber); }
  .wc-card h3 { margin: var(--space-1) 0 0; font-size: var(--step-1); line-height: 1.2; text-wrap: balance; }
  .wc-card__body { margin: 0; color: var(--ink-2); }

  .wc-meter { display: flex; align-items: center; gap: 5px; margin: var(--space-1) 0 0; font-weight: 800; font-size: .85rem; color: var(--wc-plum); }
  .wc-meter i { width: 18px; height: 7px; border-radius: 4px; background: var(--line); }
  .wc-meter i.on { background: var(--wc-plum); }
  .wc-meter span { margin-left: .35rem; }
  .wc-meter--legend { display: inline-flex; margin: 0; }

  /* the rubber stamp — HOW WE KNOW. Double ring, slight rotation, inked texture. */
  .wc-stamp { align-self: flex-end; display: inline-block; margin-top: auto; padding: .42em .7em .38em; border: 2.5px solid currentColor; border-radius: 7px;
    box-shadow: inset 0 0 0 2px var(--paper-3), inset 0 0 0 3.5px currentColor; font: 800 .74rem/1.15 var(--font-text); letter-spacing: .08em;
    text-transform: uppercase; text-align: center; max-width: 15rem; transform: rotate(-6deg);
    -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 62%, rgba(0,0,0,.72) 63%, #000 70%), radial-gradient(circle at 75% 70%, #000 58%, rgba(0,0,0,.8) 60%, #000 66%);
    -webkit-mask-composite: source-in; mask-composite: intersect; }
  .wc-stamp--sage { color: var(--sage-deep); }
  .wc-stamp--sun { color: var(--amber); }
  .wc-stamp--plum { color: var(--wc-plum); }
  .wc-stamp--still { align-self: auto; margin: 0; transform: rotate(-3deg); }
  html.wc-motion .wc-card .wc-stamp { opacity: 0; }
  html.wc-motion .wc-card.is-in .wc-stamp { animation: wc-thunk .5s var(--ease-out) .3s forwards; }

  .wc-how { margin-top: var(--space-2); border-top: 1px dashed var(--line-strong); }
  .wc-how summary { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; cursor: pointer; font-weight: 800; color: var(--ink); list-style: none; }
  .wc-how summary::-webkit-details-marker { display: none; }
  .wc-how summary .i { width: 18px; height: 18px; transition: transform var(--dur-2); }
  .wc-how[open] summary .i { transform: rotate(180deg); }
  .wc-how__in { display: grid; gap: var(--space-2); padding-bottom: var(--space-2); color: var(--ink-2); font-size: var(--step--1); }
  .wc-how__in p { margin: 0; }
  .wc-how__src { display: flex; align-items: flex-start; gap: .45rem; }
  .wc-how__src .i { flex: 0 0 auto; width: 18px; height: 18px; margin-top: .15rem; color: var(--amber); }
  .wc-how__src a { color: var(--ink); font-weight: 700; text-underline-offset: .18em; overflow-wrap: anywhere; }
  @supports selector(::details-content) {
    .wc-how { interpolate-size: allow-keywords; }
    .wc-how::details-content { block-size: 0; overflow-y: clip; transition: block-size .35s var(--ease-out), content-visibility .35s allow-discrete; }
    .wc-how[open]::details-content { block-size: auto; }
  }

  /* ---------------------------------------------------------------- 4. take a cat apart --------------------------------- */
  .wc-parts { position: relative; background: var(--paper-2); }
  .wc-parts__stage { display: grid; align-content: start; gap: var(--space-4); padding: var(--space-8) 0 calc(var(--space-6) + var(--bar-h, 0px)); }
  .wc-parts__head { text-align: center; }
  .wc-parts__head h2 { font-size: var(--step-3); margin: var(--space-2) 0; }
  .wc-parts__head .lead { margin-inline: auto; }
  .wc-parts__body { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); display: grid; gap: var(--space-4); }
  .wc-parts__cat { justify-self: center; width: min(46vw, 230px); padding-block: clamp(48px, 13vw, 72px) 34px; }   /* room for the parts to travel */
  .wc-parts__cat .wc-cat { display: block; width: 100%; height: auto; overflow: visible; }
  .wc-parts__cat .wc-cat__ears     { transform: translateY(calc(var(--e, 1) * -34px)); }
  .wc-parts__cat .wc-cat__head     { transform: translateY(calc(var(--e, 1) * -24px)); }
  .wc-parts__cat .wc-cat__eyes     { transform: translateY(calc(var(--e, 1) * -8px)) scale(calc(1 + var(--e, 1) * .14)); transform-origin: 50% 50%; }
  .wc-parts__cat .wc-cat__whiskers { transform: scaleX(calc(1 + var(--e, 1) * .55)); transform-origin: 50% 50%; }
  .wc-parts__cat .wc-cat__nose     { transform: translateY(calc(var(--e, 1) * 12px)) scale(calc(1 + var(--e, 1) * .45)); transform-origin: 50% 50%; }
  .wc-parts__cat .wc-cat__collar   { transform: translateY(calc(var(--e, 1) * 12px)); }
  .wc-parts__cat .wc-cat__tail     { transform: translate(calc(var(--e, 1) * 40px), calc(var(--e, 1) * -14px)) rotate(calc(var(--e, 1) * 18deg)); }
  .wc-parts__cat .wc-cat__paws     { transform: translateY(calc(var(--e, 1) * 28px)); }
  .wc-parts__cat [data-hl] { transition: filter var(--dur-2); }
  .wc-parts__cat .is-hl { filter: drop-shadow(0 0 6px var(--sun)) drop-shadow(0 0 2px var(--sun-deep)); }
  .wc-parts__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
  .wc-part { padding: var(--space-3) var(--space-4); border-radius: var(--r-sm); background: var(--paper-3); border: 1px solid var(--line);
    transition: border-color var(--dur-2), box-shadow var(--dur-2); }
  .wc-part__dot { transition: background-color var(--dur-2), box-shadow var(--dur-2); }
  .wc-part:hover, .wc-part:focus-within { border-color: var(--sun-deep); }
  .wc-part h3 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .2rem; font-size: 1.05rem; }
  .wc-part__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px var(--sun-soft); flex: 0 0 auto; }
  .wc-part p { margin: 0; color: var(--ink-2); font-size: var(--step--1); }
  .wc-part a { color: var(--amber); font-weight: 700; }

  /* ---------------------------------------------------------------- 5. honest small print + CTA --------------------------- */
  .wc-honest__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
  .wc-honest__card { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-5); border-radius: var(--r-md); background: var(--paper-3); border: 1px solid var(--line); }
  .wc-honest__card h3 { margin: 0; font-size: var(--step-1); }
  .wc-honest__card p { margin: 0; color: var(--ink-2); }
  .wc-cta { background: var(--sage-deep); color: var(--on-deep); padding: var(--space-8) 0 calc(var(--space-8) + var(--bar-h, 0px)); }
  .wc-cta__in { display: grid; gap: var(--space-5); align-items: center; }
  .wc-cta h2 { color: var(--on-deep); font-size: var(--step-3); margin: 0 0 var(--space-3); text-wrap: balance; }
  .wc-cta p { color: var(--on-deep-2); margin: 0 0 var(--space-5); max-width: 38rem; }
  .wc-cta__btns { display: flex; flex-wrap: wrap; gap: var(--space-3); }
  .wc-cta__cats { display: flex; justify-content: center; align-items: flex-end; }
  .wc-cta__cats .wc-cat { width: 130px; height: auto; }
  .wc-cta__cats .wc-cat + .wc-cat { width: 112px; margin-left: -18px; }
  .wc-cta .wc-cat__whiskers { stroke: var(--wc-cream); }
  .wc-cta #wc-cta-l .wc-cat__head { transform: rotate(8deg); }
  .wc-cta #wc-cta-r .wc-cat__head { transform: rotate(-8deg); }
  .wc-cta #wc-cta-r .wc-cat__lid { transform: scaleY(.9); }

  /* ---------------------------------------------------------------- larger screens --------------------------------------- */
  @media (min-width: 640px) {
    .wc-tally__row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .wc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wc-card:has(.wc-how[open]) { grid-column: 1 / -1; }                  /* "expand": an opened card takes the full row */
    .wc-honest__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wc-cta__in { grid-template-columns: auto 1fr; }
    .wc-cta__cats .wc-cat { width: 170px; } .wc-cta__cats .wc-cat + .wc-cat { width: 146px; }
  }
  @media (min-width: 900px) and (min-height: 800px) {
    html.wc-motion .wc-parts { height: 230svh; }
    html.wc-motion .wc-parts__stage { position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h)); padding-top: var(--space-5); overflow: clip; }
    /* facts light up one by one — by border + dot, never by fading the text (faded text failed contrast) */
    html.wc-motion .wc-part:not(.is-lit) { border-color: var(--line); }
    html.wc-motion .wc-part:not(.is-lit) .wc-part__dot { background: var(--line-strong); box-shadow: none; }
    html.wc-motion .wc-part.is-lit { border-color: var(--sun-deep); box-shadow: 0 0 0 3px var(--sun-soft); }
    .wc-parts__head h2 { font-size: var(--step-2); }
  }
  @media (min-width: 900px) {
    .wc-meet h1 { font-size: clamp(2.5rem, 1.2rem + 2.5vw, 3.9rem); }
    .wc-meet .wc-h1-em { display: inline; }
    .wc-meet__lead { max-width: 44rem; }
    .wc-parts__body { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); align-items: center; gap: var(--space-6); }
    .wc-part { padding: var(--space-2) var(--space-4); }
    .wc-part p { font-size: .9rem; line-height: 1.45; }
    .wc-parts__cat { width: min(28vw, 330px, 44svh); }
    .wc-parts__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  }
  @media (min-width: 1000px) {
    .wc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .wc-card:has(.wc-how[open]) { grid-column: span 2; }
    .wc-honest__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  }
  @media (min-width: 900px) and (max-height: 800px) {                     /* short laptops: a smaller heading leaves room for the cats */
    .wc-meet h1 { font-size: clamp(2.2rem, 1.2rem + 1.8vw, 3rem); margin-bottom: var(--space-2); }
    .wc-meet__lead { font-size: 1rem; }
    .wc-meet__steps { margin-top: var(--space-2); min-height: 3.2em; }
    .wc-meet__hint { margin-top: var(--space-3); }
  }
  @media (max-width: 639px) {
    .wc-meet h1 { font-size: clamp(2.1rem, 9.5vw, 3rem); }
    .wc-meet__lead { font-size: 1rem; }
  }

  /* ---------------------------------------------------------------- keyframes ------------------------------------------- */
  @keyframes wc-thunk {
    0% { opacity: 0; transform: rotate(-16deg) scale(1.9); }
    55% { opacity: 1; transform: rotate(-5deg) scale(.93); }
    100% { opacity: 1; transform: rotate(-6deg) scale(1); }
  }
  @keyframes wc-tail { from { transform: rotate(-4deg); } to { transform: rotate(6deg); } }
  @keyframes wc-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
  @media (prefers-reduced-motion: reduce) {
    .wc-meet__hint .i, .wc-cat__tail { animation: none !important; }
    .wc-card__sticker, .wc-chip { transition: none; }
  }
}

/* The phone layer renders below-the-fold sections lazily (content-visibility: auto, 900 px placeholder). The case file sits
   right above the "take a cat apart" scene and is ~6× that tall, so its placeholder would make the page jump under the scene —
   render it normally (28 light cards; cheap). Same layer as mobile.css, because a later layer wins regardless of specificity. */
@layer mobile {
  @media (max-width: 899px) {
    html:not(.cv-off) .page-why-cats main > .wc-file { content-visibility: visible; contain-intrinsic-size: none; }
  }
}
