.page-home {
  --ph-hero-h: clamp(560px, 88vh, 780px);
  --ph-gap: clamp(1.25rem, 3vw, 2.5rem);
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow-x: clip;
}

.page-home img {
  max-width: 100%;
  height: auto;
}

.page-home .ph-hero {
  position: relative;
  min-height: var(--ph-hero-h);
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}

.page-home .ph-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.page-home .ph-hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: saturate(1.2) contrast(1.1);
}

.page-home .ph-hero__scan {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 6px, rgba(0, 0, 0, 0.22) 6px 8px);
  mix-blend-mode: overlay;
}

.page-home .ph-hero__glitch--one,
.page-home .ph-hero__glitch--two {
  position: absolute;
  left: -2%;
  right: -2%;
  height: 8px;
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: screen;
}

.page-home .ph-hero__glitch--one {
  background: var(--pink);
  animation: ph-glitch-one 3.6s steps(14) infinite;
}

.page-home .ph-hero__glitch--two {
  background: var(--cyan);
  animation: ph-glitch-two 2.9s steps(18) infinite;
}

.page-home .ph-hero__burst {
  position: absolute;
  top: 1.8rem;
  right: 1rem;
  width: clamp(110px, 15vw, 210px);
  opacity: 0.72;
  z-index: 4;
  pointer-events: none;
  transform: rotate(10deg);
  animation: ph-burst-spin 22s linear infinite;
}

.page-home .ph-hero__burst-svg {
  width: 100%;
  height: auto;
  display: block;
}

.page-home .ph-hero__inner {
  position: relative;
  z-index: 5;
  padding-top: clamp(4.5rem, 9vh, 6.5rem);
  padding-bottom: 2.8rem;
}

.page-home .ph-hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--cyan);
  margin: 0 0 0.6rem;
  word-break: break-all;
}

.page-home .ph-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 8.5vw, 5.6rem);
  line-height: 0.98;
  margin: 0.4rem 0 0.5rem;
  color: var(--white);
  letter-spacing: 0.02em;
  text-shadow: 3px 3px 0 var(--pink), -2px -2px 0 var(--cyan), 0 0 32px rgba(255, 42, 122, 0.4);
  overflow-wrap: anywhere;
}

.page-home .ph-hero__subtitle {
  font-family: var(--font-mono);
  font-size: clamp(0.95rem, 2.4vw, 1.45rem);
  color: var(--pink);
  border: 2px solid var(--pink);
  display: inline-block;
  padding: 0.3rem 0.9rem;
  transform: rotate(-1.5deg);
  background: rgba(10, 10, 10, 0.55);
}

.page-home .ph-hero__lead {
  max-width: 58ch;
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 1.1rem 0 0;
  color: rgba(245, 240, 230, 0.86);
}

.page-home .ph-hero__status {
  margin: 1.1rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.page-home .status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.page-home .ph-hero__actions {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.page-home .ph-hero__actions .button--solid {
  border: 1px solid var(--pink);
  box-shadow: 4px 4px 0 var(--pink);
}

.page-home .ph-hero__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.6rem;
}

.page-home .ph-hero__quick a {
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  border-left: 2px solid var(--pink);
  padding: 0.18rem 0.55rem;
  background: rgba(255, 42, 122, 0.08);
  transition: background 0.2s ease, color 0.2s ease;
}

.page-home .ph-hero__quick a:hover {
  background: rgba(255, 42, 122, 0.24);
  color: var(--white);
}

.page-home .ph-batch-strip {
  position: relative;
  z-index: 5;
  background: var(--purple);
  color: var(--white);
  border-block: 2px solid var(--pink);
  padding: 0.55rem 0;
  overflow: hidden;
}

.page-home .ph-batch-strip__inner {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: ph-ticker 40s linear infinite;
}

.page-home .ph-batch-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-right: 2.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.page-home .ph-batch-item::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--pink);
  transform: rotate(45deg);
  flex: none;
}

.page-home .ph-batch-item__label {
  color: var(--pink);
  font-weight: 700;
}

.page-home .ph-section {
  padding: clamp(3rem, 7vw, 5.8rem) 0;
}

.page-home .ph-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.8rem 1.25rem;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.page-home .ph-section__index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--ink);
  color: var(--pink);
  padding: 0.45rem 0.7rem;
  display: inline-block;
  transform: rotate(-2deg);
  font-weight: 700;
  line-height: 1;
}

.page-home .ph-section__heading {
  flex: 1 1 auto;
  min-width: min(100%, 20rem);
}

.page-home .ph-section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  margin: 0.2rem 0 0.4rem;
}

.page-home .ph-section__intro {
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 52ch;
  opacity: 0.78;
  margin: 0;
}

.page-home .ph-section__link {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--pink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.18rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-home .ph-section__link:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.page-home .ph-today {
  background: var(--paper);
  color: var(--ink);
}

.page-home .ph-today .ph-section__intro {
  color: rgba(10, 10, 10, 0.72);
}

.page-home .ph-today .ph-section__link {
  color: var(--red);
}

.page-home .ph-today-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.page-home .ph-update-card {
  position: relative;
  background: var(--ink);
  border: 2px solid var(--border);
  border-top: 5px solid var(--pink);
  color: var(--paper);
  padding: 1.1rem 1.2rem 1.3rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.page-home .ph-update-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--red);
}

.page-home .ph-update-card__num {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 42, 122, 0.4);
}

.page-home .ph-update-card__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.7rem;
  background: var(--red);
  color: var(--white);
}

.page-home .ph-update-card__tag--hot {
  background: var(--pink);
}

.page-home .ph-update-card__tag--old {
  background: var(--purple);
}

.page-home .ph-update-card__tag--sync {
  background: var(--yellow);
  color: var(--ink);
}

.page-home .ph-update-card__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.3rem;
}

.page-home .ph-update-card__name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-home .ph-update-card__name a:hover {
  color: var(--pink);
}

.page-home .ph-update-card__meta {
  font-size: 0.8rem;
  line-height: 1.5;
  color: rgba(245, 240, 230, 0.7);
  margin: 0 0 1rem;
}

.page-home .ph-update-card__link {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--pink);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
}

.page-home .ph-update-card__link:hover {
  color: var(--cyan);
}

.page-home .ph-weekly {
  background: var(--ink);
  color: var(--paper);
}

.page-home .ph-weekly-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.page-home .ph-weekly-card--lead {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--purple-deep);
  border: 2px solid var(--purple);
  overflow: hidden;
}

.page-home .ph-weekly-card__cover {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  background: #120b14;
}

.page-home .ph-weekly-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .ph-weekly-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
}

.page-home .ph-weekly-card__cat {
  font-size: 0.72rem;
  color: var(--pink);
  letter-spacing: 0.1em;
}

.page-home .ph-weekly-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  line-height: 1.05;
  margin: 0;
}

.page-home .ph-weekly-card__desc {
  font-size: 0.9rem;
  line-height: 1.65;
  opacity: 0.85;
  margin: 0;
  max-width: 52ch;
}

.page-home .ph-weekly-card__meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--cyan);
  margin: 0;
}

.page-home .ph-weekly-sub {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.page-home .ph-side-card {
  border: 1px solid var(--border);
  background: #120e13;
  padding: 1.4rem;
  display: grid;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
}

.page-home .ph-side-card::before {
  content: "";
  position: absolute;
  width: 90px;
  height: 20px;
  background: var(--pink);
  right: -30px;
  top: 14px;
  transform: rotate(45deg);
  opacity: 0.75;
}

.page-home .ph-side-card__num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--pink);
}

.page-home .ph-side-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0;
}

.page-home .ph-side-card__meta {
  font-size: 0.78rem;
  opacity: 0.72;
  margin: 0;
}

.page-home .ph-side-card .button {
  align-self: flex-start;
}

.page-home .ph-compat {
  background: var(--purple-deep);
  color: var(--paper);
}

.page-home .ph-compat__layout {
  display: grid;
  gap: 1.4rem;
}

.page-home .ph-icon-row {
  display: flex;
  gap: 1rem;
}

.page-home .ph-icon-row img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: var(--ink);
  border: 1px solid var(--border);
  padding: 6px;
  border-radius: 8px;
}

.page-home .ph-compat__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.page-home .ph-compat__tab {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-home .ph-compat__tab[aria-selected="true"] {
  background: var(--pink);
  border-color: var(--pink);
  color: var(--ink);
}

.page-home .ph-compat__panels {
  display: grid;
  gap: 1rem;
}

.page-home .ph-compat__panel {
  border: 1px solid rgba(245, 240, 230, 0.3);
  background: rgba(10, 10, 10, 0.55);
  padding: 1.25rem;
}

.page-home .ph-compat__panel[hidden] {
  display: none;
}

.page-home .ph-compat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.page-home .ph-compat-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px dashed rgba(245, 240, 230, 0.25);
  font-size: 0.88rem;
}

.page-home .ph-compat-list strong {
  font-weight: 600;
}

.page-home .ph-compat-status {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  white-space: nowrap;
}

.page-home .ph-compat-list__note {
  grid-column: 1 / -1;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  opacity: 0.75;
}

.page-home .ph-compat__metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 0.6rem;
}

.page-home .ph-metric {
  background: var(--ink);
  border: 1px solid var(--border);
  padding: 1rem;
}

.page-home .ph-metric__num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--pink);
  display: block;
  line-height: 1;
}

.page-home .ph-metric__label {
  font-size: 0.78rem;
  opacity: 0.75;
  display: block;
  margin-top: 0.4rem;
}

.page-home .ph-rhythm {
  background: var(--ink);
  color: var(--paper);
}

.page-home .ph-rhythm__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.page-home .ph-rhythm__chart {
  background: var(--paper);
  padding: 0.8rem;
  border-left: 6px solid var(--cyan);
}

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

.page-home .ph-rhythm__info {
  display: grid;
  gap: 1.2rem;
}

.page-home .ph-rhythm__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.page-home .ph-rhythm__item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.7rem;
}

.page-home .ph-rhythm__num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  color: var(--cyan);
  line-height: 1;
}

.page-home .ph-rhythm__unit {
  font-size: 0.65em;
  font-family: var(--font-mono);
  margin-left: 0.1rem;
}

.page-home .ph-rhythm__label {
  font-size: 0.85rem;
  opacity: 0.8;
}

.page-home .ph-rhythm__text {
  line-height: 1.75;
  max-width: 60ch;
  font-size: 0.92rem;
  margin: 0;
}

.page-home .ph-hot {
  background: var(--paper);
  color: var(--ink);
}

.page-home .ph-hot .ph-section__intro {
  color: rgba(10, 10, 10, 0.72);
}

.page-home .ph-hot__feature {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  border: 3px solid var(--ink);
  box-shadow: 10px 10px 0 var(--red);
  background: var(--paper);
}

.page-home .ph-hot__flag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.7rem;
  transform: rotate(-3deg);
}

.page-home .ph-hot__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  margin: 0.6rem 0 0.2rem;
  color: var(--purple);
  line-height: 0.95;
}

.page-home .ph-hot__desc {
  max-width: 56ch;
  line-height: 1.7;
  font-size: 0.92rem;
  margin: 0.6rem 0 0;
}

.page-home .ph-hot__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 1rem 0;
}

.page-home .ph-hot__tags li {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid currentColor;
}

.page-home .ph-hot__visual {
  position: relative;
  min-height: 200px;
  background: var(--ink);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-home .ph-hot__vis-num {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 9rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--pink);
  position: relative;
  z-index: 2;
}

.page-home .ph-hot__vis-line {
  position: absolute;
  width: 200px;
  height: 42px;
  background: var(--purple);
  transform: rotate(-28deg);
}

.page-home .ph-hot__vis-line--short {
  width: 120px;
  height: 18px;
  background: var(--cyan);
  top: 50px;
  left: 15%;
  transform: rotate(32deg);
}

.page-home .ph-outro {
  background: linear-gradient(120deg, var(--purple) 0%, var(--red) 100%);
  color: var(--white);
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.page-home .ph-outro__eyebrow {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 0.8rem;
}

.page-home .ph-outro__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin: 0.3rem 0 0.6rem;
  line-height: 1.1;
}

.page-home .ph-outro__text {
  max-width: 56ch;
  line-height: 1.7;
  opacity: 0.92;
  font-size: 0.92rem;
  margin: 0;
}

.page-home .ph-outro__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.page-home .ph-outro__links a {
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.55);
  padding: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.page-home .ph-outro__links a:hover {
  background: var(--white);
  color: var(--purple);
}

@keyframes ph-ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes ph-glitch-one {
  0% {
    top: 8%;
    opacity: 0;
  }
  8% {
    opacity: 0.6;
  }
  16% {
    top: 74%;
    opacity: 0;
  }
  100% {
    top: 74%;
    opacity: 0;
  }
}

@keyframes ph-glitch-two {
  0% {
    top: 82%;
    opacity: 0;
  }
  10% {
    top: 22%;
    opacity: 0.5;
  }
  20% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes ph-burst-spin {
  from {
    transform: rotate(10deg);
  }
  to {
    transform: rotate(370deg);
  }
}

@media (min-width: 640px) {
  .page-home .ph-hero__inner {
    padding-bottom: 3.4rem;
  }

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

  .page-home .ph-weekly-card--lead {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }

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

  .page-home .ph-rhythm__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .page-home .ph-hot__feature {
    padding: 2rem;
  }
}

@media (min-width: 860px) {
  .page-home .ph-weekly-grid {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    align-items: stretch;
  }

  .page-home .ph-weekly-sub {
    align-content: stretch;
  }

  .page-home .ph-hot__feature {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
    align-items: stretch;
  }

  .page-home .ph-hot__visual {
    min-height: 100%;
  }
}

@media (min-width: 1024px) {
  .page-home .ph-hero__inner {
    padding-top: 7rem;
  }

  .page-home .ph-hero__quick {
    margin-top: 2.2rem;
  }

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

  .page-home .ph-compat__layout {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .page-home .ph-icon-row {
    flex-direction: column;
    padding-top: 0.4rem;
  }

  .page-home .ph-compat__tabs {
    align-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .ph-batch-strip__inner,
  .page-home .ph-hero__glitch--one,
  .page-home .ph-hero__glitch--two,
  .page-home .ph-hero__burst {
    animation: none !important;
  }
}
