/* VIPOX: typography and composition first; motion is progressive enhancement. */
:root {
  color-scheme: dark;
  --text: #f1f5f8;
  --muted: #c4d1db;
  --soft: #9dafbe;
  --accent: #8ed4d1;
  --glass: rgba(85, 114, 141, .23);
  --border: rgba(210, 229, 244, .24);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --stats-header: 46px;
  --stats-body: 166px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 280px; background: #14283d; scroll-behavior: smooth; }
body { margin: 0; color: var(--text); font-size: 14px; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; }
button, a, input { outline-offset: 5px; }
a { color: inherit; text-decoration: none; }
button { border: 0; }
button:focus-visible, a:focus-visible { outline: 2px solid #a4e2df; }
button::-moz-focus-inner { border: 0; }
svg { display: block; flex-shrink: 0; }
button { cursor: pointer; }
::selection { color: #fff; background: #527c8f; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 18px; top: -80px; padding: 12px 20px; border-radius: 10px; background: #1a3447; }
.skip-link:focus { top: 18px; }

/* The background never moves with the pointer or with scrolling. */
.scenery { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #1e374c; }
.scenery picture, .scenery-image, .scenery-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.scenery-image { object-fit: cover; object-position: var(--bg-position, 50% 50%); }
.scenery-shade {
  background: linear-gradient(180deg, rgba(8, 22, 39, .05) 0%, rgba(8, 23, 39, .09) 35%, rgba(8, 22, 38, .05) 60%, rgba(5, 16, 28, .56) 100%),
              radial-gradient(ellipse at 50% 47%, rgba(14, 32, 51, .22) 0%, transparent 68%),
              rgba(10, 26, 43, var(--overlay-opacity, .2));
}
.page { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.main { display: grid; place-items: center; flex: 1; padding: 60px 24px 54px; }
.home { width: min(100%, 500px); text-align: center; transform: translateY(-8px); }
.identity { display: flex; flex-direction: column; align-items: center; }
.avatar-frame { position: relative; width: 106px; height: 106px; padding: 4px; border: 1px solid rgba(239, 246, 251, .6); border-radius: 50%; box-shadow: 0 0 0 4px rgba(204, 223, 240, .055), 0 6px 30px rgba(4, 18, 32, .2); background: rgba(151, 174, 194, .10); }
.avatar { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: #7e97ac; }
.avatar.is-missing { opacity: 0; }
.avatar-fallback { position: absolute; inset: 0; display: grid; place-items: center; font: 46px Georgia, "Times New Roman", serif; color: #e3edf4; }
h1 { margin: 19px 0 4px; padding-left: .06em; color: #fff; font-family: "Bodoni MT", "Didot", "Times New Roman", Georgia, serif; font-weight: 400; font-size: 78px; line-height: 1.1; letter-spacing: .06em; text-shadow: 0 2px 20px rgba(10, 25, 43, .2); overflow-wrap: anywhere; }
.tagline { margin: 0; font-size: 16px; line-height: 1.8; letter-spacing: .12em; color: #e1e9ef; text-shadow: 0 1px 10px rgba(9, 21, 33, .28); }
.socials { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 38px; margin-top: 13px; }
.social-link { width: 40px; height: 38px; display: grid; place-items: center; padding: 0; background: transparent; border-radius: 10px; color: #ebf1f6; transition: background .2s ease, transform .25s var(--ease); }
.social-link svg { width: 20px; height: 20px; }
.social-link:hover { background: rgba(233, 244, 249, .09); transform: translateY(-2px); }
.social-divider { height: 17px; width: 1px; background: rgba(235, 244, 251, .38); }

/* A fixed anchor and a single growing glass surface: navigation never reflows. */
.stats { position: relative; z-index: 5; width: calc(100% - 76px); height: 58px; margin: 23px auto 0; text-align: left; isolation: isolate; }
.stats-glass { position: absolute; top: 0; left: 0; width: 100%; height: var(--stats-header); overflow: hidden; border: 1px solid var(--border); border-radius: 17px; background: linear-gradient(115deg, rgba(150, 180, 201, .12), rgba(67, 104, 133, .05)), var(--glass); -webkit-backdrop-filter: blur(22px) saturate(120%); backdrop-filter: blur(22px) saturate(120%); box-shadow: inset 0 1px 0 rgba(255,255,255,.045), 0 5px 20px rgba(6, 24, 41, .08); transition: height .43s var(--ease), box-shadow .4s ease, background-color .3s ease; }
.stats[data-open="true"] .stats-glass { height: calc(var(--stats-header) + var(--stats-body)); background-color: rgba(46, 76, 101, .76); box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 18px 38px -12px rgba(4, 16, 29, .42); }
.stats-trigger { position: relative; display: flex; align-items: center; width: 100%; height: calc(var(--stats-header) - 2px); padding: 0 17px; gap: 11px; background: transparent; border-radius: 16px; text-align: left; }
.stats-trigger:focus-visible { outline-offset: -4px; }
.stats-trigger > svg:first-child { width: 20px; height: 20px; color: #dbe7ef; }
.stats-label { font-size: 13px; letter-spacing: .055em; white-space: nowrap; }
.stats-total { margin-left: auto; font-size: 12px; font-variant-numeric: tabular-nums; color: #eef4f8; white-space: nowrap; }
.stats-total.is-pending { color: #c7d6e2; font-size: 11px; letter-spacing: .06em; }
.stats-unit { color: #bbcedc; font-size: 10px; margin-left: 4px; }
.stats-chevron { width: 16px; height: 16px; margin-left: 1px; transition: transform .38s var(--ease); color: #deebf2; }
.stats[data-open="true"] .stats-chevron { transform: rotate(180deg); }
.stats-panel { height: var(--stats-body); padding: 12px 17px 13px; border-top: 1px solid rgba(213, 235, 246, .13); opacity: 0; visibility: hidden; transform: translateY(-7px); transition: opacity .18s ease, transform .35s var(--ease), visibility .35s; }
.stats[data-open="true"] .stats-panel { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .3s .06s ease, transform .4s .025s var(--ease), visibility 0s; }
.stats-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; line-height: 1.4; }
.stats-period { margin: 0; color: #e4edf3; font-size: 11px; letter-spacing: .04em; font-weight: 400; }
.stats-state { color: #b8cad7; font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.heatmap-wrap { position: relative; height: 75px; }
.heatmap { display: grid; grid-template-columns: repeat(26, minmax(0, 1fr)); grid-template-rows: repeat(7, 8px); grid-auto-flow: column; gap: 3px; width: 100%; height: 74px; }
.heat-cell { width: 100%; max-width: 8px; height: 8px; border-radius: 2px; background: rgba(10, 28, 43, .55); transition: outline .15s ease; }
.heat-cell[data-level="1"] { background: #397c85; }
.heat-cell[data-level="2"] { background: #4eaaa9; }
.heat-cell[data-level="3"] { background: #83d5bd; }
.heat-cell[data-level="4"] { background: #d2ffcf; }
.heat-cell[data-future="true"] { background: rgba(149, 178, 197, .065); }
.heat-cell:not([data-future="true"]):hover { outline: 1px solid rgba(214, 244, 243, .75); outline-offset: 1px; }
.stats[data-status="pending"] .heatmap, .stats[data-status="error"] .heatmap { opacity: .58; }
.stats-empty { position: absolute; display: flex; align-items: center; justify-content: center; inset: 0; font-size: 11px; color: #dae6ef; letter-spacing: .06em; pointer-events: none; }
.stats-empty span { padding: 7px 13px; border-radius: 8px; background: rgba(38, 65, 86, .86); }
.stats-empty[hidden] { display: none; }
.stats-panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 11px; line-height: 1.5; font-size: 10px; color: #b5c9d6; }
.stats-updated { white-space: nowrap; font-variant-numeric: tabular-nums; }
.stats-profile { display: inline-flex; align-items: center; gap: 3px; border-radius: 3px; color: #d4e2e9; padding: 2px 0; }
.stats-profile:hover { color: #fff; }
.stats-profile svg { width: 12px; height: 12px; }
.dot-stream { position: absolute; top: calc(var(--stats-header) + 4px); left: 18px; right: 18px; height: 6px; display: flex; align-items: center; justify-content: space-between; gap: 3px; pointer-events: none; opacity: .8; transition: opacity .25s ease; }
.dot-stream i { width: 5px; height: 5px; flex: 1 1 5px; max-width: 6px; border-radius: 2px; background: #77bfc1; opacity: .22; animation: drift 6.8s ease-in-out infinite; }
.dot-stream i:nth-child(6n+1) { animation-delay: -1.1s; }
.dot-stream i:nth-child(6n+2) { animation-delay: -2.2s; }
.dot-stream i:nth-child(6n+3) { animation-delay: -3.3s; }
.dot-stream i:nth-child(6n+4) { animation-delay: -4.4s; }
.dot-stream i:nth-child(6n+5) { animation-delay: -5.5s; }
.stats[data-open="true"] .dot-stream { opacity: 0; transition-duration: .1s; }
@keyframes drift { 0%, 100% { opacity: .20; } 50% { opacity: .78; } }
body.is-background .dot-stream i { animation-play-state: paused; }

.destinations { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 43px; outline: none; }
.home:not(:has(.stats)) .destinations { margin-top: 32px; }
.card-slot { min-width: 0; perspective: 800px; }
.destination-card { position: relative; display: flex; align-items: center; width: 100%; min-height: 94px; padding: 21px 24px; gap: 17px; text-align: left; border: 1px solid rgba(218, 235, 247, .25); border-radius: 14px; background: linear-gradient(115deg, rgba(168, 195, 212, .07), rgba(255, 255, 255, .01)), rgba(83, 113, 139, .25); -webkit-backdrop-filter: blur(16px) saturate(115%); backdrop-filter: blur(16px) saturate(115%); box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 6px 22px rgba(5, 20, 34, .065); transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--lift, 0px)); transition: transform .5s var(--ease), border-color .25s, background-color .25s, box-shadow .3s; }
.destination-card.is-tilting { transition: transform .14s ease-out, border-color .25s, background-color .25s, box-shadow .3s; will-change: transform; }
.destination-card:hover, .destination-card:focus-visible { --lift: -3px; border-color: rgba(226, 240, 250, .47); background-color: rgba(106, 138, 160, .30); box-shadow: inset 0 1px 0 rgba(255,255,255,.065), 0 12px 24px -9px rgba(4, 20, 34, .28); }
.destination-icon { width: 29px; height: 29px; color: #e9f2f7; }
.card-copy { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.card-title { font-size: 16px; font-weight: 500; letter-spacing: .06em; line-height: 1.45; overflow-wrap: anywhere; }
.card-description { font-size: 11px; font-weight: 400; letter-spacing: .025em; line-height: 1.5; color: #c6d5e0; overflow-wrap: anywhere; }
.card-arrow { position: absolute; right: 14px; top: 14px; width: 14px; height: 14px; color: #d5e2ec; opacity: .9; transition: transform .3s var(--ease), opacity .25s; }
.destination-card:hover .card-arrow { transform: translate(1px, -1px); }
.placeholder-hint { position: absolute; right: 12px; top: 12px; color: #d7e5ee; font-size: 9px; letter-spacing: .03em; opacity: 0; transform: translateY(2px); transition: opacity .2s, transform .2s; }
.destination-card[data-placeholder]:hover .card-arrow, .destination-card[data-placeholder]:focus-visible .card-arrow { opacity: 0; }
.destination-card[data-placeholder]:hover .placeholder-hint, .destination-card[data-placeholder]:focus-visible .placeholder-hint { opacity: 1; transform: translateY(0); }

.footer { flex-shrink: 0; padding: 0 24px max(24px, env(safe-area-inset-bottom)); text-align: center; }
.signature { margin: 0 0 12px; font-size: 9px; line-height: 1.5; letter-spacing: .3em; color: #d2dfe9; text-shadow: 0 1px 5px rgba(0,0,0,.3); }
.signature span { display: inline-block; padding: 0 .45em; color: #a7bac9; }
.filings { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; column-gap: 12px; row-gap: 4px; min-height: 16px; font-size: 10px; letter-spacing: .02em; line-height: 1.6; color: #aebfcb; }
.filing-item { display: inline-flex; align-items: center; gap: 5px; border-radius: 2px; }
.police-filing-badge { display: block; width: 18px; height: 20px; flex-shrink: 0; object-fit: contain; }
a.filing-item:hover { color: #eff7fc; }
.filing-divider { width: 1px; height: 9px; background: rgba(207, 223, 235, .25); }
.toast { position: fixed; z-index: 50; left: 50%; bottom: max(38px, env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 40px); padding: 12px 18px; text-align: center; border: 1px solid rgba(200, 224, 238, .25); border-radius: 12px; background: rgba(24, 48, 67, .96); box-shadow: 0 10px 40px rgba(0,0,0,.2); color: #e8f0f6; font-size: 12px; line-height: 1.6; opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .22s, transform .3s var(--ease), visibility .22s; pointer-events: none; }
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.no-script { text-align: center; font-size: 12px; padding: 10px 20px; }

@media (min-width: 1600px) and (min-height: 850px) {
  .home { width: 516px; }
  .avatar-frame { width: 114px; height: 114px; }
  h1 { font-size: 84px; margin-top: 21px; }
  .tagline { font-size: 17px; }
  .socials { margin-top: 15px; }
  .stats { margin-top: 25px; }
  .destinations { margin-top: 47px; gap: 16px; }
  .destination-card { min-height: 98px; }
}
@media (max-width: 600px) {
  .scenery-image { object-position: var(--bg-position-mobile, 50% 50%); }
  .scenery-shade { background: linear-gradient(180deg, rgba(12, 29, 45, .14), rgba(9, 25, 42, .20) 52%, rgba(5, 17, 29, .66)), rgba(10, 26, 43, var(--overlay-opacity, .2)); }
  .main { padding: max(46px, env(safe-area-inset-top)) 24px 46px; }
  .home { max-width: 402px; transform: none; }
  .avatar-frame { width: 91px; height: 91px; }
  h1 { font-size: 65px; margin-top: 19px; letter-spacing: .065em; }
  .tagline { font-size: 14px; letter-spacing: .10em; }
  .socials { margin-top: 10px; }
  .stats { width: calc(100% - 18px); margin-top: 21px; }
  .stats-trigger { padding: 0 14px; gap: 9px; }
  .stats-label { font-size: 12px; }
  .stats-panel { padding-left: 14px; padding-right: 14px; }
  .destinations { gap: 12px; margin-top: 35px; }
  .destination-card { min-height: 91px; padding: 22px 15px; gap: 11px; border-radius: 13px; }
  .destination-icon { width: 25px; height: 25px; }
  .card-title { font-size: 14px; letter-spacing: .03em; }
  .card-description { font-size: 10px; letter-spacing: 0; }
  .card-arrow { top: 11px; right: 11px; width: 12px; height: 12px; }
  .footer { padding: 0 18px max(21px, env(safe-area-inset-bottom)); }
  .signature { font-size: 8px; letter-spacing: .26em; margin-bottom: 10px; }
  .filings { font-size: 9px; column-gap: 9px; }
}
@media (max-width: 350px) {
  .main { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 59px; }
  .stats { width: 100%; }
  .destination-card { padding-left: 12px; padding-right: 12px; gap: 9px; }
  .destination-icon { width: 22px; height: 22px; }
  .card-title { font-size: 13px; }
  .filing-divider { display: none; }
}
@media (max-height: 760px) and (min-width: 601px) {
  .main { padding-top: 35px; padding-bottom: 34px; }
  .home { transform: none; }
  .avatar-frame { width: 86px; height: 86px; }
  h1 { font-size: 65px; margin-top: 14px; }
  .tagline { font-size: 14px; }
  .socials { margin-top: 8px; }
  .stats { margin-top: 17px; }
  .destinations { margin-top: 31px; }
  .destination-card { min-height: 84px; padding-top: 17px; padding-bottom: 17px; }
  .footer { padding-bottom: 17px; }
}
@media (hover: none), (pointer: coarse) {
  .destination-card:hover { --lift: 0px; }
  .destination-card:active { background-color: rgba(116, 151, 170, .37); }
  .social-link:hover { transform: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .destination-card, .stats-glass { background: rgba(41, 67, 89, .88); }
  .stats[data-open="true"] .stats-glass { background: rgba(35, 62, 85, .98); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .destination-card { transform: none !important; }
  .dot-stream i { opacity: .35; }
}

@media (max-width: 600px) {
  :root { --stats-body: 150px; }
  .stats-panel-head { margin-bottom: 9px; }
  .heatmap-wrap { height: 68px; }
  .heatmap { grid-template-rows: repeat(7, 7px); height: 67px; }
  .heat-cell { max-width: 7px; height: 7px; }
  .stats-panel-foot { margin-top: 10px; }
}

.stats-updated { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.stats-profile { flex-shrink: 0; }

.destination-card { height: 100%; }

/* Reserve extra overlay space only when model details are available. */
.stats[data-models="true"] { --stats-body: 276px; }
.stats-models { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(213,235,246,.13); }
.stats-models-label { margin: 0 0 6px; font-size: 10px; font-weight: 400; color: #bbcedc; }
.stats-model-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.stats-model-list li { display: flex; gap: 10px; justify-content: space-between; font-size: 11px; line-height: 1.35; }
.stats-model-list li > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-tokens { flex-shrink: 0; color: #b9e2d9; font-variant-numeric: tabular-nums; }
.copyright { white-space: nowrap; }
@media (max-width: 600px) { .stats[data-models="true"] { --stats-body: 260px; } }
