/* ============================================================
   EkhoniJanao — HOME PAGE
   The post-welcome landing page for phones, tablets and desktops.
   Built from the site's existing tokens and living-garden language:
   layered flowers at the back, glass surfaces up front, and motion
   that stays in millimetres rather than bouncing the interface.
   ============================================================ */

.home-page {
  --hp-ink: var(--text-primary);
  --hp-sub: var(--text-secondary);
  --hp-line: var(--border);
  --hp-surface: color-mix(in srgb, var(--bg-secondary) 88%, transparent);
  --hp-surface-2: color-mix(in srgb, var(--bg-secondary) 72%, transparent);
  --hp-accent: var(--accent);
  --hp-grad: var(--accent-grad, linear-gradient(120deg, #006a4e, #00a878, #14b8a6));
  --hp-shadow: 0 20px 60px -32px rgba(0, 70, 52, 0.42);
  position: relative;
  isolation: isolate;
  min-height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(20, 184, 166, 0.18), transparent 62%),
    radial-gradient(720px 400px at 100% 4%, rgba(251, 191, 36, 0.14), transparent 60%),
    radial-gradient(620px 520px at 50% 100%, rgba(52, 211, 153, 0.1), transparent 66%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-primary) 72%, #eefaf5), var(--bg-primary) 46%, var(--bg-secondary));
}

/* Home owns the whole content area on every device. The shell still has a
   split "panel + map" mode for report/map views, so pin these rules here to
   stop the persistent map pane sitting beside the homepage — including on
   the first paint, before switchView()/AppLayout.apply() have run. */
body[data-view="home"] .app-layout .map-wrapper { display: none !important; }
body[data-view="home"] .app-layout .panel {
  width: 100% !important;
  flex: 1 1 auto !important;
  border-right: 0;
}

.home-page::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  z-index: 3;
  background: linear-gradient(90deg, transparent, var(--accent), #fbbf24, var(--accent), transparent);
  background-size: 220% 100%;
  animation: homeBorderFlow 11s linear infinite;
  opacity: 0.8;
}

.home-garden {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.home-inner {
  position: relative;
  z-index: 1;
  width: min(1160px, 100%);
  margin: 0 auto;
  padding: 26px 4px 44px;
  display: grid;
  /* A single shrinkable column: without minmax(0, 1fr) the wide hourly
     forecast strip makes the auto column grow past the panel and clip. */
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

/* Grid/flex children default to min-width:auto, which lets their content
   push them wider than the panel. Every homepage surface must be able to
   shrink so long nowrap rows scroll inside instead of resizing the page. */
.home-section,
.home-stats,
.home-stat,
.home-tile-group,
.home-tiles,
.home-tile,
.home-lower,
.home-feed,
.home-feed-list,
.home-side,
.home-tip,
.home-account,
.home-sos { min-width: 0; }

/* ---------- shared surfaces ---------- */

.home-hero,
.home-section,
.home-stat,
.home-tip,
.home-account,
.home-sos,
.home-feed-list {
  border: 1px solid var(--hp-line);
  background: var(--hp-surface);
  box-shadow: var(--hp-shadow);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.home-hero,
.home-section,
.home-tip,
.home-account,
.home-sos {
  border-radius: 24px;
}

.home-section { padding: 22px; }

.home-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.home-section-head h2,
.home-group-label {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.home-section-head h2 {
  margin: 4px 0 4px;
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--hp-ink);
}

.home-section-sub {
  margin: 0;
  max-width: 62ch;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--hp-sub);
}

.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--hp-accent);
}

.home-kicker i { font-size: 0.72rem; }

.home-mini-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid color-mix(in srgb, var(--hp-accent) 30%, transparent);
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--hp-accent);
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.22s var(--ease-spring, ease), box-shadow 0.22s ease, background 0.22s ease;
}

.home-mini-btn:hover {
  transform: translateY(-2px);
  background: color-mix(in srgb, var(--hp-accent) 16%, transparent);
  box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--hp-accent) 70%, transparent);
}

.home-mini-btn.is-quiet { border-color: var(--hp-line); background: var(--bg-primary); color: var(--hp-sub); }
.home-mini-btn.is-danger { border-color: rgba(234, 67, 53, 0.3); background: rgba(234, 67, 53, 0.1); color: #d93025; }
[data-theme="dark"] .home-mini-btn.is-danger { color: #ff9b91; }

/* ---------- hero ---------- */

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  align-items: center;
  gap: 22px;
  min-height: 300px;
  padding: clamp(22px, 4vw, 42px);
  overflow: hidden;
}

.home-hero::before {
  content: '';
  position: absolute;
  inset: -40% -10% auto auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.22), transparent 67%);
  animation: homeBreathe 15s ease-in-out infinite alternate;
  pointer-events: none;
}

.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.7), transparent 35%, rgba(20, 184, 166, 0.45), transparent 75%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.75;
}

.home-hero-copy { position: relative; z-index: 2; min-width: 0; }

.home-date-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 13px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--hp-sub);
}

.home-date-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-bg);
  color: var(--hp-accent);
}

.home-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 168, 107, 0.1);
  color: var(--hp-accent);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.home-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00a86b;
  box-shadow: 0 0 0 0 rgba(0, 168, 107, 0.5);
  animation: homeLivePulse 2.4s ease-out infinite;
}

.home-greeting {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5.2vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: var(--hp-ink);
  text-wrap: balance;
}

.home-name {
  display: inline-block;
  background: var(--hp-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-lead {
  margin: 12px 0 22px;
  max-width: 56ch;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--hp-sub);
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.home-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid var(--hp-line);
  border-radius: 14px;
  background: var(--hp-surface-2);
  color: var(--hp-ink);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring, ease), box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-cta:hover { transform: translateY(-3px); border-color: var(--hp-accent); box-shadow: 0 14px 26px -16px color-mix(in srgb, var(--hp-accent) 80%, transparent); }
.home-cta.is-primary { border-color: transparent; background: var(--hp-grad); color: #fff; box-shadow: 0 14px 30px -14px rgba(0, 106, 78, 0.62); }
.home-cta.is-primary:hover { box-shadow: 0 18px 34px -14px rgba(0, 106, 78, 0.72); }
.home-cta.is-quiet { background: transparent; color: var(--hp-sub); }

.home-hero-visual {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: min(260px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.home-orbit {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--hp-accent) 38%, transparent);
  animation: homeOrbit 34s linear infinite;
}

.home-orbit span {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--hp-accent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--hp-accent) 12%, transparent);
}
.home-orbit span:nth-child(1) { top: -6px; left: 48%; }
.home-orbit span:nth-child(2) { bottom: 12%; left: 4%; background: #fbbf24; }
.home-orbit span:nth-child(3) { right: 2%; top: 58%; background: #14b8a6; }

.home-hero-orb {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--hp-grad);
  color: #fff;
  font-size: 2.7rem;
  box-shadow: 0 24px 54px -20px rgba(0, 106, 78, 0.75), inset 0 0 0 8px rgba(255, 255, 255, 0.16);
  animation: homeFloat 6s ease-in-out infinite;
}

.home-botanical {
  position: absolute;
  width: 155px;
  height: 145px;
  right: -10px;
  top: -8px;
  color: var(--hp-accent);
  opacity: 0.22;
  transform-origin: 80% 90%;
  animation: homeSway 7s ease-in-out infinite alternate;
  pointer-events: none;
}

.home-botanical--2 {
  width: 120px;
  height: 112px;
  left: -8px;
  top: auto;
  bottom: 4px;
  opacity: 0.15;
  transform: scaleX(-1);
  animation-delay: -2.4s;
}

.home-hero-chip {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--hp-line);
  background: var(--hp-surface);
  color: var(--hp-sub);
  font-size: 0.66rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.home-hero-chip i { color: var(--hp-accent); }

/* ---------- weather ---------- */

.home-weather .wx-host { max-width: 100%; min-width: 0; }
.home-weather .weather-widget.wx-card { max-width: 100%; min-width: 0; border-radius: 22px; box-shadow: var(--shadow-md); }
.home-weather .wx-hourly-strip { max-width: 100%; min-width: 0; }

/* ---------- live stats ---------- */

.home-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.home-stat {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  text-align: left;
  cursor: pointer;
  color: var(--hp-ink);
  transition: transform 0.25s var(--ease-spring, ease), border-color 0.25s ease, box-shadow 0.25s ease;
}

.home-stat:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--hp-accent) 45%, transparent); box-shadow: 0 16px 34px -20px rgba(0, 106, 78, 0.6); }
.home-stat-ico { grid-row: 1 / 3; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: var(--accent-bg); color: var(--hp-accent); font-size: 1rem; }
.home-stat strong { font-family: var(--font-display); font-size: 1.65rem; line-height: 1; letter-spacing: -0.04em; }
.home-stat > span:last-child { font-size: 0.7rem; font-weight: 700; color: var(--hp-sub); }
.home-stat.is-open .home-stat-ico { background: rgba(234, 67, 53, 0.11); color: #d93025; }
.home-stat.is-fixed .home-stat-ico { background: rgba(0, 168, 107, 0.12); color: #00875a; }
.home-stat.is-areas .home-stat-ico { background: rgba(251, 191, 36, 0.16); color: #a16207; }

/* ---------- navigation tiles ---------- */

.home-tile-group + .home-tile-group { margin-top: 20px; }

.home-group-label {
  margin: 0 0 10px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hp-sub);
}

.home-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 11px;
}

.home-tile {
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--hp-line);
  border-radius: 17px;
  background: var(--hp-surface-2);
  color: var(--hp-ink);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.26s var(--ease-out), border-color 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.home-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx) var(--my), color-mix(in srgb, var(--hp-accent) 18%, transparent), transparent 48%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.home-tile:hover::before,
.home-tile:focus-visible::before { opacity: 1; }

.home-tile:hover {
  border-color: color-mix(in srgb, var(--hp-accent) 45%, transparent);
  box-shadow: 0 16px 32px -22px color-mix(in srgb, var(--hp-accent) 85%, transparent);
}

.home-tile-ico {
  position: relative;
  z-index: 1;
  flex: none;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 1.05rem;
  background: var(--accent-bg);
  color: var(--hp-accent);
}
.home-tile-ico.is-water { background: rgba(66, 133, 244, 0.13); color: #2563eb; }
.home-tile-ico.is-dengue { background: rgba(234, 67, 53, 0.12); color: #dc2626; }
.home-tile-ico.is-garbage { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.home-tile-ico.is-events, .home-tile-ico.is-trophy { background: rgba(168, 85, 247, 0.12); color: #7c3aed; }
.home-tile-ico.is-emergency { background: rgba(234, 67, 53, 0.14); color: #dc2626; }
.home-tile-ico.is-gov, .home-tile-ico.is-admin { background: rgba(100, 116, 139, 0.14); color: #475569; }

.home-tile-body { position: relative; z-index: 1; display: grid; gap: 2px; min-width: 0; }
.home-tile-body b { font-size: 0.85rem; font-weight: 800; line-height: 1.25; }
.home-tile-body small { font-size: 0.68rem; line-height: 1.4; color: var(--hp-sub); }
.home-tile-go { position: relative; z-index: 1; margin-left: auto; font-size: 0.72rem; color: var(--hp-sub); transition: transform 0.25s ease, color 0.25s ease; }
.home-tile:hover .home-tile-go { transform: translate(2px, -2px); color: var(--hp-accent); }

.home-tile-badge {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ea4335;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
}
.home-tile-badge[hidden] { display: none; }

/* ---------- feed and side rail ---------- */

.home-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 18px;
  align-items: start;
}

.home-feed { min-width: 0; }
.home-feed-list {
  display: grid;
  gap: 9px;
  padding: 10px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-primary) 70%, transparent);
  box-shadow: none;
}

.home-feed-row {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: var(--hp-surface-2);
  color: var(--hp-ink);
  text-align: left;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.home-feed-row:hover { transform: translateX(3px); border-color: var(--hp-line); box-shadow: var(--shadow-xs); }
.home-feed-ico { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; font-size: 0.9rem; }
.home-feed-main { display: grid; gap: 2px; min-width: 0; }
.home-feed-main b { font-size: 0.79rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-feed-main small { font-size: 0.67rem; color: var(--hp-sub); }
.home-feed-status { margin-left: auto; flex: none; padding: 4px 8px; border-radius: 999px; font-size: 0.62rem; font-weight: 800; background: var(--bg-tertiary); color: var(--hp-sub); }
.home-feed-status.is-new { background: rgba(234, 67, 53, 0.12); color: #d93025; }
.home-feed-status.is-review { background: rgba(245, 158, 11, 0.16); color: #a16207; }
.home-feed-status.is-progress { background: rgba(66, 133, 244, 0.13); color: #2563eb; }
.home-feed-status.is-resolved { background: rgba(0, 168, 107, 0.13); color: #00875a; }
.home-empty { margin: 0; padding: 18px; text-align: center; font-size: 0.78rem; color: var(--hp-sub); }

.home-side { display: grid; gap: 14px; }

.home-tip {
  position: relative;
  padding: 19px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.14), var(--hp-surface) 55%);
}
.home-tip::after {
  content: '\f0e7';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  right: 14px;
  bottom: -18px;
  font-size: 5rem;
  color: rgba(251, 191, 36, 0.14);
  pointer-events: none;
}
.home-tip-kicker { display: flex; align-items: center; gap: 7px; margin: 0 0 9px; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: #a16207; }
.home-tip-text { position: relative; z-index: 1; margin: 0 0 14px; font-size: 0.83rem; line-height: 1.65; color: var(--hp-ink); }

.home-account, .home-sos { padding: 18px; display: flex; align-items: center; gap: 14px; justify-content: space-between; }
.home-account-txt, .home-sos > div { min-width: 0; }
.home-account-txt b, .home-sos > div b { display: block; font-size: 0.85rem; font-weight: 800; }
.home-account-txt p, .home-sos > div small { margin: 3px 0 0; display: block; font-size: 0.7rem; line-height: 1.5; color: var(--hp-sub); }
.home-sos > div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; }
.home-sos > div i { grid-row: 1 / 3; align-self: center; font-size: 1.3rem; color: #d93025; }
.home-sos > div small { grid-column: 2; }

/* ---------- entrance + interaction ---------- */

.home-reveal { opacity: 1; transform: none; }
.home-page.home-motion .home-reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
}
.home-page.home-motion .home-reveal {
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--home-delay, 0s);
}
.home-page.home-motion .home-hero.is-visible { --home-delay: 0.02s; }
.home-page.home-motion .home-stats-block.is-visible { --home-delay: 0.08s; }
.home-page.home-motion .home-tiles .home-tile:nth-child(3n + 2) { --home-delay: 0.04s; }
.home-page.home-motion .home-tiles .home-tile:nth-child(3n) { --home-delay: 0.08s; }

@keyframes homeBorderFlow { to { background-position: 220% 0; } }
@keyframes homeBreathe { from { transform: scale(0.92) translate3d(0, 0, 0); opacity: 0.7; } to { transform: scale(1.08) translate3d(-4%, 3%, 0); opacity: 1; } }
@keyframes homeLivePulse { 0% { box-shadow: 0 0 0 0 rgba(0, 168, 107, 0.5); } 70% { box-shadow: 0 0 0 8px rgba(0, 168, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 168, 107, 0); } }
@keyframes homeOrbit { to { transform: rotate(360deg); } }
@keyframes homeFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes homeSway { from { transform: rotate(-2deg) translate3d(0, 0, 0); } to { transform: rotate(2.2deg) translate3d(0, -4px, 0); } }

/* ---------- dark theme ---------- */

[data-theme="dark"] .home-page {
  --hp-surface: rgba(20, 23, 32, 0.86);
  --hp-surface-2: rgba(28, 32, 48, 0.78);
  --hp-shadow: 0 22px 64px -30px rgba(0, 0, 0, 0.8);
  background:
    radial-gradient(900px 420px at 8% -8%, rgba(0, 230, 165, 0.14), transparent 62%),
    radial-gradient(720px 400px at 100% 4%, rgba(251, 191, 36, 0.08), transparent 60%),
    radial-gradient(620px 520px at 50% 100%, rgba(20, 184, 166, 0.09), transparent 66%),
    linear-gradient(180deg, #0d1119, #0a0c10 55%, #11151f);
}
[data-theme="dark"] .home-hero::after { opacity: 0.5; }
[data-theme="dark"] .home-feed-list { background: rgba(10, 12, 16, 0.42); }
[data-theme="dark"] .home-tip { background: linear-gradient(145deg, rgba(251, 191, 36, 0.09), var(--hp-surface) 55%); }
[data-theme="dark"] .home-stat.is-open .home-stat-ico { color: #ff9b91; }
[data-theme="dark"] .home-stat.is-fixed .home-stat-ico { color: #4ade80; }
[data-theme="dark"] .home-stat.is-areas .home-stat-ico { color: #fcd34d; }
[data-theme="dark"] .home-tile-ico.is-water { color: #93c5fd; }
[data-theme="dark"] .home-tile-ico.is-dengue,
[data-theme="dark"] .home-tile-ico.is-emergency { color: #fca5a5; }
[data-theme="dark"] .home-tile-ico.is-garbage { color: #fcd34d; }
[data-theme="dark"] .home-tile-ico.is-gov,
[data-theme="dark"] .home-tile-ico.is-admin { color: #cbd5e1; }
[data-theme="dark"] .home-feed-status.is-new { color: #ff9b91; }
[data-theme="dark"] .home-feed-status.is-review { color: #fcd34d; }
[data-theme="dark"] .home-feed-status.is-progress { color: #93c5fd; }
[data-theme="dark"] .home-feed-status.is-resolved { color: #4ade80; }

/* ---------- responsive ---------- */

@media (max-width: 1040px) {
  .home-hero { grid-template-columns: minmax(0, 1fr) 210px; }
  .home-lower { grid-template-columns: minmax(0, 1fr) 250px; }
}

@media (max-width: 900px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-hero-visual { display: none; }
  .home-lower { grid-template-columns: 1fr; }
  .home-side { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

@media (max-width: 720px) {
  .home-inner { padding: 12px 2px 30px; gap: 16px; }
  .home-page { border-radius: 16px; }
  .home-hero, .home-section { border-radius: 18px; padding: 17px; }
  .home-hero { min-height: 0; }
  .home-greeting { font-size: clamp(1.9rem, 8.5vw, 2.7rem); }
  .home-lead { font-size: 0.88rem; margin-bottom: 18px; }
  .home-hero-actions { gap: 8px; }
  .home-cta { min-height: 42px; padding: 10px 13px; font-size: 0.76rem; }
  .home-section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .home-section-head h2 { font-size: 1.2rem; }
  .home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .home-stat { padding: 13px; }
  .home-stat strong { font-size: 1.45rem; }
  .home-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .home-tile { min-height: 76px; padding: 11px; gap: 9px; }
  .home-tile-ico { width: 37px; height: 37px; font-size: 0.9rem; }
  .home-tile-body b { font-size: 0.78rem; }
  .home-tile-body small { font-size: 0.62rem; }
  .home-tile-go { display: none; }
  .home-side { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .home-tiles { grid-template-columns: 1fr; }
  .home-stat { grid-template-columns: 1fr; row-gap: 7px; }
  .home-stat-ico { grid-row: auto; }
  .home-date-line { font-size: 0.7rem; }
  .home-cta.is-quiet { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html.reduce-motion .home-page::before,
  html.reduce-motion .home-hero::before,
  html.reduce-motion .home-orbit,
  html.reduce-motion .home-hero-orb,
  html.reduce-motion .home-botanical,
  html.reduce-motion .home-live i { animation: none !important; }
  html.reduce-motion .home-page.home-motion .home-reveal:not(.is-visible) { opacity: 1; transform: none; }
  html.reduce-motion .home-tile { transform: none !important; }
}

/* ============================================================
   HOME — refinements (layered on top of the base styles)
   Aurora hero with cursor spotlight, live activity ticker,
   mission mottos and richer entrance motion.
   ============================================================ */

/* --- hero aurora + spotlight --- */
.home-hero-aurora {
  position: absolute;
  inset: -35% -12% auto;
  height: 190%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
  background:
    radial-gradient(540px 380px at var(--hx, 80%) var(--hy, 20%), color-mix(in srgb, var(--hp-accent) 34%, transparent), transparent 60%),
    conic-gradient(from 200deg at 84% 14%, rgba(20, 184, 166, 0.2), rgba(251, 191, 36, 0.16), rgba(52, 211, 153, 0.18), rgba(20, 184, 166, 0.2));
  filter: blur(26px) saturate(1.25);
  animation: homeAurora 26s ease-in-out infinite alternate;
}

@keyframes homeAurora {
  0% { transform: translate3d(-2%, -1%, 0) scale(1.03) rotate(0deg); }
  50% { transform: translate3d(1.5%, 2%, 0) scale(1.09) rotate(7deg); }
  100% { transform: translate3d(-1%, 1%, 0) scale(1.05) rotate(-5deg); }
}

/* --- hero eyebrow row --- */
.home-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; }
.home-eyebrow-date {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 5px 13px 5px 5px;
  border-radius: 999px;
  border: 1px solid var(--hp-line);
  background: var(--hp-surface-2);
  font-size: 0.75rem; font-weight: 700; color: var(--hp-sub);
}
.home-eyebrow-date .home-date-icon { width: 26px; height: 26px; border-radius: 9px; }

/* --- hero mission mottos --- */
.home-motto { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0 0; padding: 0; list-style: none; }
.home-motto li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--hp-line);
  background: var(--hp-surface-2);
  font-size: 0.74rem; font-weight: 800; color: var(--hp-ink);
  transition: transform 0.25s var(--ease-spring, ease), border-color 0.25s ease, box-shadow 0.25s ease;
}
.home-motto li i { color: var(--hp-accent); font-size: 0.82rem; }
.home-motto li:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--hp-accent) 45%, transparent);
  box-shadow: 0 12px 24px -14px color-mix(in srgb, var(--hp-accent) 72%, transparent);
}

/* --- hero decorative ring (replaces the old floating tagline) --- */
.home-hero-ring {
  position: absolute; inset: 2px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--hp-accent) 24%, transparent);
  animation: homeOrbit 48s linear infinite reverse;
}
.home-hero-ring span {
  position: absolute; top: -4px; left: 50%;
  width: 8px; height: 8px; border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 0 5px rgba(251, 191, 36, 0.16);
}

/* --- live ticker --- */
.home-ticker {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 11px 16px;
  border-radius: 16px;
  border: 1px solid var(--hp-line);
  background: var(--hp-surface);
  box-shadow: var(--hp-shadow);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  overflow: hidden; min-width: 0;
}
.home-ticker::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 3px;
  background: linear-gradient(180deg, var(--hp-accent), #fbbf24);
}
.home-ticker-lead {
  flex: none; display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--hp-accent), #0ea5a4);
  color: #fff;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase;
}
.home-ticker-lead i { font-size: 0.64rem; animation: homeLivePulse 2s ease-out infinite; }
.home-ticker-track {
  position: relative; flex: 1; min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.home-ticker-move {
  display: inline-flex; align-items: center; gap: 30px; white-space: nowrap;
  will-change: transform;
  animation: homeTicker var(--home-ticker-duration, 90s) linear infinite;
}
.home-ticker:hover .home-ticker-move { animation-play-state: paused; }
.home-ticker-item { display: inline-flex; align-items: center; gap: 8px; font-size: 0.76rem; font-weight: 600; color: var(--hp-sub); }
.home-ticker-item i { color: var(--hp-accent); }
.home-ticker-item b { color: var(--hp-ink); font-weight: 800; }
.home-ticker-item .home-ticker-sep { color: color-mix(in srgb, var(--hp-sub) 55%, transparent); }
@keyframes homeTicker { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* --- stats block heading --- */
.home-block-head { display: flex; flex-direction: column; gap: 3px; margin-bottom: 14px; }
.home-block-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.42rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hp-ink);
}

/* --- primary CTA sheen --- */
.home-cta.is-primary { position: relative; overflow: hidden; }
.home-cta.is-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, 0.42) 48%, transparent 64%);
  transform: translateX(-130%);
  transition: transform 0.75s ease;
}
.home-cta.is-primary:hover::after { transform: translateX(130%); }
.home-cta > * { position: relative; z-index: 1; }

/* --- richer reveal (blur-in) --- */
.home-page.home-motion .home-reveal {
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), filter 0.7s var(--ease-out);
  transition-delay: var(--home-delay, 0s);
}
.home-page.home-motion .home-reveal:not(.is-visible) {
  opacity: 0; transform: translateY(22px) scale(0.985); filter: blur(7px);
}
.home-page.home-motion .home-reveal.is-visible { filter: blur(0); }

/* --- dark theme tweaks --- */
[data-theme="dark"] .home-hero-aurora { opacity: 0.6; }
[data-theme="dark"] .home-ticker-lead { color: #04140f; background: linear-gradient(120deg, #34d399, #22d3ee); }

/* --- responsive --- */
@media (max-width: 720px) {
  .home-eyebrow { gap: 8px; margin-bottom: 12px; }
  .home-motto { margin-top: 18px; gap: 8px; }
  .home-motto li { padding: 6px 11px; font-size: 0.7rem; }
  .home-ticker { gap: 10px; padding: 10px 12px; }
  .home-ticker-lead { padding: 4px 9px; font-size: 0.6rem; }
  .home-ticker-item { font-size: 0.72rem; }
  .home-ticker-move { gap: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html.reduce-motion .home-hero-aurora,
  html.reduce-motion .home-hero-ring,
  html.reduce-motion .home-ticker-move,
  html.reduce-motion .home-ticker-lead i { animation: none !important; }
  html.reduce-motion .home-page.home-motion .home-reveal:not(.is-visible) { filter: none; }
  html.reduce-motion .home-motto li:hover { transform: none; }
}
