
/* =========================================================================
   HERO v2 (11/12): modern sunset, liquid-glass title, floating glass nav
   ========================================================================= */

/* ---------- floating glass nav ---------- */
body.vice .nav {
  top: calc(var(--mdai-banner-h) + 14px) !important;
  left: 50%; right: auto; transform: translateX(-50%);
  width: min(1180px, calc(100% - 28px));
  border-radius: 20px;
  background: rgba(20, 8, 34, .28);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 12px 40px rgba(5, 2, 12, .25);
  transition: background .3s ease, box-shadow .3s ease;
}
body.vice .nav.scrolled { background: rgba(14, 6, 26, .62); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 16px 44px rgba(5,2,12,.45); }
body.vice .nav-inner { padding: .7rem 1rem .7rem 1.3rem; }
@media (max-width: 768px) {
  body.vice .nav-links { top: calc(100% + 8px); border-radius: 18px; border: 1px solid rgba(255,255,255,.14); }
}

/* ---------- sky: dark at the top, bright at the horizon ---------- */
.vice-sky {
  background:
    radial-gradient(70% 45% at 50% 78%, rgba(255, 170, 90, .55), transparent 70%),
    linear-gradient(180deg, #12071f 0%, #2b0c45 22%, #6b1a6e 45%, #d6337a 64%, #ff7a4a 76%, #ffb36b 80%);
}
.vice-sky::after {
  background: linear-gradient(180deg, rgba(11,6,20,.35) 0%, rgba(11,6,20,0) 25%, rgba(11,6,20,0) 70%, rgba(11,6,20,.55) 88%, var(--night-1) 100%);
}
/* soft aurora light drifting across the sky */
.vice-sky::before {
  content: ''; position: absolute; inset: -20% -10% 30%; pointer-events: none;
  background:
    radial-gradient(40% 35% at 20% 30%, rgba(164,107,255,.35), transparent 70%),
    radial-gradient(35% 30% at 80% 25%, rgba(25,240,224,.18), transparent 70%);
  filter: blur(30px);
  animation: vice-aurora 18s ease-in-out infinite alternate;
}
@keyframes vice-aurora { 0% { transform: translateX(-3%); } 100% { transform: translateX(3%); } }

/* sun: smooth glowing orb setting behind the skyline (no stripes) */
.vice-sun {
  top: 70%; width: min(56vw, 560px);
  -webkit-mask-image: none; mask-image: none;
  background: radial-gradient(circle at 50% 40%, #fff6d6 0%, #ffd27a 30%, #ff9a52 58%, #ff4f86 100%);
  box-shadow: 0 0 120px 40px rgba(255, 140, 70, .45), 0 0 260px 90px rgba(255, 45, 149, .28);
  opacity: 1;
}
.vice-skyline { fill: #1a0a2c; opacity: .96; }

/* water: calm gradient + blurred sun reflection (no scanlines) */
.vice-water {
  background: linear-gradient(180deg, #3a1250 0%, #1a0a2c 45%, var(--night-1) 100%);
  overflow: hidden;
}
.vice-water::before {
  content: ''; position: absolute; left: 50%; top: -10%; width: min(46vw, 460px); height: 120%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255,170,90,.75), rgba(255,79,134,.35) 45%, transparent 85%);
  filter: blur(18px);
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 6px, rgba(0,0,0,.35) 6px 10px);
          mask-image: repeating-linear-gradient(180deg, #000 0 6px, rgba(0,0,0,.35) 6px 10px);
  animation: vice-shimmer 6s ease-in-out infinite alternate;
}
@keyframes vice-shimmer { 0% { opacity: .75; transform: translateX(-50%) scaleX(1); } 100% { opacity: 1; transform: translateX(-50%) scaleX(1.06); } }

/* film grain: very faint, no scanlines */
.vice-grain { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); opacity: .14; }

/* ---------- liquid glass title ---------- */
.vice-title-glass { display: block; width: min(94vw, 980px); margin: -.35em auto 0; line-height: 0; }
.vice-title-glass svg { display: block; width: 100%; height: auto; overflow: visible; }
.vice-title-script { font-size: clamp(4rem, 13vw, 9rem); }
.vice-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- tagline: centered, balanced, no orphans ---------- */
.vice-sub { max-width: 820px; margin: 1.6rem auto 2.1rem; text-wrap: balance; }
.vice-sub-line { display: block; text-wrap: balance; }
.vice-sub-line + .vice-sub-line { margin-top: .35rem; opacity: .88; font-size: .94em; }

/* hero buttons: liquid glass secondary */
.vice-cta .btn-ghost {
  background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.38);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -1px 0 rgba(255,255,255,.08), 0 10px 30px rgba(20,5,30,.25);
}

@media (max-width: 640px) {
  .vice-sun { top: 66%; width: 86vw; }
  .vice-title-glass { width: 96vw; margin-top: -.2em; }
}
@media (prefers-reduced-motion: reduce) {
  .vice-sky::before, .vice-water::before { animation: none; }
}

/* fix 11/12: reflection as a soft ellipse (no box edges) */
.vice-water::before {
  top: 0; width: min(60vw, 620px); height: 100%; filter: none;
  background: radial-gradient(ellipse 50% 70% at 50% 0%, rgba(255,175,95,.75), rgba(255,79,134,.32) 45%, transparent 75%);
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 5px, rgba(0,0,0,.55) 5px 8px);
          mask-image: repeating-linear-gradient(180deg, #000 0 5px, rgba(0,0,0,.55) 5px 8px);
}
/* glass title: soft glow so it lifts off the dark sky */
.vice-title-glass svg { filter: drop-shadow(0 0 18px rgba(255, 120, 190, .35)); }

/* ---------- phone: compact doll cards (two per screen, swipe for more) ---------- */
@media (max-width: 640px) {
  .vice-district-list { gap: 2.2rem; }
  .vice-district-head { margin-bottom: .8rem; padding-bottom: .6rem; }
  .vice-district-num { font-size: 1.8rem; }
  .vice-district-name { font-size: 1.35rem; }
  .vice-district-tag { font-size: .82rem; }
  .vice-district-count { font-size: .64rem; }
  .vice-district-row { gap: .65rem; }
  .vice-district-row > .vice-card { flex: 0 0 44%; }
  body.vice .vice-card { border-radius: 16px; }
  body.vice .vice-card-img { aspect-ratio: 4 / 5; }
  body.vice .vice-card-body { left: .35rem; right: .35rem; bottom: .35rem; padding: .45rem .55rem .5rem; border-radius: 12px; gap: .1rem; }
  body.vice .vice-card-body h3 { font-size: 1rem; }
  body.vice .vice-card-tag { display: none; }
  body.vice .vice-card-cta { margin-top: .2rem; font-size: .68rem; padding: .25rem .6rem; }
  body.vice .vice-card-voice { width: 26px; height: 26px; font-size: .7rem; top: .45rem; right: .45rem; }
  .vice-card-soon-tag { font-size: .8rem; letter-spacing: .12em; }
  body.vice .vice-district-tabs { margin: 1rem auto 2rem; }
  body.vice .vice-tab { padding: .4rem .75rem; font-size: .8rem; }
}
