/* Pawberry home: hero (welcome / featured guide / latest), Explore by pet, Phone wallpapers.
   Material: Liquid Glass (tokens + .glass in base.css) over a soft, slowly drifting colour field.
   Scripts: js/home.js (segmented filter, wallpaper marquee). Everything works without JS in its default state. */

.home-hero, .explore, .walls {
  --ease-out-soft: cubic-bezier(.16, 1, .3, 1);
  --leaf-ink: #3f5239;   /* leaf, a step darker: keeps 4.5:1 for small text on leaf-tinted glass */
  --hg-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .18 0 0 0 0 .14 0 0 0 0 .13 0 0 0 .5 0'/></filter><rect width='160' height='160' filter='url(%23n)'/></svg>");
}
.home-hero a, .explore a, .walls a { text-decoration: none; color: inherit; }
.home-hero h1, .home-hero h2, .home-hero h3, .explore h2, .explore h3, .walls h2 { text-wrap: balance; }
.home-hero p, .explore p, .walls p { text-wrap: pretty; margin: 0; }
.home-hero ul, .explore ul, .walls ul { list-style: none; margin: 0; padding: 0; }
.home-hero :where(a, button):focus-visible, .explore :where(a, button):focus-visible, .walls :where(a, button):focus-visible { outline: 2px solid var(--strawberry); outline-offset: 3px; }

.sec-wrap { position: relative; max-width: calc(var(--content-max) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }

.kicker { font: 600 12px/16px var(--font-display); letter-spacing: .09em; text-transform: uppercase; color: var(--jam); }

/* ================= HERO ================= */
.home-hero {
  position: relative; isolation: isolate; overflow: hidden; overflow: clip;
  padding: 176px var(--gutter) 32px;   /* clears ticker + bar + the notch hanging below it, with air */
  background: var(--paper);
}
/* living colour field behind the glass: big soft blobs in the brand palette, slow drift */
.home-hero::before {
  content: ""; position: absolute; inset: -8% -6%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(34% 34% at 36% 30%, rgba(244, 150, 172, .46), transparent 72%),   /* strawberry pink, behind the featured card */
    radial-gradient(30% 30% at 90% 14%, rgba(250, 206, 142, .60), transparent 72%),   /* honey / peach */
    radial-gradient(32% 34% at 82% 66%, rgba(166, 198, 148, .50), transparent 72%),   /* leaf green behind latest */
    radial-gradient(30% 34% at 8% 74%, rgba(212, 190, 238, .44), transparent 72%),    /* a little lilac */
    radial-gradient(28% 26% at 58% 90%, rgba(250, 206, 142, .40), transparent 72%),
    radial-gradient(26% 30% at 56% 34%, rgba(255, 212, 196, .50), transparent 72%);
  -webkit-mask-image: linear-gradient(#000 82%, transparent 98%);
          mask-image: linear-gradient(#000 82%, transparent 98%);
  animation: hh-drift 52s ease-in-out infinite alternate;
  will-change: transform;
}
.home-hero::after {   /* extremely subtle grain */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--hg-grain); opacity: .05; mix-blend-mode: multiply;
}
@keyframes hh-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2.5%, 2%, 0) scale(1.06) rotate(1.2deg); }
}

.hh-wrap {
  position: relative; max-width: var(--content-max); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: stretch;
}

/* welcome */
.hh-welcome { align-self: center; min-width: 0; }
.hh-kicker { font: 600 12.5px/16px var(--font-display); letter-spacing: .09em; text-transform: uppercase; color: var(--jam); margin-bottom: 12px !important; }
.hh-welcome h1 { font: 600 clamp(34px, 3.3vw, 46px) / 1.04 var(--font-display); letter-spacing: -.035em; color: var(--ink); }
.hh-sub { margin-top: 14px !important; font-size: 15.5px; line-height: 1.5; color: var(--ink-muted); max-width: 34ch; }
.hh-links { margin-top: 20px !important; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }

.pill-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 18px; border-radius: 999px;
  font: 600 14.5px/1 var(--font-display); color: var(--paper); cursor: pointer;
  background: linear-gradient(180deg, #c22648, #ab1c3d);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 6px 14px -6px rgba(181, 31, 66, .55);
  transition: background .2s ease, transform .25s var(--ease-out-soft);
}
.home-hero .pill-btn, .home-hero a.pill-btn, .home-hero a.pill-btn:link, .home-hero a.pill-btn:visited, .home-hero a.pill-btn:hover, .home-hero a.pill-btn:active { color: #fff; }   /* beats `.home-hero a { color: inherit }`; white on #ab1c3d-#c22648 is 5.7-7.1:1 */
.home-hero a.pill-btn:hover { background: linear-gradient(180deg, #a21f3f, var(--jam)); }
.pill-btn span[aria-hidden] { transition: transform .25s var(--ease-out-soft); }
.pill-btn:hover span[aria-hidden], .hh-feature:hover .pill-btn span[aria-hidden] { transform: translateX(3px); }
.hh-feature:hover .pill-btn { background: linear-gradient(180deg, #a21f3f, var(--jam)); }
.hh-textlink { font: 600 14.5px/1.2 var(--font-display); color: var(--jam); }
.hh-textlink span, .hl-all span, .sec-link span { display: inline-block; transition: transform .25s var(--ease-out-soft); }
.hh-textlink:hover span, .hl-all:hover span, .sec-link:hover span { transform: translateX(3px); }
.hh-textlink:hover, .hl-all:hover, .sec-link:hover { text-decoration: underline !important; text-underline-offset: 3px; }

.hh-topics { margin-top: 22px; }
.hh-label { font: 600 12px/16px var(--font-display); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px !important; }
.hh-topics ul { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 5px 14px 5px 6px; border-radius: 999px;
  background: var(--lg-sheen), rgba(255, 255, 255, .50);
  -webkit-backdrop-filter: var(--lg-filter); backdrop-filter: var(--lg-filter);
  font: 600 13.5px/1.1 var(--font-display); color: var(--ink);
  box-shadow: 0 0 0 .5px var(--lg-edge), inset 0 1px 0 rgba(255, 255, 255, .9), 0 6px 14px -8px rgba(128, 28, 54, .30);
  transition: transform .25s var(--ease-out-soft), background .2s ease, box-shadow .25s var(--ease-out-soft);
}
.chip::before, .seg::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--lg-rim); opacity: .85;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.chip .pb-icon { --s: 28px; }
.chip:hover { transform: translateY(-2px); background: var(--lg-sheen), rgba(255, 255, 255, .72); box-shadow: 0 0 0 .5px rgba(46, 35, 34, .14), inset 0 1px 0 #fff, 0 10px 18px -8px rgba(128, 28, 54, .34); }

/* glass card (shared by the hero cards and the Explore cards).
   Per-card variables: --tint (r, g, b), --tint-a / --tint-b, --tile-white, --glow (r, g, b). */
.gcard, .ex-card {
  --tile-white: .42;
  --sh: 0 0 0 .5px var(--lg-edge), var(--lg-inner),
    0 1px 2px rgba(var(--glow, 128, 28, 54), .08), 0 12px 30px -10px rgba(var(--glow, 128, 28, 54), .28), 0 26px 44px -26px rgba(43, 26, 16, .20);
  --sh-hover: 0 0 0 .5px rgba(46, 35, 34, .12), var(--lg-inner-hover),
    0 2px 4px rgba(var(--glow, 128, 28, 54), .10), 0 20px 44px -10px rgba(var(--glow, 128, 28, 54), .36), 0 36px 60px -28px rgba(43, 26, 16, .26);
  position: relative; isolation: isolate; overflow: hidden; border-radius: 26px;
  background:
    var(--lg-sheen),
    linear-gradient(160deg, rgba(var(--tint, 255, 255, 255), var(--tint-a, .2)), rgba(var(--tint, 255, 255, 255), var(--tint-b, .08))),
    rgba(255, 255, 255, var(--tile-white));
  -webkit-backdrop-filter: var(--lg-filter); backdrop-filter: var(--lg-filter);
  box-shadow: var(--sh), var(--stack, 0 0 0 0 transparent);
  transition: transform .35s var(--ease-out-soft), box-shadow .35s var(--ease-out-soft), opacity .2s ease, scale .2s ease;
}
.gcard::after, .ex-card::after {   /* specular rim, brightest top-left */
  content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--lg-rim); opacity: .8;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  transition: opacity .35s var(--ease-out-soft);
}
a.stretch::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
a.stretch:focus-visible { outline: none; }
.hh-feature:has(a.stretch:focus-visible), .ex-card:has(a.stretch:focus-visible) { outline: 2px solid var(--strawberry); outline-offset: 3px; }

/* featured guide: pink glass with a photo cover */
.hh-feature {
  --tint: 244, 150, 172; --tint-a: .22; --tint-b: .12; --tile-white: .50; --glow: 181, 31, 66;
  display: flex; flex-direction: column; padding: 10px; min-width: 0;
}
.hh-feature:hover, .hh-feature:focus-within { transform: translateY(-3px); box-shadow: var(--sh-hover); }
.hh-feature:hover::after, .hh-feature:focus-within::after { opacity: 1; }
.hf-cover { position: relative; flex: none; height: 224px; border-radius: 18px; overflow: hidden; background: var(--oat); box-shadow: 0 0 0 .5px rgba(46, 35, 34, .12), 0 8px 18px -10px rgba(43, 26, 16, .35); }
.hf-cover img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform .8s var(--ease-out-soft); }
.hh-feature:hover .hf-cover img { transform: scale(1.04); }
.hf-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 16px 12px 12px; }
.hf-body h2 { margin: 8px 0 8px; font: 600 clamp(26px, 2.4vw, 32px) / 1.08 var(--font-display); letter-spacing: -.028em; color: var(--ink); }
.hf-sum { margin-bottom: 16px !important; font-size: 15.5px; line-height: 1.45; color: var(--ink-muted); max-width: 40ch; }
.hf-body .pill-btn { margin-top: auto; }

/* latest */
.hh-latest { --tint: 255, 255, 255; --tint-a: .14; --tint-b: .06; --tile-white: .38; --glow: 83, 103, 77; display: flex; flex-direction: column; padding: 16px 18px 6px; min-width: 0; }
.hl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 10px; }
.hl-head h2 { font: 600 17px/1.2 var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.hl-all { font: 600 13px/1.2 var(--font-display); color: var(--jam); white-space: nowrap; }
.hl-list { flex: 1; display: flex; flex-direction: column; }
.hl-list li { flex: 1; display: flex; border-top: 1px solid rgba(46, 35, 34, .10); }
.hl-row { flex: 1; display: flex; align-items: center; gap: 12px; margin-inline: -8px; padding: 10px 8px; border-radius: 16px; transition: background .2s ease; }
.hl-row .pb-icon { --s: 36px; }
.hl-text { min-width: 0; display: block; }
.hl-text .kicker { display: block; font-size: 11.5px; }
.hl-title { display: block; margin-top: 3px; font: 600 16.5px/1.25 var(--font-display); letter-spacing: -.015em; color: var(--ink); }
.hl-row:hover { background: rgba(255, 255, 255, .5); }
.hl-row:hover .hl-title { color: var(--jam); }

/* one-time entrance */
.home-hero .rv { opacity: 0; translate: 0 14px; animation: hh-rv .6s var(--ease-out-soft) forwards; animation-delay: calc(var(--i, 0) * 80ms + 40ms); }
@keyframes hh-rv { to { opacity: 1; translate: 0 0; } }

/* ================= SHARED SECTION HEADS ================= */
.explore, .walls { position: relative; isolation: isolate; overflow: hidden; overflow: clip; }
.explore { padding: 56px 0 48px; }
.walls { padding: 40px 0 24px; }
.walls .sec-head { margin-bottom: 8px; }
.explore::before, .walls::before {   /* soft colour field so the glass has something to refract */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent);
          mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent);
}
.explore::before {
  background:
    radial-gradient(26% 30% at 12% 30%, rgba(244, 150, 172, .34), transparent 72%),
    radial-gradient(26% 32% at 50% 78%, rgba(250, 206, 142, .40), transparent 72%),
    radial-gradient(26% 30% at 88% 38%, rgba(166, 198, 148, .38), transparent 72%),
    radial-gradient(22% 26% at 62% 14%, rgba(212, 190, 238, .30), transparent 72%);
}
.walls::before {
  background:
    radial-gradient(30% 36% at 18% 60%, rgba(212, 190, 238, .34), transparent 72%),
    radial-gradient(30% 36% at 52% 40%, rgba(244, 150, 172, .30), transparent 72%),
    radial-gradient(30% 36% at 86% 62%, rgba(250, 206, 142, .38), transparent 72%);
}
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-titles { min-width: 0; }
.sec-head h2 { font: 600 clamp(28px, 3vw, 34px) / 1.1 var(--font-display); letter-spacing: -.03em; color: var(--ink); }
.sec-head p { margin-top: 6px; font-size: 16px; line-height: 1.45; color: var(--ink-muted); }
.sec-link { font: 600 15px/1.2 var(--font-display); color: var(--jam); white-space: nowrap; padding-bottom: 4px; }

/* ================= EXPLORE BY PET ================= */
/* segmented control: the header's navigation bar in miniature. Frosted Liquid Glass bar (same material, radius and rim as
   .header-bar), plain-text tabs in the header nav style, a soft gliding hover pill and a stronger selected pill. */
.seg {
  --seg-x: 0px; --seg-w: 0px; --hx: 0px; --hw: 0px;
  --spring-ui: cubic-bezier(.22, 1.2, .36, 1);
  position: relative; isolation: isolate; display: inline-flex; flex: none; align-items: center; height: 44px; padding: 4px; border-radius: 16px;
  background: var(--lg-sheen), linear-gradient(165deg, rgba(255, 214, 222, .18), rgba(255, 255, 255, 0) 70%), var(--lg-fill-bar);
  -webkit-backdrop-filter: var(--lg-filter); backdrop-filter: var(--lg-filter);
  box-shadow: 0 0 0 .5px var(--lg-edge), var(--lg-inner), var(--lg-drop);
}
.seg-hover, .seg-thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: 9px; pointer-events: none; }
.seg-hover {   /* same soft pill as the header's .nav-hover */
  width: var(--hw); transform: translateX(var(--hx)); background: rgba(46, 35, 34, .075); opacity: 0;
  transition: transform 380ms var(--spring-ui), width 380ms var(--spring-ui), opacity 160ms ease;
}
.seg.has-hover .seg-hover { opacity: 1; }
.seg.is-fresh .seg-hover { transition: opacity 160ms ease; }
.seg-thumb {   /* selected tab: white glass with a hairline and a small shadow */
  width: var(--seg-w); transform: translateX(var(--seg-x));
  background: var(--lg-sheen), linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 251, 246, .88));
  box-shadow: 0 0 0 .5px rgba(46, 35, 34, .14), inset 0 1px 0 #fff, 0 3px 8px -2px rgba(128, 28, 54, .24), 0 1px 2px rgba(43, 26, 16, .12);
}
.seg.is-ready .seg-thumb { transition: transform 420ms var(--spring-ui), width 420ms var(--spring-ui); }
.seg-btn {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; height: 36px; min-width: 0; padding: 0 12px;
  border: 0; border-radius: 9px; background: transparent; cursor: pointer; white-space: nowrap;
  font: 560 14.5px/20px var(--font-display); color: var(--ink);
}
.seg-btn:focus-visible { outline: 2px solid var(--strawberry); outline-offset: 1px; }

.ex-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 22px; }
.ex-card { display: flex; flex-direction: column; align-items: flex-start; padding: 22px 22px 20px; min-width: 0; }
.ex-card[hidden] { display: none; }
.ex-cover {   /* decorative placeholder until Pawberry has article photos: tinted gradient, fine diagonal stripes, soft light */
  position: relative; flex: none; align-self: stretch; display: flex; align-items: center; justify-content: center; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: 14px;
  background:
    radial-gradient(90% 120% at 12% 0%, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .34) 0 1px, rgba(255, 255, 255, 0) 1px 9px),
    linear-gradient(135deg, rgba(var(--tint, 255, 255, 255), .58), rgba(var(--tint, 255, 255, 255), .22)),
    #fff7ed;
  box-shadow: inset 0 0 0 .5px rgba(46, 35, 34, .10), inset 0 1px 0 rgba(255, 255, 255, .8), 0 6px 14px -10px rgba(var(--glow, 128, 28, 54), .45);
  transition: transform .6s var(--ease-out-soft);
}
.ex-cover span { font: 600 11px/16px var(--font-display); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-muted); }
.ex-card .kicker { margin-top: 18px; }
.ex-card h3 { margin-top: 6px; font: 600 20px/1.2 var(--font-display); letter-spacing: -.022em; color: var(--ink); }
.ex-sum { margin-top: 8px !important; font-size: 15px; line-height: 1.45; color: var(--ink-muted); }
.ex-more { margin-top: auto; padding-top: 14px; font: 600 14.5px/1.2 var(--font-display); color: var(--jam); display: inline-flex; gap: 6px; align-items: center; }
.ex-more span { display: inline-block; transition: transform .25s var(--ease-out-soft); }
.ex-card:hover { transform: translateY(-5px); box-shadow: var(--sh-hover), var(--stack, 0 0 0 0 transparent); }
.ex-card:hover::after { opacity: 1; }
.ex-card:hover .ex-more span { transform: translateX(4px); }
.ex-card.is-leave { opacity: 0; scale: .95; transition: opacity .14s ease, scale .14s ease; }
.ex-card.is-enter { animation: ex-in .42s var(--ease-out-soft) both; animation-delay: calc(var(--k, 0) * 45ms); }
@keyframes ex-in { from { opacity: 0; scale: .94; translate: 0 10px; } to { opacity: 1; scale: 1; translate: 0 0; } }

/* tone by pet / topic */
.ex-card[data-tone="cat"]   { --tint: 244, 150, 172; --tint-a: .26; --tint-b: .12; --glow: 181, 31, 66; }
.ex-card[data-tone="dog"]   { --tint: 247, 190, 110; --tint-a: .34; --tint-b: .16; --glow: 201, 140, 60; }
.ex-card[data-tone="small"] { --tint: 160, 196, 142; --tint-a: .34; --tint-b: .16; --glow: 83, 103, 77; }
.ex-card[data-tone="small"] .kicker, .ex-card[data-tone="small"] .ex-more { color: var(--leaf-ink); }
.ex-card[data-tone="care"]  { --tint: 255, 159, 143; --tint-a: .26; --tint-b: .12; --glow: 224, 96, 90; }
.ex-card[data-tone="cozy"]  { --tint: 248, 207, 115; --tint-a: .34; --tint-b: .16; --glow: 201, 141, 31; }
.ex-card[data-tone="finds"] { --tint: 215, 154, 184; --tint-a: .28; --tint-b: .14; --glow: 138, 53, 96; }
.ex-card[data-tone="all"]   { --tint: 212, 190, 238; --tint-a: .30; --tint-b: .14; --glow: 120, 100, 160; }

/* collections: a stack of paper-like glass edges under the card, "Collection" as a small tag */
.ex-card.is-collection { --stack: 0 8px 0 -3px rgba(255, 255, 255, .55), 0 8px 0 -2.5px rgba(46, 35, 34, .08), 0 15px 0 -7px rgba(255, 255, 255, .34), 0 15px 0 -6.5px rgba(46, 35, 34, .06); --tile-white: .34; }
.ex-card.is-collection .kicker { display: inline-block; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .6); box-shadow: inset 0 0 0 .5px rgba(46, 35, 34, .10); }
.ex-card.is-collection[data-tone="small"] .kicker { color: var(--leaf-ink); }
.ex-card.is-collection .ex-more { padding-top: 14px; margin-top: auto; }

/* ================= WALLPAPERS ================= */
.marquee {
  position: relative; padding: 56px var(--gutter) 64px; overflow-x: auto; scrollbar-width: thin;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
}
.marquee-track { display: flex; width: max-content; margin: 0 auto; padding: 0; }
.marquee.is-marquee .marquee-track { margin: 0; }
.wall { flex: none; width: 160px; margin-right: 20px; transition: opacity .3s ease; }
.wall a {
  position: relative; display: block; padding: 4px; border-radius: 22px;
  background: var(--lg-sheen), rgba(255, 255, 255, .42);
  -webkit-backdrop-filter: var(--lg-filter); backdrop-filter: var(--lg-filter);
  box-shadow: 0 0 0 .5px var(--lg-edge), inset 0 1px 0 rgba(255, 255, 255, .85), 0 10px 22px -12px rgba(128, 28, 54, .30);
  transition: transform .45s cubic-bezier(.22, 1.2, .36, 1), box-shadow .45s var(--ease-out-soft);
}
.wall a::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--lg-rim); opacity: .85;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.wall img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; background: var(--oat); }
.wall-cap {
  position: absolute; z-index: 3; left: 10px; right: 10px; bottom: 10px; padding: 8px 10px 9px; border-radius: 14px;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--lg-sheen), rgba(255, 248, 240, .88);
  -webkit-backdrop-filter: var(--lg-filter-strong); backdrop-filter: var(--lg-filter-strong);
  box-shadow: 0 0 0 .5px rgba(46, 35, 34, .12), inset 0 1px 0 rgba(255, 255, 255, .9), 0 8px 18px -8px rgba(43, 26, 16, .4);
  opacity: 0; translate: 0 6px; transition: opacity .25s ease, translate .35s var(--ease-out-soft);
}
.wall-cap strong { font: 600 13.5px/1.2 var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.wall-get { font: 600 12.5px/1.2 var(--font-display); color: var(--jam); }

/* running row: JS duplicates the set, then adds .is-marquee */
.marquee.is-marquee { overflow: hidden; padding-inline: 0; }
.marquee.is-marquee .marquee-track { animation: wall-run var(--marq-dur, 40s) linear infinite; will-change: transform; }
@keyframes wall-run { to { transform: translateX(-50%); } }
.marquee.is-marquee:hover .marquee-track, .marquee.is-marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee.is-kbd .marquee-track { animation: none; transition: transform .5s var(--ease-out-soft); }

/* hovered / focused tile pops out of the row, neighbours dim */
.wall a:focus-visible { outline: none; }
.wall a:focus-visible { transform: translateY(-14px) scale(1.22); z-index: 5; box-shadow: 0 0 0 2px var(--strawberry), inset 0 1px 0 #fff, 0 34px 50px -16px rgba(43, 26, 16, .50), 0 12px 24px -8px rgba(128, 28, 54, .36); }
.wall a:focus-visible .wall-cap { opacity: 1; translate: 0 0; }
.marquee-track:has(a:focus-visible) .wall:not(:has(a:focus-visible)) { opacity: .55; }
@media (hover: hover) {
  .wall a:hover { transform: translateY(-14px) scale(1.22); z-index: 5; box-shadow: 0 0 0 .5px rgba(46, 35, 34, .14), inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, .5), 0 34px 50px -16px rgba(43, 26, 16, .50), 0 12px 24px -8px rgba(128, 28, 54, .36); }
  .wall a:hover::before { opacity: 1; }
  .wall a:hover .wall-cap { opacity: 1; translate: 0 0; }
  .marquee-track:has(a:hover) .wall:not(:has(a:hover)) { opacity: .55; }
}
@media (hover: none) {   /* touch: show the names without a hover */
  .wall-cap { opacity: 1; translate: 0 0; padding: 6px 9px 7px; }
  .wall-get { display: none; }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1080px) {
  .hh-wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hh-welcome { grid-column: 1 / -1; align-self: start; }
  .hh-welcome h1 { font-size: clamp(34px, 5vw, 44px); max-width: 16em; }
  .hh-sub { max-width: 44ch; }
  .home-hero { padding-top: 168px; }
  .hh-topics ul { gap: 8px; }
}
@media (max-width: 980px) {
  .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .hh-wrap { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .home-hero { padding-top: 164px; padding-bottom: 24px; }
  .hh-welcome h1 { font-size: clamp(32px, 9vw, 40px); }
  .hf-cover { height: 200px; }
  .explore { padding: 40px 0 32px; }
  .walls { padding: 28px 0 8px; }
  .sec-head { margin-bottom: 22px; }
  .marquee { padding-top: 52px; padding-bottom: 60px; }
}
@media (min-width: 521px) and (max-width: 680px) {   /* photo beside the text keeps it from being enlarged past ~1.3x */
  .hh-feature { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: stretch; }
  .hf-cover { height: auto; min-height: 260px; }
}
@media (max-width: 620px) {
  .ex-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; grid-auto-rows: auto; }
  .ex-card { padding: 20px; }
  .sec-head { align-items: stretch; }
  .seg { display: grid; grid-template-columns: .7fr .85fr .85fr 1.3fr; width: 100%; }
  .seg-btn { padding: 0 6px; }
}
@media (max-width: 379px) {
  .hh-welcome h1 { font-size: 30px; }
}

/* ================= MOTION / FALLBACKS ================= */
@media (prefers-reduced-motion: reduce) {
  .home-hero::before { animation: none; will-change: auto; }
  .home-hero .rv { animation: none; opacity: 1; translate: none; }
  .gcard, .ex-card, .gcard::after, .ex-card::after, .hf-cover img, .chip, .pill-btn, .seg-thumb, .seg-hover, .ex-cover, .wall a, .wall, .wall-cap { transition: none !important; }
  .hh-feature:hover, .hh-feature:focus-within, .ex-card:hover { transform: none; }
  .ex-card.is-enter { animation: none; }
  .marquee, .marquee.is-marquee { overflow-x: auto; padding-inline: var(--gutter); }
  .marquee.is-marquee .marquee-track { animation: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .gcard, .ex-card { --tile-white: .90; }
  .chip, .seg { background: rgba(255, 255, 255, .85); }
  .wall a { background: rgba(255, 255, 255, .8); }
  .wall-cap { background: rgba(255, 250, 245, .96); }
}
@media (prefers-reduced-transparency: reduce) {
  .gcard, .ex-card, .chip, .seg, .wall a, .wall-cap { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .gcard, .ex-card { --tile-white: .92; }
  .chip, .seg { background: rgba(255, 255, 255, .88); }
  .wall a { background: rgba(255, 255, 255, .85); }
  .wall-cap { background: rgba(255, 250, 245, .98); }
}

.hl-sum { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--ink-muted); }
