/* Pawberry — header v2: moving bar, frosted (macOS-style) bar, Pets panel, search pill, island, mobile menu, search.
   Depends on tokens and shared classes in base.css. */

.site-header {
  --ticker-h: 32px;
  --bar-top: calc(var(--ticker-h) + 10px);
  --bar-h: 52px;
  --bar-max: 940px;
  /* Liquid Glass material: tokens come from base.css */
  --glass: var(--lg-fill-bar);
  --glass-strong: var(--lg-fill-strong);
  --glass-edge: 0 0 0 0.5px var(--lg-edge), var(--lg-inner);
  --glass-shadow: var(--lg-drop);
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .18 0 0 0 0 .14 0 0 0 0 .13 0 0 0 .55 0'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
  --island-bg: #17100b;
  --spring-ui: cubic-bezier(.22, 1.2, .36, 1);
  /* strawberry paw: toe beans + a strawberry-shaped main pad with cream seeds and a leaf sprout */
  --paw: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g fill='%23f0607d'><ellipse cx='4.6' cy='10.4' rx='2.1' ry='2.6' transform='rotate(-28 4.6 10.4)'/><ellipse cx='8.8' cy='5.6' rx='2.2' ry='2.8' transform='rotate(-10 8.8 5.6)'/><ellipse cx='15.2' cy='5.6' rx='2.2' ry='2.8' transform='rotate(10 15.2 5.6)'/><ellipse cx='19.4' cy='10.4' rx='2.1' ry='2.6' transform='rotate(28 19.4 10.4)'/><path d='M12 22.4c-3.9-1.5-6.9-4.4-6.9-7.6 0-2.9 2.9-4.6 6.9-4.6s6.9 1.7 6.9 4.6c0 3.2-3 6.1-6.9 7.6z'/></g><path d='M12 11.4c-.9-1.3-2.4-1.7-3.6-1.3 1 .9 2.2 1.3 3.6 1.3zm0 0c.9-1.3 2.4-1.7 3.6-1.3-1 .9-2.2 1.3-3.6 1.3z' fill='%239cb38a'/><g fill='%23fff7ed'><ellipse cx='9.6' cy='14.6' rx='.45' ry='.75'/><ellipse cx='14.4' cy='14.6' rx='.45' ry='.75'/><ellipse cx='12' cy='16.6' rx='.45' ry='.75'/><ellipse cx='9.9' cy='18.6' rx='.45' ry='.75'/><ellipse cx='14.1' cy='18.6' rx='.45' ry='.75'/><ellipse cx='12' cy='13.2' rx='.45' ry='.75'/></g></svg>");

  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
@media (min-width: 900px) { .site-header { --bar-h: 56px; } }

/* Shared Liquid Glass material (bar, search panel; mega and mobile menu use the stronger fill) */
.header-bar, .search-panel {
  background:
    var(--lg-sheen),
    linear-gradient(165deg, rgba(255, 214, 222, 0.18), rgba(255, 255, 255, 0) 70%),
    var(--glass);
  -webkit-backdrop-filter: var(--lg-filter);
          backdrop-filter: var(--lg-filter);
  box-shadow: var(--glass-edge), var(--glass-shadow);
}
.search-panel {   /* sits over the dimmed scrim, so it gets the denser fill */
  background:
    var(--lg-sheen),
    linear-gradient(165deg, rgba(255, 214, 222, 0.14), rgba(255, 255, 255, 0) 70%),
    rgba(255, 251, 247, 0.92);
  -webkit-backdrop-filter: blur(30px) saturate(1.9) brightness(1.18);
          backdrop-filter: blur(30px) saturate(1.9) brightness(1.18);
}
/* specular rim (thin ring, brightest top-left) and a whisper of grain */
.header-bar::before, .search-panel::before, .mega::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--lg-rim);
  -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;
}
/* the bar and the menu panel float over the page: light only their top edge, so no bright line runs along the bottom */
.header-bar::before, .mega::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, .45) 45%, rgba(255, 255, 255, 0) 100%);
}
.header-bar::after, .search-panel::after, .mega::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background-image: var(--grain); opacity: 0.06; mix-blend-mode: multiply;
}

/* =================================================================== *
 * 1. Moving bar (ticker)
 * =================================================================== */
.ticker {
  position: relative;
  display: flex; align-items: center;
  height: var(--ticker-h);
  /* Dark strawberry / jam Liquid Glass strip. Fill stays dense enough (~.9) that paper text keeps >= 4.5:1
     even over a white page; the glass read comes from blur, the specular top edge and the soft sheen. */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0) 55%),
    radial-gradient(90% 260% at 14% -60%, rgba(255, 190, 205, 0.16), rgba(255, 190, 205, 0) 62%),
    linear-gradient(180deg, rgba(150, 26, 58, 0.92), rgba(128, 28, 54, 0.94));
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
          backdrop-filter: blur(24px) saturate(1.8);
  color: #fff7ed;
  /* crisp specular top edge, faint bottom hairline, soft strawberry shadow below */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -1px 0 rgba(255, 255, 255, 0.07), 0 1px 0 rgba(90, 14, 36, 0.28), 0 10px 22px -12px rgba(128, 28, 54, 0.55);
}
.ticker::before { /* a whisper of grain on the strip */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain); opacity: 0.05; mix-blend-mode: soft-light;
}
.ticker-viewport {
  flex: 1; min-width: 0; height: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
}
.ticker-track {
  display: flex; align-items: center; width: max-content; height: 100%;
  animation: ticker-scroll var(--ticker-dur, 48s) linear infinite;
}
.ticker-track li { display: flex; align-items: center; flex: none; }
.ticker-track li::after { /* strawberry paw separator: steps left/right like a little walk */
  content: ""; width: 15px; height: 15px; margin: 0 20px;
  background: var(--paw) center / contain no-repeat;
  transform: rotate(-14deg);
  animation: paw-step 1.4s ease-in-out infinite;
}
.ticker-track li:nth-child(even)::after { transform: rotate(14deg) translateY(2px); animation-delay: -0.7s; }
@keyframes paw-step {
  0%, 100% { transform: rotate(-14deg) translateY(0) scale(1); }
  50% { transform: rotate(-4deg) translateY(-2px) scale(1.12); }
}
.ticker-track a {
  display: inline-flex; align-items: baseline; gap: 8px;
  font: 500 13px/18px var(--font-display); color: #fff7ed; text-decoration: none; white-space: nowrap;
  border-radius: 4px;
}
.ticker-track a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ticker-track a:focus-visible { outline: 2px solid #fff7ed; outline-offset: 2px; }
.ticker-kind { font-weight: 600; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #f4d8d8; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }


/* =================================================================== *
 * 2. The bar: floating frosted paper, macOS-like
 * =================================================================== */
.header-bar {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  width: min(var(--bar-max), 100% - 2 * var(--gutter));
  height: var(--bar-h);
  margin: 10px auto 0;
  padding: 0 7px 0 18px;
  border-radius: 16px;
}
.brand { display: flex; align-items: center; flex: none; min-height: var(--touch); border-radius: var(--radius-control); }
.brand img { height: 28px; width: auto; }
@media (min-width: 600px) { .brand img { height: 32px; } }

.header-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }

/* Desktop nav row with a gliding hover pill */
.desk-nav { position: relative; margin-left: 10px; }
.desk-nav ul { position: relative; z-index: 1; display: flex; align-items: center; }
.nav-trigger, .nav-link {
  display: inline-flex; align-items: center; gap: 3px;
  height: 36px; padding: 0 11px; border: 0; border-radius: 9px;
  background: transparent; cursor: pointer;
  font: 560 14.5px/20px var(--font-display); color: var(--ink); text-decoration: none;
}
.nav-trigger svg { width: 14px; height: 14px; opacity: .6; transition: transform 320ms var(--spring-ui), opacity 200ms ease; }
.nav-trigger[aria-expanded="true"] svg { transform: rotate(180deg); opacity: 1; }
/* one pill slides under whichever item is hovered/open (Stripe/Vercel-style) */
.nav-hover {
  position: absolute; z-index: 0; top: 50%; left: 0; height: 36px; width: var(--hw, 0px);
  transform: translate(var(--hx, 0px), -50%); border-radius: 9px;
  background: rgba(46, 35, 34, 0.075); opacity: 0;
  transition: transform 380ms var(--spring-ui), width 380ms var(--spring-ui), opacity 160ms ease;
}
.desk-nav.has-hover .nav-hover { opacity: 1; }
.desk-nav.is-fresh .nav-hover { transition: opacity 160ms ease; }

/* =================================================================== *
 * 4. Mega panel: one frosted surface that morphs between menus
 * =================================================================== */
.mega {
  --mw: 640px; --mh: 300px; --mx: 0px; --cx: 50%;
  position: absolute; top: calc(var(--bar-top) + var(--bar-h) + 10px); left: 0;
  width: var(--mw); height: var(--mh);
  transform: translateX(var(--mx));
  border-radius: 22px;
  background:
    var(--lg-sheen),
    linear-gradient(165deg, rgba(255, 214, 222, 0.16), rgba(255, 255, 255, 0) 70%),
    var(--glass-strong);
  -webkit-backdrop-filter: var(--lg-filter-strong); backdrop-filter: var(--lg-filter-strong);
  box-shadow: var(--glass-edge), var(--glass-shadow);
  transition: width 460ms var(--spring-ui), height 460ms var(--spring-ui), transform 460ms var(--spring-ui);
}
.mega[hidden] { display: none; }
/* first open: drop in from the bar (no morph) */
.mega.is-fresh { transition: none; }
.mega { opacity: 0; translate: 0 -10px; scale: .97; filter: blur(6px); transform-origin: var(--cx) 0; }
.mega.is-open { opacity: 1; translate: 0 0; scale: 1; filter: blur(0); transition: width 460ms var(--spring-ui), height 460ms var(--spring-ui), transform 460ms var(--spring-ui), opacity 200ms ease, translate 420ms var(--spring-ui), scale 420ms var(--spring-ui), filter 260ms ease; }
.mega.is-closing { opacity: 0; translate: 0 -6px; scale: .985; filter: blur(4px); transition: opacity 160ms ease, translate 200ms ease, scale 200ms ease, filter 160ms ease; }
.mega-caret { display: none; }   /* no pointer triangle: the panel drops straight from the bar */
.mega-stage { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: inherit; }
.mega-view {
  position: absolute; top: 0; left: 0; display: flex; gap: 14px; padding: 14px; width: max-content;
  opacity: 0; visibility: hidden; transform: translateX(calc(var(--from, 0) * 36px));
  transition: opacity 220ms ease, transform 420ms var(--spring-ui), visibility 0s linear 220ms;
}
.mega-view.is-current { opacity: 1; visibility: visible; transform: none; transition-delay: 40ms, 0s, 0s; }
.mega-view.is-leaving { opacity: 0; transform: translateX(calc(var(--to, 0) * -36px)); }

.mv-col { display: grid; align-content: start; gap: 2px; width: 236px; }
.mv-title { padding: 6px 10px 6px; font: 600 11px/16px var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.mv-pet, .mv-topic, .mv-cat {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px;
  color: var(--ink); text-decoration: none; transition: background-color 160ms ease;
}
.mv-cat { display: grid; gap: 1px; }
.mv-pet:hover, .mv-topic:hover, .mv-cat:hover, .mv-list a:hover { background: rgba(46, 35, 34, 0.06); }
.mv-pet .pb-icon, .mv-topic .pb-icon { transition: transform 300ms var(--spring-ui); }
.mv-pet:hover .pb-icon, .mv-topic:hover .pb-icon { transform: scale(1.08) rotate(-3deg); }
.mv-pet span, .mv-topic span:last-child { display: grid; gap: 1px; }
.mv-pet strong, .mv-topic strong, .mv-cat strong { font: 600 15px/19px var(--font-display); letter-spacing: -.01em; }
.mv-pet small, .mv-topic small, .mv-cat small { font: 400 13px/18px var(--font-body); color: var(--ink-muted); }

.mv-feature {
  display: grid; align-content: start; gap: 6px; width: 220px; padding: 10px; border-radius: 16px;
  background: rgba(255,255,255,.62); box-shadow: inset 0 0 0 .5px rgba(46,35,34,.1), inset 0 1px 0 rgba(255,255,255,.95), 0 6px 14px -8px rgba(128,28,54,.16);
  color: var(--ink); text-decoration: none;
}
.mv-feature-art { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; margin-bottom: 4px; color: var(--strawberry); background: radial-gradient(80% 80% at 30% 20%, #fff, transparent 60%), linear-gradient(160deg, #fbe6e6, var(--petal)); }
.mv-feature-art .pb-icon { transition: transform 500ms var(--spring-ui); }
.mv-feature:hover .mv-feature-art .pb-icon { transform: scale(1.08) rotate(-4deg); }
.mv-feature-title { font: 600 15px/19px var(--font-display); letter-spacing: -.01em; }
.mv-more { font: 560 13px/18px var(--font-display); color: var(--strawberry); }
.mv-more span { display: inline-block; transition: transform 200ms ease; }
.mv-feature:hover .mv-more span { transform: translateX(3px); }

.mv-list { width: 280px; }
.mv-list a { display: grid; gap: 2px; padding: 9px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; font: 600 14.5px/19px var(--font-display); letter-spacing: -.01em; transition: background-color 160ms ease; }
.mv-list .category { font-size: 11px; }

.mv-walls { display: flex; gap: 10px; padding: 4px 4px 4px 0; }
.mv-walls a { display: grid; gap: 6px; width: 96px; color: var(--ink); text-decoration: none; font: 560 12.5px/16px var(--font-display); }
.mv-walls img { width: 96px; height: 170px; object-fit: cover; border-radius: 12px; box-shadow: 0 1px 2px rgba(43,26,16,.15); transition: transform 320ms var(--spring-ui), box-shadow 320ms ease; }
.mv-walls a:nth-child(1) img { transform: rotate(-3deg); }
.mv-walls a:nth-child(3) img { transform: rotate(3deg); }
.mv-walls a:hover img { transform: translateY(-4px) rotate(0); box-shadow: 0 10px 24px rgba(43,26,16,.22); }

.mega a:focus-visible { outline: 2px solid var(--strawberry); outline-offset: 1px; }

/* Search pill (macOS Spotlight-like) */
.search-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 6px 0 11px; border: 0; border-radius: 10px; cursor: pointer;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 0 0 0.5px rgba(46, 35, 34, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -6px 10px -8px rgba(128, 28, 54, 0.12);
  color: var(--ink-muted); font: 500 14px/20px var(--font-display);
  transition: background-color var(--dur-ui) var(--ease-out);
}
.search-toggle:hover, .search-toggle[aria-expanded="true"] { background: rgba(255, 255, 255, 0.78); color: var(--ink); }
.search-toggle svg { width: 17px; height: 17px; }
.search-toggle-label { min-width: 64px; text-align: left; }
.search-toggle-kbd {
  padding: 1px 6px; border-radius: 6px; font: 600 11px/18px var(--font-display); color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.7); box-shadow: 0 0 0 0.5px rgba(46, 35, 34, 0.18), 0 1px 0 rgba(46, 35, 34, 0.08);
}

/* Menu icon swap */
.menu-toggle .menu-close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-lines { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close { display: inline; }
.menu-toggle:hover, .menu-toggle[aria-expanded="true"] { background: rgba(46, 35, 34, 0.07); }
@media (min-width: 900px) { .menu-toggle { display: none; } }

/* =================================================================== *
 * 3. Notch island, attached under the bar (Dynamic Island / macOS notch).
 *    .notch is the black shape. While it moves, js/header.js drives its
 *    width, height and bottom radius every frame from a damped-spring
 *    solver (inline styles, class .is-anim territory); at rest the same
 *    values come from the CSS end states below (collapsed by default,
 *    .is-rest-open when open), so the hand-off is seamless.
 *    Its contents sit inside .notch-clip (overflow hidden, anchored
 *    top-centre) at their final size, so growth reveals them without
 *    reflow. The concave "ears" where the shape meets the bar are
 *    ::before/::after on .notch itself (outside the clip), so they stay
 *    attached to its sides and follow it while it grows and shrinks.
 *    Classes on .notch-shell:
 *      is-open      logical state (set at once)
 *      is-expanded  pill hidden (set at open, cleared near the end of closing)
 *      is-panel     panel content visible (set ~60% into opening, cleared first on close)
 *      is-rest-open the spring has settled open
 * =================================================================== */
.notch-shell {
  --cw: 180px; --ch: 30px; --cr: 15px;          /* collapsed pill */
  --ow: 430px; --oh: 200px; --or: 32px;          /* open panel */
  --ear: 12px;                                   /* concave fillet where the shape meets the bar */
  --n-ease: cubic-bezier(.22, 1, .36, 1);
  position: absolute; top: 100%; left: 0; right: 0; height: 0; z-index: 3;
  container-type: inline-size;
  pointer-events: none;
}

/* invisible hover bridge so the tiny pill is easy to hit */
.notch-hit {
  position: absolute; top: -1px; left: 50%; z-index: 0;
  width: calc(var(--cw) + 28px); margin-left: calc((var(--cw) + 28px) / -2);
  height: calc(var(--ch) + 12px);
  pointer-events: auto;
}

/* the black shape: flush to the bar's bottom edge (1px tucked under it), no borders or seams.
   --np (0..1) is the open progress; it scales the shadow. */
.notch {
  --np: 0;
  position: absolute; top: -1px; left: 0; right: 0; z-index: 1;
  width: var(--cw); height: calc(var(--ch) + 1px); margin: 0 auto;
  border-radius: 0 0 var(--cr) var(--cr);
  background: #000; color: #fff;
  box-shadow:
    0 calc(8px + 22px * var(--np)) calc(14px + 30px * var(--np)) calc(-8px - 10px * var(--np)) rgba(0, 0, 0, calc(.38 + .12 * var(--np))),
    0 calc(12px * var(--np)) calc(22px * var(--np)) calc(-12px * var(--np)) rgba(0, 0, 0, calc(.34 * var(--np)));
  pointer-events: auto;
}
.notch-shell.is-rest-open .notch {
  --np: 1;
  width: var(--ow); height: calc(var(--oh) + 1px);
  border-radius: 0 0 var(--or) var(--or);
}
.notch-clip { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }

/* Ears: quarter-circle cut-outs, pure black like the shape. 1px tucked up under the bar and 1px
   into the body, so no seam or hairline can show; the radial edge is anti-aliased over 0.5px. */
.notch::before, .notch::after {
  content: ""; position: absolute; top: 0; z-index: 1;
  width: calc(var(--ear) + 1px); height: calc(var(--ear) + 1px);
  pointer-events: none;
}
.notch::before { right: calc(100% - 1px); background: radial-gradient(circle at 0 100%, transparent calc(var(--ear) - 0.5px), #000 var(--ear)); }
.notch::after  { left:  calc(100% - 1px); background: radial-gradient(circle at 100% 100%, transparent calc(var(--ear) - 0.5px), #000 var(--ear)); }

/* ---- collapsed pill: "live activity" ---- */
.notch-pill {
  position: absolute; top: 1px; left: 50%; z-index: 1;
  width: var(--cw); height: var(--ch); margin-left: calc(var(--cw) / -2);
  display: flex; align-items: center; gap: 8px;
  padding: 0 10px 0 6px; border: 0; border-radius: 0 0 var(--cr) var(--cr);
  background: transparent; color: #fff; cursor: pointer; text-align: left;
  font: 600 11.5px/14px var(--font-display); letter-spacing: -0.005em;
  -webkit-tap-highlight-color: transparent;
  transform-origin: 50% 0;
  /* comes back (JS clears .is-expanded near the end of closing) */
  transition: opacity 180ms ease, transform 260ms var(--n-ease), filter 180ms ease;
}
.notch-shell.is-expanded .notch-pill {
  opacity: 0; transform: scale(.9); filter: blur(3px); pointer-events: none;
  transition: opacity 90ms ease, transform 140ms ease, filter 90ms ease;
}
.notch-pill:focus-visible { outline: 2px solid var(--petal); outline-offset: -3px; }
.notch-thumb { flex: none; width: 20px; height: 20px; border-radius: 6px; overflow: hidden; background: #26201c; }
.notch-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.notch-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255, 255, 255, .92); }

.notch-live { position: relative; flex: none; display: grid; place-items: center; width: 18px; height: 18px; }
.notch-live > * { grid-area: 1 / 1; transition: opacity 240ms ease, scale 320ms var(--n-ease); }
.notch-eq { display: flex; align-items: center; justify-content: center; gap: 2px; height: 14px; }
.notch-eq i {
  display: block; width: 3px; height: 5px; border-radius: 1.5px; background: var(--petal);
  animation: notch-eq 1.15s ease-in-out infinite;
}
.notch-eq i:nth-child(1) { animation-duration: 1.05s; animation-delay: -.30s; }
.notch-eq i:nth-child(2) { animation-duration: 0.85s; animation-delay: -.75s; }
.notch-eq i:nth-child(3) { animation-duration: 1.25s; animation-delay: -.10s; }
.notch-eq i:nth-child(4) { animation-duration: 0.95s; animation-delay: -.55s; }
@keyframes notch-eq { 0%, 100% { height: 4px; } 28% { height: 13px; } 52% { height: 7px; } 78% { height: 11px; } }
.notch-shell.is-expanded .notch-eq i { animation-play-state: paused; }
.notch-ring { width: 18px; height: 18px; transform: rotate(-90deg); opacity: 0; scale: .6; }
.notch-ring circle { fill: none; stroke-width: 2.3; }
.ring-track { stroke: rgba(255, 255, 255, .2); }
.ring-bar { stroke: var(--petal); stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 100; }
.notch-shell.is-reading .notch-eq { opacity: 0; scale: .6; }
.notch-shell.is-reading .notch-ring { opacity: 1; scale: 1; }

/* ---- status island: label swaps and confirmations ----
   --cw is registered so the pill (and the black shape, hover bridge and ears, which all read it)
   can grow for a toast with a springy overshoot, then shrink back. */
@property --cw { syntax: "<length>"; inherits: true; initial-value: 180px; }
.notch-shell { transition: --cw 560ms cubic-bezier(.32, 1.42, .52, 1); }
.notch-shell.is-toast { --cw: var(--tw, 240px); }
.notch-shell:not(.is-toast) { transition-timing-function: cubic-bezier(.32, 1.2, .52, 1); transition-duration: 460ms; }

.notch-thumb, .notch-label, .notch-live {
  transition: opacity 180ms ease, filter 180ms ease, transform 260ms var(--n-ease);
}
.notch-pill.is-swap .notch-thumb, .notch-pill.is-swap .notch-label { opacity: 0; filter: blur(3px); transform: translateY(-3px); }

.notch-toast {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 14px; white-space: nowrap; pointer-events: none;
  opacity: 0; filter: blur(4px); transform: scale(.94);
  transition: opacity 150ms ease, filter 150ms ease, transform 300ms var(--n-ease);
}
.notch-shell.is-toast .notch-toast { opacity: 1; filter: none; transform: none; transition-delay: 140ms; }
.notch-shell.is-toast .notch-thumb, .notch-shell.is-toast .notch-label, .notch-shell.is-toast .notch-live {
  opacity: 0; filter: blur(3px); transition-duration: 110ms;
}
.nt-ico {
  flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  background: #34c06a; color: #fff;
}
.notch-toast[data-icon="link"] .nt-ico, .notch-toast[data-icon="mail"] .nt-ico { background: var(--strawberry); }
.nt-ico svg { width: 12px; height: 12px; }
.notch-toast[data-icon="check"] .nt-ico svg { stroke-width: 2.6; }
.nt-text { flex: none; color: #fff; }
.notch-shell.is-toast .nt-ico { animation: nt-pop 520ms cubic-bezier(.32, 1.6, .5, 1) 140ms both; }
@keyframes nt-pop { from { transform: scale(.4); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .notch-shell, .notch-shell:not(.is-toast) { transition: none; }
  .notch-shell.is-toast .nt-ico { animation: none; }
}

/* ---- open panel: always laid out at the full size ---- */
.notch-panel {
  position: absolute; top: 1px; left: 50%; z-index: 2;
  width: var(--ow); height: var(--oh); margin-left: calc(var(--ow) / -2);
  box-sizing: border-box; padding: 18px 24px 0;
  visibility: hidden; opacity: 0; transform: translateY(-4px); filter: blur(6px);
  pointer-events: none;
  /* closing: content leaves first (~100ms) */
  transition: opacity 100ms ease, transform 100ms ease, filter 100ms ease, visibility 0s linear 100ms;
}
/* visible (so it can take focus) as soon as it is open; the fade-in starts with .is-panel (~60% into the spring) */
.notch-shell.is-open .notch-panel { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.notch-shell.is-panel .notch-panel {
  opacity: 1; transform: none; filter: none;
  transition: opacity 220ms ease, transform 220ms var(--n-ease), filter 220ms ease, visibility 0s;
}
.notch-pages { position: relative; height: 142px; }
.notch-page {
  position: absolute; inset: 0; display: grid; align-content: start;
  opacity: 0; visibility: hidden; transform: translateX(26px); filter: blur(4px);
  transition: opacity 180ms ease, transform 380ms var(--n-ease), filter 180ms ease, visibility 0s linear 180ms;
}
.notch-page.is-before { transform: translateX(-26px); }
.notch-page.is-current { opacity: 1; visibility: visible; transform: none; filter: none; transition-delay: 60ms, 0s, 60ms, 0s; }

/* shared text */
.np-kicker { display: block; font: 600 10.5px/16px var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-title { display: block; font: 600 15px/20px var(--font-display); letter-spacing: -0.01em; color: #fff; }
.np-track { display: block; flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.np-fill { display: block; width: 100%; height: 100%; border-radius: inherit; background: #fff; transform: scaleX(var(--p, 0)); transform-origin: 0 50%; transition: transform 480ms var(--n-ease); }
.np-seek { display: flex; align-items: center; gap: 10px; }
.np-count { flex: none; font: 600 11px/14px var(--font-display); color: rgba(255, 255, 255, .55); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* page 1: Featured story player */
.np-story { display: grid; gap: 10px; align-content: start; }
.np-body { display: flex; align-items: center; gap: 14px; min-width: 0; transition: opacity 240ms ease, transform 420ms var(--n-ease), filter 240ms ease; }
.np-body.is-out { opacity: 0; transform: translateX(calc(var(--sd, 1) * -18px)); filter: blur(3px); transition-duration: 140ms, 140ms, 140ms; transition-timing-function: ease; }
.np-body.is-in { opacity: 0; transform: translateX(calc(var(--sd, 1) * 18px)); filter: blur(3px); transition: none; }
.np-art { flex: none; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: #26201c; }
.np-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.np-text { display: grid; gap: 1px; min-width: 0; flex: 1; }
.np-story .np-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.np-transport { display: flex; align-items: center; justify-content: center; gap: 14px; }
.np-btn {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: rgba(255, 255, 255, .86); cursor: pointer;
  transition: background-color 160ms ease, transform 200ms var(--n-ease), color 160ms ease;
}
.np-btn svg { width: 20px; height: 20px; }
.np-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.np-btn:active { transform: scale(.9); }
.np-open {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 20px 0 22px; border-radius: 999px;
  background: #fff; color: #000; text-decoration: none; font: 600 14px/20px var(--font-display); letter-spacing: -0.005em;
  transition: background-color 160ms ease, transform 200ms var(--n-ease);
}
.np-open svg { width: 14px; height: 14px; transition: transform 240ms var(--n-ease); }
.np-open:hover { background: var(--petal); }
.np-open:hover svg { transform: translateX(2px); }
.np-open:active { transform: scale(.95); }

/* page 2: Reading */
.np-reading { display: grid; gap: 14px; align-content: start; padding-top: 2px; }
.np-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.np-titles { display: grid; min-width: 0; flex: 1; }
.np-title-lg { font-size: 17px; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-percent { flex: none; font: 600 34px/36px var(--font-display); letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.np-reading .np-fill { transition-duration: 160ms; transition-timing-function: linear; }
.np-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.np-chip {
  height: 36px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .12); color: #fff; font: 560 13px/18px var(--font-display);
  transition: background-color 160ms ease, transform 200ms var(--n-ease);
}
.np-chip:hover { background: rgba(255, 255, 255, .2); }
.np-chip:active { transform: scale(.96); }

/* page 3: Explore (text only) */
.notch-page[data-page="explore"] { gap: 10px; padding-top: 0; }
.np-pets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.np-pet {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 96px; padding: 12px 13px 13px; border-radius: 18px;
  background: rgba(255, 255, 255, .09); color: #fff; text-decoration: none;
  font: 600 15px/19px var(--font-display); letter-spacing: -0.01em;
  transition: background-color 160ms ease, transform 260ms var(--n-ease);
}
.np-pet-go { align-self: flex-end; font: 500 15px/16px var(--font-display); color: rgba(255, 255, 255, .45); transition: transform 260ms var(--n-ease), color 160ms ease; }
.np-pet-name { overflow-wrap: anywhere; }
.np-pet:hover { background: rgba(255, 255, 255, .17); }
.np-pet:hover .np-pet-go { color: #fff; transform: translate(2px, -2px); }
.np-pet:active { transform: scale(.97); }

/* page dots */
.notch-dots { display: flex; align-items: center; justify-content: center; height: 40px; }
.notch-dots button { position: relative; width: 24px; height: 28px; padding: 0; border: 0; border-radius: 10px; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.notch-dots i {
  position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; border-radius: 999px;
  translate: -50% -50%; background: rgba(255, 255, 255, .28);
  transition: width 360ms var(--n-ease), background-color 200ms ease;
}
.notch-dots button:hover i { background: rgba(255, 255, 255, .55); }
.notch-dots button[aria-selected="true"] i { width: 16px; background: #fff; }

.np-btn:focus-visible, .np-open:focus-visible, .np-chip:focus-visible, .np-pet:focus-visible, .notch-dots button:focus-visible { outline: 2px solid var(--petal); outline-offset: 2px; }

/* phone: smaller pill, island nearly as wide as the bar (capped on tablets). It is inset by the bar's 16px corner
   radius so the ears land on the straight part of the bar's bottom edge. */
@media (max-width: 899.98px) {
  .notch-shell { --cw: 140px; --ch: 28px; --cr: 14px; --ow: min(calc(100vw - 2 * var(--gutter) - 32px), 460px); --or: 30px; --ear: 10px; }
  .notch-thumb { width: 18px; height: 18px; border-radius: 5px; }
  .notch-pill { gap: 7px; padding: 0 9px 0 5px; font-size: 11px; }
  .notch-panel { padding: 18px 20px 0; }
}
@supports (width: 1cqw) {
  @media (max-width: 899.98px) { .notch-shell { --ow: min(100cqw - 32px, 460px); } }
}
@media (pointer: coarse) {
  .np-btn { width: 44px; height: 44px; }
  .np-open { height: 44px; }
  .np-chip { height: 40px; }
}

/* =================================================================== *
 * 5. Phone (<900px): wordmark, search icon, menu; menu = accordions
 * =================================================================== */
.mobile-menu { display: none; }
@media (max-width: 899.98px) {
  .desk-nav, .mega { display: none !important; }
  .search-toggle { width: var(--touch); height: var(--touch); padding: 0; justify-content: center; background: transparent; box-shadow: none; color: var(--ink); }
  .search-toggle-label, .search-toggle-kbd { display: none; }
  .header-tools { gap: 0; }

  .mobile-menu {
    display: block;
    position: absolute; top: calc(var(--bar-top) + var(--bar-h) + 10px);
    left: var(--gutter); right: var(--gutter);
    max-height: calc(100dvh - var(--bar-top) - var(--bar-h) - 24px); overflow-y: auto; overscroll-behavior: contain;
    padding: 6px 8px; border-radius: 22px;
    background:
      var(--lg-sheen),
      linear-gradient(165deg, rgba(255, 214, 222, 0.16), rgba(255, 255, 255, 0) 70%),
      var(--glass-strong);
    -webkit-backdrop-filter: var(--lg-filter-strong); backdrop-filter: var(--lg-filter-strong);
    /* rim as inset lights (a ::before ring would scroll with the menu) */
    box-shadow: var(--glass-edge), inset 1px 0 0 rgba(255, 255, 255, 0.45), inset -1px 0 0 rgba(255, 255, 255, 0.25), var(--glass-shadow);
    transform-origin: 90% 0;
    opacity: 0; visibility: hidden; translate: 0 -10px; scale: .96; filter: blur(6px);
    transition: opacity 180ms ease, translate 200ms ease, scale 200ms ease, filter 180ms ease, visibility 0s linear 200ms;
  }
  .site-header.is-menu-open .mobile-menu {
    opacity: 1; visibility: visible; translate: 0 0; scale: 1; filter: blur(0);
    transition: opacity 220ms ease, translate 460ms var(--spring-ui), scale 460ms var(--spring-ui), filter 260ms ease, visibility 0s;
  }
  /* rows cascade in */
  .mobile-menu > * { opacity: 0; translate: 0 -6px; transition: opacity 200ms ease, translate 360ms var(--spring-ui); }
  .site-header.is-menu-open .mobile-menu > * { opacity: 1; translate: 0 0; }
  .site-header.is-menu-open .mobile-menu > :nth-child(1) { transition-delay: 40ms; }
  .site-header.is-menu-open .mobile-menu > :nth-child(2) { transition-delay: 80ms; }
  .site-header.is-menu-open .mobile-menu > :nth-child(3) { transition-delay: 120ms; }
  .site-header.is-menu-open .mobile-menu > :nth-child(4) { transition-delay: 160ms; }

  .mm-group + .mm-group, .mm-group + .mm-link { border-top: 1px solid rgba(46, 35, 34, 0.08); }
  .mm-head, .mm-link {
    display: flex; align-items: center; justify-content: space-between; width: 100%; height: 52px; padding: 0 12px;
    border: 0; border-radius: 12px; background: transparent; cursor: pointer; text-decoration: none;
    font: 600 17px/22px var(--font-display); letter-spacing: -.01em; color: var(--ink);
  }
  .mm-head svg { width: 16px; height: 16px; opacity: .6; transition: transform 360ms var(--spring-ui); }
  .mm-head[aria-expanded="true"] svg { transform: rotate(180deg); }
  .mm-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 420ms var(--spring-ui); }
  .mm-head[aria-expanded="true"] + .mm-body { grid-template-rows: 1fr; }
  .mm-inner { min-height: 0; overflow: hidden; display: grid; gap: 2px; padding: 0 4px; }
  .mm-head[aria-expanded="true"] + .mm-body .mm-inner { padding-bottom: 10px; }
  .mm-inner a {
    display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 10px; border-radius: 10px;
    font: 500 16px/20px var(--font-display); color: var(--ink); text-decoration: none;
    opacity: 0; translate: 0 -4px; transition: opacity 200ms ease, translate 300ms var(--spring-ui), background-color 160ms ease;
  }
  .mm-head[aria-expanded="true"] + .mm-body .mm-inner a { opacity: 1; translate: 0 0; }
  .mm-head[aria-expanded="true"] + .mm-body .mm-inner a:nth-child(2) { transition-delay: 30ms; }
  .mm-head[aria-expanded="true"] + .mm-body .mm-inner a:nth-child(3) { transition-delay: 60ms; }
  .mm-head[aria-expanded="true"] + .mm-body .mm-inner a:nth-child(4) { transition-delay: 90ms; }
  .mm-head[aria-expanded="true"] + .mm-body .mm-inner a:nth-child(5) { transition-delay: 120ms; }
  .mm-head[aria-expanded="true"] + .mm-body .mm-inner a:nth-child(6) { transition-delay: 150ms; }
  .mm-inner a:hover, .mm-head:hover, .mm-link:hover { background: rgba(46, 35, 34, 0.06); }
  .mm-pet .pb-icon { --s: 30px; }
}
@media (max-width: 380px) {
  .header-bar { padding-left: 14px; }
  .brand img { height: 26px; }
}

/* =================================================================== *
 * 6. Search panel and results
 * =================================================================== */
.search-panel {
  position: absolute;
  top: calc(var(--bar-top) + var(--bar-h) + 8px);
  right: max(var(--gutter), calc((100% - var(--bar-max)) / 2));
  width: min(560px, 100% - 2 * var(--gutter));
  padding: 14px; border-radius: 20px;
  opacity: 0; transform: translateY(-6px);
  transition: opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out);
}
.search-panel[hidden] { display: none; }
.search-panel.is-open { opacity: 1; transform: none; }
.search-field {
  position: relative;
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 12px;
  background: rgba(255, 255, 255, 0.85); border: 0; border-radius: 12px;
  box-shadow: inset 0 0 0 0.5px rgba(46, 35, 34, 0.18), inset 0 1px 2px rgba(46, 35, 34, 0.06);
  transition: box-shadow var(--dur-ui) var(--ease-out);
}
.search-field:focus-within { box-shadow: 0 0 0 2px var(--strawberry); }
.search-field > svg { flex: none; width: 18px; height: 18px; color: var(--ink-muted); }
.search-field input {
  flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; outline: 0; background: transparent;
  font: 400 16px/24px var(--font-display); color: var(--ink); -webkit-appearance: none; appearance: none;
}
.search-field input::placeholder { color: var(--ink-muted); opacity: 0.85; }
.search-field input::-webkit-search-cancel-button, .search-field input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search-esc {
  flex: none; padding: 1px 6px; cursor: pointer; font: 600 11px/18px var(--font-display); color: var(--ink-muted);
  border-radius: 6px; background: rgba(255, 255, 255, 0.8); box-shadow: 0 0 0 0.5px rgba(46, 35, 34, 0.18), 0 1px 0 rgba(46, 35, 34, 0.08);
}
.search-results { position: relative; max-height: min(60vh, 420px); margin-top: 6px; overflow-y: auto; overscroll-behavior: contain; }
.search-results:empty { display: none; }
.search-group-title { padding: 12px 8px 4px; font: 600 11px/16px var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.search-results a.search-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 9px 10px; border-radius: 10px; font: 560 15px/20px var(--font-display); color: var(--ink); text-decoration: none;
}
.search-row-label { min-width: 0; }
.search-row-cat { flex: none; font: 400 13px/20px var(--font-display); color: var(--leaf); }
.search-results a.search-row:hover { background: rgba(46, 35, 34, 0.06); }
.search-results a.search-row.is-active { background: var(--strawberry); color: var(--paper); }   /* macOS-style selected row */
.search-results a.search-row.is-active .search-row-cat { color: rgba(255, 247, 237, 0.8); }
.search-empty { padding: 12px 8px 4px; font: 400 15px/24px var(--font-display); color: var(--ink-muted); }
.search-suggest-link {
  display: inline; padding: 0; margin: 0; border: 0; background: none; cursor: pointer;
  font: 560 15px/24px var(--font-display); color: var(--strawberry); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.search-suggest-link:hover { color: var(--jam); }

.search-scrim {
  position: fixed; inset: 0; z-index: 40; background: rgba(23, 16, 11, 0.32);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity var(--dur-ui) var(--ease-out);
}
.search-scrim[hidden] { display: none; }
.search-scrim.is-open { opacity: 1; }

/* =================================================================== *
 * 7. Reduced motion
 * =================================================================== */
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .ticker-track li::after { animation: none !important; }
  /* no spring, no blur: the island jumps to its end state (JS) and content just cross-fades */
  .notch-shell .notch, .notch-shell .notch * { animation: none !important; }
  .notch-shell .notch-pill, .notch-shell .notch-panel { transition: opacity 140ms ease, visibility 0s linear 140ms !important; transform: none !important; filter: none !important; }
  .notch-shell.is-open .notch-panel { transition-delay: 0s !important; }
  .notch-shell .notch-pill *, .notch-shell .notch-page, .notch-shell .np-body, .notch-shell .notch-dots i { transition: none !important; }
  .notch-eq i:nth-child(1) { height: 7px; } .notch-eq i:nth-child(2) { height: 12px; } .notch-eq i:nth-child(3) { height: 5px; } .notch-eq i:nth-child(4) { height: 9px; }
  .search-panel, .search-scrim, .mega, .mega-view, .mega-caret, .nav-hover, .mobile-menu, .mobile-menu > *, .mm-body, .mm-inner a,
  .nav-trigger, .nav-trigger svg, .search-field { transition: none !important; }
  .search-panel { transform: none; }
  .mega, .mobile-menu { filter: none !important; scale: 1 !important; translate: none !important; }
}

/* =================================================================== *
 * 8. Glass fallbacks (kept last so they win): no backdrop-filter, or
 *    prefers-reduced-transparency -> opaque cream, text stays readable
 * =================================================================== */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header-bar, .search-panel, .mega, .mobile-menu { background: var(--lg-fill-solid); }
  .ticker { background: linear-gradient(180deg, #8c1a3b, #801c36); }
  .mega-caret { background: var(--lg-fill-solid); }
}
@media (prefers-reduced-transparency: reduce) {
  .ticker, .header-bar, .search-panel, .mega, .mobile-menu { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .header-bar, .search-panel, .mega, .mobile-menu, .mega-caret { background: var(--lg-fill-solid); }
  .ticker { background: linear-gradient(180deg, #8c1a3b, #801c36); }
  .search-scrim { -webkit-backdrop-filter: none; backdrop-filter: none; }
}
