.page-home{
  --home-tilt:-1.2deg;
  --home-tilt-alt:0.8deg;
  background:var(--ink);
  color:var(--text);
  overflow-x:clip;
}
.page-home img{max-width:100%;height:auto;}

.page-home .home-topbar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px 18px;
  padding-top:16px;
  padding-bottom:14px;
  border-bottom:1px solid var(--line);
}
.page-home .home-topbar__note{
  margin:0;
  font-size:12px;
  letter-spacing:.04em;
  color:var(--muted);
}

/* ---------- hero ---------- */
.page-home .home-hero{
  padding-block:clamp(26px,6vw,56px) clamp(40px,7vw,84px);
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(123,92,255,.22), transparent 58%),
    radial-gradient(80% 60% at 0% 100%, rgba(47,227,232,.08), transparent 60%);
}
.page-home .home-hero__grid{
  display:grid;
  gap:clamp(26px,5vw,52px);
}
.page-home .home-hero__copy{min-width:0;}
.page-home .home-hero h1{
  margin:12px 0 18px;
  font-family:var(--font-display);
  font-weight:800;
  font-size:clamp(2.1rem,7.2vw,4.1rem);
  line-height:1.12;
  letter-spacing:-0.02em;
}
.page-home .home-hero__lead{
  max-width:34em;
  margin:0 0 24px;
  font-size:clamp(16px,1.1vw,18px);
  line-height:1.8;
  color:var(--text);
}
.page-home .home-hero__actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:20px;
}
.page-home .home-hero__fav{
  display:flex;
  align-items:flex-start;
  gap:8px;
  max-width:32em;
  margin:0;
  font-size:14px;
  line-height:1.7;
  color:var(--muted);
}
.page-home .home-hero__fav .status-dot{margin-top:7px;flex:0 0 auto;}

.page-home .home-frame{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:12px;
  min-height:340px;
  padding:14px;
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(123,92,255,.16), rgba(7,11,24,0) 48%), var(--ink-deep);
  clip-path:polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.page-home .home-frame::after{
  content:"";
  position:absolute;
  top:16px;
  bottom:16px;
  left:0;
  width:5px;
  background:repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px 14px);
  opacity:.9;
  pointer-events:none;
}
.page-home .home-frame__sky{
  position:absolute;
  top:8px;
  right:8px;
  width:62%;
  max-width:260px;
  height:auto;
  pointer-events:none;
}
.page-home .home-frame__photo{
  position:relative;
  flex:1;
  min-height:250px;
  margin:0;
  overflow:hidden;
  border:1px solid var(--line);
}
.page-home .home-frame__photo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:saturate(.85) brightness(.9);
}
.page-home .home-frame__caption{
  position:absolute;
  inset:auto 0 0 0;
  padding:26px 12px 10px;
  font-size:12px;
  letter-spacing:.02em;
  color:var(--paper);
  background:linear-gradient(180deg, transparent, rgba(7,11,24,.9));
}
.page-home .home-frame__readout{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:6px 14px;
  padding-top:10px;
  border-top:1px dashed var(--line);
}
.page-home .home-frame__readout-item{
  font-size:12px;
  letter-spacing:.06em;
  color:var(--gold);
}

/* ---------- index ---------- */
.page-home .home-index{display:none;}

.page-home .home-index__title{
  margin:0 0 6px;
  font-family:var(--font-mono);
  font-size:11px;
  letter-spacing:.16em;
  color:var(--muted);
}
.page-home .home-index a{
  display:flex;
  align-items:baseline;
  gap:8px;
  padding:5px 4px 5px 8px;
  border-left:2px solid transparent;
  font-size:12px;
  line-height:1.4;
  color:var(--muted);
  text-decoration:none;
  transition:color .24s var(--ease), border-color .24s var(--ease);
}
.page-home .home-index a:hover,
.page-home .home-index a:focus-visible{color:var(--cyan);border-left-color:var(--cyan);}
.page-home .home-index a[aria-current="true"]{color:var(--cyan);border-left-color:var(--cyan);}
.page-home .home-index .mono{color:var(--violet);font-size:11px;}

/* ---------- sections ---------- */
.page-home .home-section{
  padding-block:clamp(44px,8vw,92px);
  border-top:1px solid var(--line);
}
.page-home .home-section--alt{background:var(--ink-deep);}
.page-home .home-section--tail{padding-bottom:clamp(56px,9vw,110px);}
.page-home .home-section__head{max-width:44rem;margin-bottom:clamp(24px,4vw,44px);}
.page-home .home-section h2{
  margin:10px 0 12px;
  font-family:var(--font-display);
  font-weight:800;
  font-size:clamp(1.6rem,4.6vw,2.5rem);
  line-height:1.22;
  letter-spacing:-0.02em;
}
.page-home .home-section__lead{
  margin:0;
  max-width:38em;
  font-size:16px;
  line-height:1.78;
  color:var(--muted);
}
.page-home .home-section__foot{margin:18px 0 0;}
.page-home .home-link{
  display:inline-block;
  font-size:14px;
  color:var(--cyan);
  text-decoration:none;
  border-bottom:1px solid rgba(47,227,232,.45);
  padding-bottom:2px;
  transition:border-color .24s var(--ease), color .24s var(--ease);
}
.page-home .home-link:hover,
.page-home .home-link:focus-visible{border-color:var(--cyan);color:var(--text);}

/* ---------- timeline ---------- */
.page-home .timeline{
  list-style:none;
  margin:0;
  padding:0 0 10px;
  display:flex;
  gap:12px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  -webkit-overflow-scrolling:touch;
}
.page-home .timeline::-webkit-scrollbar{height:6px;}
.page-home .timeline::-webkit-scrollbar-thumb{background:var(--line);border-radius:3px;}
.page-home .timeline__day{
  flex:0 0 clamp(142px,42vw,168px);
  scroll-snap-align:start;
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:16px 14px;
  border:1px solid var(--line);
  background:var(--ink-deep);
  transition:border-color .24s var(--ease), transform .24s var(--ease);
}
.page-home .timeline__day:hover{border-color:var(--violet);transform:translateY(-2px);}
.page-home .timeline__day--now{
  border-color:var(--cyan);
  background:linear-gradient(180deg, rgba(47,227,232,.14), transparent 72%), var(--ink-deep);
}
.page-home .timeline__date{
  font-size:13px;
  letter-spacing:.08em;
  color:var(--muted);
}
.page-home .timeline__count{
  font-size:13px;
  color:var(--text);
}
.page-home .timeline__count .stat{
  font-family:var(--font-mono);
  font-size:26px;
  color:var(--gold);
  letter-spacing:.02em;
}
.page-home .timeline__tag{font-size:12px;line-height:1.5;color:var(--muted);}

/* ---------- stats ---------- */
.page-home .stat-grid{display:grid;gap:clamp(20px,4vw,36px);}
.page-home .stat-col{display:flex;flex-direction:column;gap:clamp(18px,3vw,26px);min-width:0;}
.page-home .stat-card{
  position:relative;
  padding:clamp(18px,3vw,28px);
  border:1px solid var(--line);
  background:var(--panel);
  transform:rotate(var(--home-tilt));
  transition:transform .32s var(--ease), border-color .32s var(--ease);
}
.page-home .stat-col--b .stat-card{--home-tilt:var(--home-tilt-alt);}
.page-home .stat-card:hover{transform:rotate(0deg);border-color:var(--violet);}
.page-home .stat-card h3{
  margin:0 0 6px;
  font-family:var(--font-display);
  font-size:clamp(18px,2vw,21px);
  font-weight:700;
  letter-spacing:-0.01em;
}
.page-home .stat-card__meta{
  margin:0 0 14px;
  font-size:11px;
  letter-spacing:.1em;
  color:var(--muted);
}
.page-home .stat-card__note{
  margin:14px 0 0;
  padding-top:12px;
  border-top:1px dashed var(--line);
  font-size:14px;
  line-height:1.7;
  color:var(--muted);
}
.page-home .stat-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:4px 12px;
  padding-block:10px;
  border-bottom:1px dashed var(--line);
}
.page-home .stat-row:last-of-type{border-bottom:0;}
.page-home .stat-row__label{font-size:13px;color:var(--text);}
.page-home .stat-row__value{
  font-family:var(--font-mono);
  font-size:16px;
  color:var(--gold);
  letter-spacing:.04em;
}
.page-home .bar{
  grid-column:1 / -1;
  display:block;
  height:6px;
  border-radius:2px;
  background:var(--line);
  overflow:hidden;
}
.page-home .bar__fill{
  display:block;
  height:100%;
  width:var(--w,50%);
  background:var(--violet);
}
.page-home .bar__fill--cyan{background:var(--cyan);}
.page-home .bar__fill--gold{background:var(--gold);}

.page-home .stat-delta{list-style:none;margin:0;padding:0;}
.page-home .stat-delta__item{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding-block:9px;
  border-bottom:1px dashed var(--line);
  font-size:14px;
  color:var(--text);
}
.page-home .stat-delta__item:last-child{border-bottom:0;}
.page-home .stat-delta__num{
  font-family:var(--font-mono);
  color:var(--cyan);
  letter-spacing:.04em;
}
.page-home .stat-delta__num--neg{color:var(--rose);}

.page-home .home-shot{
  margin:0;
  border:1px solid var(--line);
  background:var(--ink);
  overflow:hidden;
}
.page-home .home-shot img{
  display:block;
  width:100%;
  aspect-ratio:4 / 3;
  object-fit:cover;
  filter:saturate(.8) brightness(.85);
}
.page-home .home-shot__caption{
  padding:10px 14px;
  font-size:12px;
  letter-spacing:.02em;
  color:var(--muted);
  border-top:1px solid var(--line);
}

/* ---------- paper strip ---------- */
.page-home .home-quote{
  background:var(--paper);
  color:#131A2C;
}
.page-home .home-quote__inner{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:14px 28px;
  padding-block:clamp(26px,4vw,40px);
}
.page-home .home-quote__text{
  flex:1 1 320px;
  margin:0;
  font-size:clamp(16px,1.8vw,20px);
  line-height:1.7;
  max-width:40em;
}
.page-home .home-link--dark{
  color:#2A2A6B;
  border-bottom-color:rgba(42,42,107,.4);
  font-weight:600;
}
.page-home .home-link--dark:hover,
.page-home .home-link--dark:focus-visible{color:#0A0F1F;border-color:#0A0F1F;}

/* ---------- pocket ---------- */
.page-home .pocket{display:grid;gap:clamp(24px,4vw,40px);}
.page-home .pocket__phone{
  width:min(268px,100%);
  margin-inline:auto;
  padding:10px;
  border:1px solid var(--line);
  border-radius:28px;
  background:var(--ink-deep);
  box-shadow:0 26px 60px rgba(0,0,0,.45);
}
.page-home .pocket__bar{
  margin:2px 4px 8px;
  font-size:11px;
  letter-spacing:.14em;
  color:var(--cyan);
}
.page-home .pocket__phone img{
  display:block;
  width:100%;
  aspect-ratio:2 / 3;
  object-fit:cover;
  border-radius:20px;
  border:1px solid var(--line);
}
.page-home .pocket__caption{
  margin:10px 4px 2px;
  font-size:11px;
  line-height:1.5;
  letter-spacing:.04em;
  color:var(--muted);
}
.page-home .pocket__steps{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:clamp(16px,3vw,22px);
}
.page-home .pocket__step{
  position:relative;
  padding:16px 18px 16px 22px;
  border-left:2px solid var(--violet);
  background:linear-gradient(90deg, rgba(123,92,255,.12), transparent 70%);
}
.page-home .pocket__step h3{
  margin:0 0 6px;
  font-family:var(--font-display);
  font-size:17px;
  font-weight:700;
}
.page-home .pocket__step p{
  margin:0;
  font-size:14px;
  line-height:1.75;
  color:var(--muted);
}
.page-home .pocket__num{
  display:block;
  margin-bottom:4px;
  font-size:12px;
  letter-spacing:.12em;
  color:var(--gold);
}
.page-home .pocket__cta{margin:0;}

/* ---------- reports ---------- */
.page-home .reports{display:grid;gap:clamp(20px,4vw,36px);}
.page-home .reports__photo{
  margin:0;
  border:1px solid var(--line);
  overflow:hidden;
  background:var(--ink);
}
.page-home .reports__photo img{
  display:block;
  width:100%;
  aspect-ratio:3 / 2;
  object-fit:cover;
  filter:saturate(.75) brightness(.82);
}
.page-home .reports__photo figcaption{
  padding:10px 14px;
  font-size:12px;
  color:var(--muted);
  border-top:1px solid var(--line);
}
.page-home .reports__list{display:flex;flex-direction:column;gap:clamp(18px,3vw,26px);min-width:0;}
.page-home .report{
  padding-bottom:clamp(16px,3vw,22px);
  border-bottom:1px solid var(--line);
}
.page-home .report:last-child{border-bottom:0;padding-bottom:0;}
.page-home .report__meta{
  margin:0 0 6px;
  font-size:12px;
  letter-spacing:.1em;
  color:var(--violet);
}
.page-home .report h3{
  margin:0 0 8px;
  font-family:var(--font-display);
  font-size:clamp(18px,2.2vw,22px);
  font-weight:700;
  line-height:1.4;
  letter-spacing:-0.01em;
}
.page-home .report p{
  margin:0 0 10px;
  max-width:36em;
  font-size:15px;
  line-height:1.85;
  color:var(--muted);
}
.page-home .report__link{
  font-size:13px;
  color:var(--cyan);
  text-decoration:none;
  border-bottom:1px solid rgba(47,227,232,.4);
  padding-bottom:1px;
}
.page-home .report__link:hover,
.page-home .report__link:focus-visible{border-color:var(--cyan);color:var(--text);}

/* ---------- next ---------- */
.page-home .next-grid{
  display:grid;
  gap:14px;
  grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
}
.page-home .next-card{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:20px 18px;
  border:1px solid var(--line);
  background:var(--ink-deep);
  color:var(--text);
  text-decoration:none;
  clip-path:polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  transition:border-color .26s var(--ease), transform .26s var(--ease), background .26s var(--ease);
}
.page-home .next-card:hover,
.page-home .next-card:focus-visible{
  border-color:var(--cyan);
  background:var(--panel);
  transform:translateY(-3px);
}
.page-home .next-card__index{
  font-size:11px;
  letter-spacing:.14em;
  color:var(--gold);
}
.page-home .next-card__title{
  margin:0;
  font-family:var(--font-display);
  font-size:18px;
  font-weight:700;
}
.page-home .next-card__text{
  margin:0;
  font-size:14px;
  line-height:1.75;
  color:var(--muted);
}
.page-home .home-contact{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:14px 36px;
  margin-top:clamp(24px,4vw,40px);
  padding-top:clamp(20px,3vw,28px);
  border-top:1px dashed var(--line);
}
.page-home .home-contact__item{display:flex;flex-direction:column;gap:4px;}
.page-home .home-contact__label{
  font-size:11px;
  letter-spacing:.14em;
  color:var(--muted);
}
.page-home .home-contact__value{
  font-size:15px;
  color:var(--text);
  word-break:break-word;
}
.page-home .home-contact__note{
  flex:1 1 280px;
  margin:0;
  font-size:13px;
  line-height:1.7;
  color:var(--muted);
}

.page-home .to-top{
  position:fixed;
  right:16px;
  bottom:16px;
  z-index:6;
}

.page-home a:focus-visible,
.page-home button:focus-visible{
  outline:2px solid var(--cyan);
  outline-offset:3px;
}

/* ---------- responsive ---------- */
@media (min-width:720px){
  .page-home .pocket{
    grid-template-columns:minmax(0,260px) minmax(0,1fr);
    align-items:start;
  }
  .page-home .pocket__phone{margin-inline:0;}
  .page-home .pocket__cta{grid-column:2;}
}

@media (min-width:900px){
  .page-home .home-hero__grid{
    grid-template-columns:minmax(0,1fr) clamp(260px,30%,360px);
    align-items:stretch;
  }
  .page-home .home-frame{min-height:100%;}
  .page-home .stat-grid{
    grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);
    align-items:start;
  }
  .page-home .stat-col--b{margin-top:clamp(24px,4vw,64px);}
  .page-home .reports{
    grid-template-columns:minmax(0,0.85fr) minmax(0,1.35fr);
    align-items:start;
  }
  .page-home .reports__photo{position:sticky;top:24px;}
}

@media (min-width:1320px){
  .page-home .home-index{
    display:flex;
    flex-direction:column;
    gap:2px;
    position:fixed;
    top:50%;
    right:22px;
    transform:translateY(-50%);
    z-index:5;
    padding:14px 12px;
    border:1px solid var(--line);
    background:rgba(14,20,40,.88);
    backdrop-filter:blur(8px);
  }
}

@media (prefers-reduced-motion:reduce){
  .page-home .stat-card,
  .page-home .timeline__day,
  .page-home .next-card{transition:opacity .2s linear;}
  .page-home .stat-card,
  .page-home .stat-card:hover{transform:none;}
  .page-home .timeline__day:hover,
  .page-home .next-card:hover{transform:none;}
}

.page-home {
  --w: 1rem;
}
