.page-home {
  --home-kicker-size: 0.8rem;
  --home-hero-min-height: 560px;
  --home-card-pad: 32px;
  --home-ascent: cubic-bezier(0.2, 0.8, 0.2, 1);
}

.page-home .home-hero {
  position: relative;
  background: var(--ms-midnight);
  color: var(--ms-white);
  overflow: hidden;
  min-height: var(--home-hero-min-height);
}

.page-home .home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(118deg, rgba(26, 26, 46, 0.94) 0%, rgba(26, 26, 46, 0.78) 46%, rgba(212, 0, 0, 0.28) 100%);
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 6px;
  z-index: 4;
  background: linear-gradient(90deg, var(--ms-gold) 0 26%, var(--ms-red) 26% 100%);
  transform: skewY(-0.6deg);
  pointer-events: none;
}

.page-home .home-hero-shell {
  position: relative;
  z-index: 3;
  padding: 64px 16px 56px;
}

.page-home .home-hero-grid {
  display: grid;
  gap: 36px;
}

.page-home .home-hero-copy {
  max-width: 620px;
}

.page-home .home-hero-kicker {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: var(--home-kicker-size);
  letter-spacing: 0.08em;
  color: var(--ms-gold);
  text-transform: uppercase;
}

.page-home .home-hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.page-home .home-hero-lead {
  margin: 0 0 24px;
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
  max-width: 52ch;
}

.page-home .home-hero-lines {
  display: grid;
  gap: 8px;
  max-width: 420px;
}

.page-home .home-hero-lines i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ms-gold) 0 36%, var(--ms-red) 36% 100%);
  animation: homeLinePulse 2.8s var(--home-ascent) infinite;
}

.page-home .home-hero-lines i:nth-child(2) {
  width: 82%;
}

.page-home .home-hero-lines i:nth-child(3) {
  width: 64%;
  margin-left: auto;
}

.page-home .home-hero-lines i:nth-child(4) {
  width: 46%;
}

.page-home .home-hero-action {
  display: grid;
  gap: 16px;
}

.page-home .home-step-card {
  position: relative;
  background: var(--ms-white);
  color: var(--ms-text);
  border-radius: var(--radius-lg);
  padding: var(--home-card-pad);
  box-shadow: var(--shadow-float);
}

.page-home .home-step-card::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ms-red);
}

.page-home .home-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.page-home .home-step-heading {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-home .home-steps-diagram {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.page-home .home-step-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ms-midnight);
  color: var(--ms-white);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
}

.page-home .home-step-dot:last-child {
  background: var(--ms-red);
}

.page-home .home-step-line {
  flex: 1;
  border-top: 2px dashed var(--ms-red);
  opacity: 0.55;
}

.page-home .home-step-desc {
  margin: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.9;
}

.page-home .home-step-cta {
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-red);
}

.page-home .home-step-meta {
  margin: 14px 0 0;
  font-size: 0.8rem;
  color: var(--ms-muted);
  text-align: center;
}

.page-home .home-ticker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
}

.page-home .home-ticker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.page-home .home-ticker-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ms-gold);
}

.page-home .home-ticker-unit {
  margin-left: 2px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

.page-home .home-ticker-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.68);
  letter-spacing: 0.04em;
}

.page-home .home-live {
  background: var(--ms-gray);
}

.page-home .home-live-grid {
  display: grid;
  gap: 28px;
}

.page-home .home-dash {
  padding: 0;
  overflow: hidden;
}

.page-home .home-dash-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.page-home .home-dash-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .home-dash-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(212, 0, 0, 0.18) 46%, rgba(255, 215, 0, 0.28) 52%, transparent 72%);
  transform: translateX(-100%);
  animation: homeScan 5.5s ease-in-out infinite;
  pointer-events: none;
}

.page-home .home-dash-body {
  padding: 24px;
}

.page-home .home-dash-body h3,
.page-home .home-brief h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
}

.page-home .home-dash-body p {
  margin: 0 0 18px;
  color: var(--ms-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

.page-home .home-dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid #e5e7eb;
}

.page-home .home-dash-stats div {
  text-align: center;
}

.page-home .home-dash-stats dt {
  font-size: 0.78rem;
  color: var(--ms-muted);
  margin-bottom: 4px;
}

.page-home .home-dash-stats dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ms-red);
}

.page-home .home-brief {
  padding: 24px;
}

.page-home .home-brief-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.page-home .home-brief-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.page-home .home-brief-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--ms-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.page-home .home-brief-item + .home-brief-item {
  margin-top: 0;
}

.page-home .home-brief-tag {
  flex-shrink: 0;
}

.page-home .home-brief-text {
  flex: 1;
  min-width: 0;
}

.page-home .home-brief-text strong {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.page-home .home-brief-text span {
  font-size: 0.82rem;
  color: var(--ms-muted);
}

.page-home .home-brief-time {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ms-red);
  white-space: nowrap;
}

.page-home .home-reorg {
  background: var(--ms-midnight);
  color: var(--ms-white);
}

.page-home .home-reorg .section-title {
  color: var(--ms-white);
}

.page-home .home-reorg-aside p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.85;
  font-size: 0.95rem;
}

.page-home .home-reorg-btn {
  margin-top: 8px;
}

.page-home .home-reorg-layout {
  display: grid;
  gap: 36px;
}

.page-home .home-reorg-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-home .home-reorg-aside .badge {
  margin-bottom: 12px;
}

.page-home .home-reorg-timeline {
  position: relative;
  display: grid;
  gap: 16px;
}

.page-home .home-reorg-timeline::before {
  content: "";
  position: absolute;
  left: 25px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--ms-gold) 0%, var(--ms-red) 100%);
  z-index: 0;
}

.page-home .home-reorg-item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
}

.page-home .home-reorg-index {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ms-gold);
  padding-top: 4px;
}

.page-home .home-reorg-desc h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
}

.page-home .home-reorg-desc p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  line-height: 1.7;
}

.page-home .home-tablet {
  background: var(--ms-white);
}

.page-home .home-tablet-layout {
  display: grid;
  gap: 36px;
  align-items: center;
}

.page-home .home-tablet-copy .badge {
  margin-bottom: 10px;
}

.page-home .home-tablet-copy p {
  color: var(--ms-muted);
  line-height: 1.85;
  font-size: 0.95rem;
}

.page-home .home-tablet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  gap: 10px;
}

.page-home .home-tablet-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.page-home .home-tablet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--ms-red);
  border-radius: 2px;
  transform: rotate(12deg);
}

.page-home .home-tablet-device {
  display: flex;
  justify-content: center;
  padding: 12px 0;
}

.page-home .home-tablet-body {
  width: 100%;
  max-width: 620px;
  background: #08081a;
  border: 10px solid #2c2c46;
  border-radius: 30px;
  padding: 10px;
  box-shadow: 18px 18px 0 rgba(212, 0, 0, 0.24);
}

.page-home .home-tablet-screen {
  overflow: hidden;
  border-radius: 12px;
}

.page-home .home-tablet-screen img {
  display: block;
  width: 100%;
  height: auto;
}

.page-home .home-archive {
  background: var(--ms-gray);
}

.page-home .home-archive-inner {
  display: grid;
  gap: 28px;
  padding: 28px;
}

.page-home .home-archive-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
}

.page-home .home-archive-body .badge {
  margin-bottom: 8px;
}

.page-home .home-archive-body h2 {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
}

.page-home .home-archive-body p {
  margin: 0 0 12px;
  color: var(--ms-muted);
  line-height: 1.8;
  font-size: 0.92rem;
}

.page-home .home-archive-note {
  font-size: 0.88rem;
}

.page-home .home-archive-trigger {
  margin-top: 6px;
}

.page-home .home-archive-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
}

.page-home .home-archive-panel ul,
.page-home .home-fav-detail ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.page-home .home-archive-panel a {
  display: inline-block;
  padding: 10px 18px;
  background: var(--ms-gray);
  border-radius: var(--radius-pill);
  color: var(--ms-text);
  font-weight: 500;
  font-size: 0.9rem;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.page-home .home-archive-panel a:hover {
  background: var(--ms-red);
  color: var(--ms-white);
  transform: translateX(4px);
}

.page-home .home-fav {
  background: var(--ms-midnight);
  color: var(--ms-white);
}

.page-home .home-fav .section-title {
  color: var(--ms-white);
}

.page-home .home-fav .section-sub {
  color: rgba(255, 255, 255, 0.68);
}

.page-home .home-fav-grid {
  margin-bottom: 24px;
}

.page-home .home-fav-card {
  position: relative;
  overflow: hidden;
  padding-top: 28px;
}

.page-home .home-fav-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ms-red) 0 62%, var(--ms-gold) 62% 100%);
}

.page-home .home-fav-icon {
  display: inline-block;
  font-size: 1.6rem;
  color: var(--ms-gold);
  margin-bottom: 12px;
}

.page-home .home-fav-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
}

.page-home .home-fav-card p {
  margin: 0;
  color: var(--ms-muted);
  font-size: 0.88rem;
  line-height: 1.72;
}

.page-home .home-fav-bottom {
  display: grid;
  gap: 20px;
  padding: 28px;
}

.page-home .home-fav-desc p {
  margin: 0;
  color: var(--ms-muted);
  line-height: 1.8;
  font-size: 0.93rem;
}

.page-home .home-fav-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.page-home .home-fav-detail {
  margin-top: 4px;
}

.page-home .home-fav-detail li {
  padding: 12px 14px;
  background: var(--ms-gray);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.6;
}

.page-home .home-trust {
  background: var(--ms-dark);
  color: var(--ms-white);
  padding: 56px 0 64px;
  border-top: 4px solid var(--ms-red);
}

.page-home .home-trust-grid {
  display: grid;
  gap: 32px;
}

.page-home .home-trust-brand .brand-mark {
  display: inline-block;
  margin-bottom: 16px;
}

.page-home .home-trust-brand p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.8;
}

.page-home .home-trust h3 {
  margin: 0 0 14px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ms-gold);
  text-transform: uppercase;
}

.page-home .home-trust-links ul,
.page-home .home-trust-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.page-home .home-trust-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.page-home .home-trust-links a:hover {
  color: var(--ms-gold);
  padding-left: 4px;
}

.page-home .home-trust-contact li {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.65;
}

.page-home .home-trust-note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  line-height: 1.7;
}

@keyframes homePulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

@keyframes homeScan {
  0%, 100% {
    transform: translateX(-100%);
  }
  45% {
    transform: translateX(100%);
  }
  55% {
    transform: translateX(100%);
  }
}

@keyframes homeLinePulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.page-home .home-ticker-num {
  animation: homePulse 2.4s var(--home-ascent) infinite;
}

.page-home .home-dash-stats dd {
  animation: homePulse 1.8s var(--home-ascent) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-ticker-num,
  .page-home .home-dash-stats dd,
  .page-home .home-hero-lines i,
  .page-home .home-dash-media::after {
    animation: none;
  }
}

@media (min-width: 640px) {
  .page-home .home-hero-shell {
    padding: 72px 24px 64px;
  }

  .page-home .home-ticker {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .home-trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .page-home .home-archive-inner {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    padding: 34px;
  }

  .page-home .home-reorg-layout {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 48px;
  }

  .page-home .home-reorg-aside {
    position: sticky;
    top: 120px;
    align-self: start;
  }

  .page-home .home-fav-bottom {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
  }

  .page-home .home-fav-actions {
    justify-content: flex-end;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: stretch;
    gap: 48px;
  }

  .page-home .home-hero-copy {
    padding: 24px 0;
  }

  .page-home .home-hero-action {
    justify-content: center;
  }

  .page-home .home-live-grid {
    grid-template-columns: 1.3fr 1fr;
    align-items: start;
  }

  .page-home .home-tablet-layout {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  .page-home .home-tablet-device {
    padding: 8px;
  }

  .page-home .home-trust-grid {
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
    gap: 48px;
  }
}
