.page-home {
  --ph-shadow: 0 24px 80px rgba(10, 30, 60, 0.25);
  background: var(--clr-cream);
  color: var(--clr-ink);
  overflow-x: clip;
}

.page-home .container {
  padding-inline: 20px;
}

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

.ph-progress {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  height: 4px;
  z-index: 1200;
  background: var(--clr-red);
  transform-origin: 0 50%;
  opacity: 0.9;
}

.ph-hero {
  position: relative;
  background: var(--clr-blue);
  color: var(--clr-cream);
  padding: 128px 0 72px;
  overflow: hidden;
}

.ph-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0 58%, rgba(255, 195, 0, 0.06) 58% 62%, transparent 62% 72%, rgba(245, 241, 232, 0.05) 72% 76%, transparent 76%);
  pointer-events: none;
}

.ph-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 52px;
  align-items: center;
  position: relative;
}

.ph-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1.08;
  margin: 18px 0 24px;
  letter-spacing: -0.01em;
  max-width: 14em;
}

.ph-hero__lead {
  font-size: 1.02rem;
  line-height: 1.85;
  color: rgba(245, 241, 232, 0.82);
  max-width: 36em;
}

.ph-hero__lead strong {
  color: var(--clr-yellow);
  font-weight: 600;
}

.ph-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 36px 0;
}

.ph-hero__stat-num {
  display: block;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 2rem;
  color: var(--clr-yellow);
  line-height: 1.2;
}

.ph-hero__stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: rgba(245, 241, 232, 0.6);
}

.ph-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.ph-hero__visual {
  position: relative;
  min-height: 380px;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  box-shadow: var(--ph-shadow);
}

.ph-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.ph-orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 8%;
  filter: drop-shadow(0 0 24px rgba(255, 195, 0, 0.12));
}

.ph-orbit__ring {
  transform-box: view-box;
  transform-origin: 50% 50%;
  animation: ph-spin 40s linear infinite;
}

@keyframes ph-spin {
  to {
    transform: rotate(360deg);
  }
}

.ph-hero__float {
  position: absolute;
  background: rgba(10, 30, 60, 0.88);
  border: 1px solid rgba(255, 195, 0, 0.4);
  border-radius: 14px;
  padding: 14px 18px;
  backdrop-filter: blur(4px);
  box-shadow: var(--ph-shadow);
}

.ph-hero__float--a {
  top: 10%;
  left: 6%;
  transform: rotate(-3deg);
}

.ph-hero__float--b {
  bottom: 12%;
  right: 4%;
  transform: rotate(2deg);
  text-align: right;
}

.ph-score__meta {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: rgba(245, 241, 232, 0.65);
  margin-bottom: 4px;
}

.ph-score {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--clr-cream);
  animation: ph-flicker 2.4s ease-in-out infinite;
}

.ph-score__sep {
  margin: 0 6px;
  color: var(--clr-yellow);
}

@keyframes ph-flicker {
  0%, 100% {
    text-shadow: 0 0 10px rgba(255, 195, 0, 0.5);
  }
  50% {
    text-shadow: 0 0 2px rgba(255, 195, 0, 0.15);
  }
}

.ph-float-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--clr-yellow);
  line-height: 1.2;
}

.ph-float-label {
  font-size: 0.8rem;
  color: rgba(245, 241, 232, 0.7);
}

.ph-hero__ticker {
  position: relative;
  margin-top: 64px;
  padding: 14px 18px;
  background: var(--clr-yellow);
  color: var(--clr-blue);
  font-weight: 700;
  font-size: 0.92rem;
  transform: rotate(-1.1deg);
  box-shadow: 8px 8px 0 rgba(10, 30, 60, 0.3);
  width: calc(100% + 32px);
  margin-left: -16px;
}

.ph-hero__ticker-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-red);
  margin-right: 10px;
}

.ph-cats {
  padding: 96px 0 88px;
  background: var(--clr-cream);
}

.ph-cats .section-head {
  margin-bottom: 32px;
}

.page-home .filter-bar {
  margin-top: 36px;
}

.ph-cats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 44px;
}

.ph-cat-card {
  position: relative;
  overflow: hidden;
  border-top: 3px solid var(--clr-yellow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.ph-cat-card:hover {
  transform: translateY(-6px) rotate(-0.6deg);
  box-shadow: var(--shadow-2);
}

.ph-cat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--clr-blue);
  color: var(--clr-yellow);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 18px;
}

.ph-cat-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0 0 10px;
}

.ph-cat-card p {
  color: var(--clr-stone);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.ph-cat-card ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0 0 20px;
}

.ph-cat-card li {
  background: rgba(10, 30, 60, 0.06);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
}

.ph-cat-card a {
  align-self: flex-start;
  margin-top: auto;
}

.ph-cats__foot {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  font-size: 0.9rem;
  color: var(--clr-stone);
  align-items: center;
}

.ph-cats__foot span {
  border-left: 3px solid var(--clr-red);
  padding-left: 10px;
}

.ph-updates {
  background: var(--clr-blue);
  color: var(--clr-cream);
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

.ph-updates::before {
  content: "";
  position: absolute;
  width: 140%;
  height: 160px;
  top: 30px;
  left: -10%;
  background: linear-gradient(90deg, transparent, rgba(255, 195, 0, 0.08), transparent);
  transform: rotate(-6deg);
  pointer-events: none;
}

.ph-updates__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  position: relative;
}

.ph-updates .section-head p {
  color: rgba(245, 241, 232, 0.62);
}

.ph-updates .section-head .btn {
  margin-top: 12px;
}

.ph-updates__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.ph-update-item {
  position: relative;
  background: rgba(245, 241, 232, 0.05);
  border: 1px solid rgba(245, 241, 232, 0.12);
  border-radius: 18px;
  padding: 26px 26px 26px 58px;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.ph-update-item:hover {
  background: rgba(255, 195, 0, 0.08);
  border-color: rgba(255, 195, 0, 0.28);
}

.ph-update-item__mark {
  position: absolute;
  left: 20px;
  top: 30px;
  width: 18px;
  height: 18px;
  background: var(--clr-yellow);
  transform: rotate(45deg);
}

.ph-update-item__mark--red {
  background: var(--clr-red);
}

.ph-update-item h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 8px;
}

.ph-update-item p {
  color: rgba(245, 241, 232, 0.72);
  font-size: 0.95rem;
  line-height: 1.75;
  margin: 0;
}

.ph-update-item__tag {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--clr-yellow);
  border: 1px solid rgba(255, 195, 0, 0.4);
  padding: 3px 10px;
  border-radius: 999px;
}

.ph-subscribe {
  padding: 108px 0;
  background: var(--clr-cream);
  position: relative;
}

.ph-subscribe__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.ph-subscribe__main {
  max-width: 720px;
}

.ph-subscribe__main h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 10px 0 14px;
}

.ph-subscribe__main > p {
  color: var(--clr-stone);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 36em;
}

.ph-sub-wrap {
  position: relative;
  margin-top: 36px;
  display: inline-block;
}

.ph-sub-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ph-sub-open {
  animation: ph-pulse 2.4s ease-out infinite;
}

@keyframes ph-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 195, 0, 0.55);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(255, 195, 0, 0);
  }
}

.ph-sub-popup {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  background: rgba(10, 30, 60, 0.62);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 20px;
}

.ph-sub-toggle:checked ~ .ph-sub-popup {
  opacity: 1;
  visibility: visible;
}

.ph-sub-popup__inner {
  width: 100%;
  max-width: 460px;
  background: var(--clr-cream);
  border-radius: 22px;
  padding: 34px 30px;
  box-shadow: var(--ph-shadow);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.3s ease;
  border-top: 6px solid var(--clr-yellow);
}

.ph-sub-toggle:checked ~ .ph-sub-popup .ph-sub-popup__inner {
  transform: translateY(0) scale(1);
}

.ph-sub-popup__head {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--clr-blue);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ph-sub-popup__head::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--clr-moss);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(138, 154, 91, 0.2);
}

.ph-sub-popup__match {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  background: #fff;
  border: 1px solid rgba(10, 30, 60, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 14px;
}

.ph-sub-popup__match strong {
  color: var(--clr-red);
}

.ph-sub-popup__note {
  margin-top: 20px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--clr-stone);
}

.ph-sub-popup__action {
  display: inline-block;
  margin-top: 18px;
  cursor: pointer;
}

.ph-subscribe__aside {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 10px 30px rgba(10, 30, 60, 0.08);
  max-width: 420px;
}

.ph-subscribe__badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--clr-blue);
  color: var(--clr-yellow);
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ph-subscribe__feature {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--clr-ink);
  margin: 0 0 6px;
}

.ph-subscribe__note {
  color: var(--clr-stone);
  font-size: 0.86rem;
  line-height: 1.7;
  margin: 0;
}

.ph-archive {
  padding: 96px 0;
  background: var(--clr-cream);
}

.ph-archive__top {
  max-width: 42em;
}

.ph-archive__top h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin: 10px 0 14px;
}

.ph-archive__top p:not(.index-label) {
  color: var(--clr-stone);
  line-height: 1.8;
}

.ph-archive__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  margin-top: 48px;
}

.ph-archive-card {
  background: #fff;
  border-radius: 6px 6px 20px 20px;
  border-top: 4px solid var(--clr-blue);
  padding: 28px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(10, 30, 60, 0.08);
}

.ph-archive-card:nth-child(2) {
  transform: rotate(0.8deg);
  background-image: repeating-linear-gradient(0deg, rgba(10, 30, 60, 0.03) 0 1px, transparent 1px 6px);
}

.ph-archive-card:nth-child(3) {
  transform: rotate(-0.7deg);
  background-image: radial-gradient(rgba(10, 30, 60, 0.06) 1px, transparent 1.5px);
  background-size: 12px 12px;
}

.ph-archive-card:hover {
  transform: translateY(-8px) rotate(0deg);
  box-shadow: var(--shadow-2);
}

.ph-archive-card__season {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--clr-blue);
  display: block;
}

.ph-archive-card__ver {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--font-mono);
  color: var(--clr-yellow);
  background: var(--clr-blue);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.ph-archive-card__count {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 1.9rem;
  color: var(--clr-ink);
}

.ph-archive-card__unit {
  color: var(--clr-stone);
  font-size: 0.95rem;
}

.ph-archive-card__note {
  color: var(--clr-stone);
  font-size: 0.85rem;
  margin-top: 4px;
}

.ph-archive-card__thumb {
  margin-top: 20px;
  border-radius: 14px;
  overflow: hidden;
}

.ph-archive-card__thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ph-archive-card:hover .ph-archive-card__thumb img {
  transform: scale(1.04);
}

.ph-archive__cta {
  margin-top: 44px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.ph-tools {
  padding: 104px 0;
  background: var(--clr-blue);
  color: var(--clr-cream);
  position: relative;
  overflow: hidden;
}

.ph-tools::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0 52%, rgba(255, 195, 0, 0.06) 52% 54%, transparent 54%);
  pointer-events: none;
}

.ph-tools__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.ph-tools__main .index-label {
  color: rgba(245, 241, 232, 0.62);
}

.ph-tools__main h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-family: var(--font-display);
  margin: 10px 0 16px;
}

.ph-tools__main > p {
  color: rgba(245, 241, 232, 0.78);
  line-height: 1.85;
  max-width: 36em;
}

.ph-tools__steps {
  list-style: none;
  counter-reset: tool;
  display: grid;
  gap: 8px;
  margin: 28px 0;
  padding: 0;
}

.ph-tools__steps li {
  counter-increment: tool;
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(245, 241, 232, 0.15);
  font-size: 0.98rem;
}

.ph-tools__steps li::before {
  content: "0" counter(tool);
  font-family: var(--font-mono);
  color: var(--clr-yellow);
  font-size: 0.85rem;
  background: rgba(255, 195, 0, 0.12);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ph-tools__path {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  margin-top: 28px;
  padding: 14px 18px;
  background: rgba(245, 241, 232, 0.06);
  border-radius: 16px;
  align-items: center;
  border-left: 4px solid var(--clr-red);
  font-size: 0.88rem;
}

.ph-tools__path em {
  font-style: normal;
  color: var(--clr-yellow);
  margin: 0 12px;
  font-family: var(--font-mono);
}

.ph-tools__path span {
  color: rgba(245, 241, 232, 0.85);
}

.ph-tools__btn {
  margin-top: 32px;
}

.ph-tools__visual {
  position: relative;
}

.ph-tools__visual img {
  border-radius: 22px;
  width: 100%;
  height: auto;
  box-shadow: var(--ph-shadow);
}

.ph-tools__mini {
  position: absolute;
  left: -14px;
  bottom: -18px;
  width: 58%;
  height: auto;
  background: var(--clr-cream);
  border-radius: 16px;
  padding: 10px;
  box-shadow: var(--shadow-2);
}

.ph-download {
  padding: 96px 0 70px;
  background: var(--clr-cream);
}

.ph-download__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.ph-download__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin: 10px 0 16px;
}

.ph-download__text > p:not(.index-label) {
  color: var(--clr-stone);
  line-height: 1.8;
  max-width: 30em;
}

.ph-download__badges {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.ph-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--clr-blue);
  color: var(--clr-cream);
  border-radius: 999px;
  padding: 12px 24px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ph-store::before {
  content: "";
  width: 22px;
  height: 22px;
  border: 2px solid var(--clr-yellow);
  border-radius: 5px;
}

.ph-store--android::before {
  border-radius: 50%;
}

.ph-download__note {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--clr-stone);
}

.ph-download__note a {
  color: var(--clr-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ph-download__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(10, 30, 60, 0.08);
  justify-self: center;
  min-width: 220px;
}

.ph-qr {
  width: 152px;
  height: 152px;
  background-color: #fff;
  background-image: radial-gradient(var(--clr-blue) 2.6px, transparent 3px), radial-gradient(var(--clr-blue) 2.6px, transparent 3px);
  background-size: 22px 22px;
  background-position: 0 0, 11px 11px;
  position: relative;
}

.ph-qr::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border: 6px solid var(--clr-blue);
  background: var(--clr-yellow);
}

.ph-qr::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border: 6px solid var(--clr-blue);
}

.ph-qr__corner {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 26px;
  border: 6px solid var(--clr-blue);
}

.ph-download__qr-label {
  font-size: 0.85rem;
  color: var(--clr-stone);
  text-align: center;
}

.ph-download__phone {
  width: 100%;
  max-width: 300px;
  height: 420px;
  object-fit: cover;
  object-position: top;
  border-radius: 28px;
  margin-inline: auto;
  display: block;
  box-shadow: var(--shadow-2);
}

.ph-backtop {
  display: inline-flex;
  margin-top: 56px;
  color: var(--clr-blue);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--clr-yellow);
  padding-bottom: 4px;
  text-decoration: none;
}

@media (min-width: 768px) {
  .page-home .container {
    padding-inline: 28px;
  }

  .ph-hero {
    padding: 168px 0 80px;
  }

  .ph-hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }

  .ph-hero__title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
  }

  .ph-hero__ticker {
    width: calc(100% + 48px);
    margin-left: -24px;
    font-size: 1rem;
    padding: 16px 24px;
  }

  .ph-cats {
    padding: 120px 0 100px;
  }

  .ph-cats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .ph-cats__foot {
    justify-content: flex-end;
  }

  .ph-updates {
    padding: 120px 0;
  }

  .ph-updates__grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
  }

  .ph-subscribe {
    padding: 128px 0;
  }

  .ph-subscribe__inner {
    grid-template-columns: 1.3fr 0.7fr;
    gap: 48px;
    align-items: center;
  }

  .ph-archive {
    padding: 120px 0;
  }

  .ph-archive__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .ph-archive-card:last-child {
    grid-column: 1 / -1;
    max-width: 480px;
  }

  .ph-tools {
    padding: 128px 0;
  }

  .ph-tools__grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .ph-tools__mini {
    left: -20px;
    bottom: -24px;
  }

  .ph-download {
    padding: 110px 0 80px;
  }

  .ph-download__grid {
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
  }

  .ph-download__qr {
    order: 0;
  }

  .ph-download__phone {
    max-width: 280px;
  }
}

@media (min-width: 1024px) {
  .ph-hero__inner {
    gap: 64px;
  }

  .ph-hero__lead {
    font-size: 1.06rem;
  }

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

  .ph-cats__foot {
    gap: 12px 40px;
  }

  .ph-archive__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ph-archive-card:last-child {
    grid-column: auto;
    max-width: none;
  }
}
