.page-home {
  --ph-red: #C8102E;
  --ph-red-dark: #A00D24;
  --ph-gold: #E5B80B;
  --ph-gold-light: #F0C830;
  --ph-brick: #3A3A3C;
  --ph-brick-dark: #232325;
  --ph-paper: #F4F1E8;
  --ph-paper-dark: #E5DFCF;
  --ph-blue: #1E3A5F;
  --ph-neon: #6D5BB4;
  --ph-green: #2F9E62;
  --ph-orange: #E58A2A;
  --ph-ink: #1A1A1A;
  --ph-gray: #5A5A5E;

  background: var(--ph-paper);
  color: var(--ph-ink);
  overflow-x: hidden;
}

.page-home .home-wrap {
  position: relative;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.page-home .breadcrumbs {
  margin: 1rem 0 1.5rem;
}

.page-home .home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ph-neon);
}

.page-home .home-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--ph-gold);
  transform: skewX(-28deg);
}

.page-home .home-h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  letter-spacing: 0.01em;
}

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

.page-home figure {
  margin: 0;
}

.page-home figcaption {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ph-gray);
}

.page-home .home-opening {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding-top: 2rem;
}

.page-home .home-opening__watermark {
  position: absolute;
  top: -0.4rem;
  right: -0.2rem;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 14vw, 8rem);
  line-height: 1;
  color: rgba(229, 184, 11, 0.12);
  transform: rotate(8deg);
  letter-spacing: 0.1em;
  pointer-events: none;
  user-select: none;
}

.page-home .home-opening__body,
.page-home .home-opening__aside,
.page-home .home-opening__media {
  position: relative;
  z-index: 1;
}

.page-home .home-opening__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ph-red);
}

.page-home .home-opening__label::before {
  content: "";
  width: 30px;
  height: 3px;
  background: var(--ph-gold);
  transform: skewX(-30deg);
}

.page-home .home-opening__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.12;
  color: var(--ph-red);
  margin: 0 0 1rem;
  text-shadow: 3px 3px 0 rgba(229, 184, 11, 0.22);
  max-width: 12em;
}

.page-home .home-opening__lead {
  margin: 0 0 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ph-ink);
  max-width: 58ch;
}

.page-home .home-opening__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.page-home .home-aside-card {
  background: var(--ph-brick);
  color: var(--ph-paper);
  padding: 1.25rem 1.25rem 1rem;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  box-shadow: var(--shadow-md);
}

.page-home .home-aside-card__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 241, 232, 0.6);
  margin-bottom: 0.25rem;
}

.page-home .home-aside-card__version {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.75rem;
  line-height: 1;
  color: var(--ph-gold);
  margin-bottom: 0.5rem;
}

.page-home .home-aside-card__note {
  display: block;
  font-size: 0.875rem;
  color: var(--ph-paper);
}

.page-home .home-aside-card__ticker {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  margin-top: 0.9rem;
  padding-top: 0.6rem;
  border-top: 1px dashed rgba(244, 241, 232, 0.3);
}

.page-home .home-aside-card__ticker > span {
  display: inline-block;
  padding-left: 100%;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--ph-gold);
  animation: ph-ticker 18s linear infinite;
}

@keyframes ph-ticker {
  to {
    transform: translateX(-100%);
  }
}

.page-home .home-opening__media {
  background: var(--ph-blue);
  padding: 6px;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

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

.page-home .home-opening__media figcaption {
  padding: 0.5rem 0.4rem 0.25rem;
  color: var(--ph-paper);
}

.page-home .home-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(26, 26, 26, 0.12);
}

.page-home .home-anchors a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ph-blue);
  background: rgba(30, 58, 95, 0.06);
  text-decoration: none;
  border: 1px solid rgba(30, 58, 95, 0.22);
  transition: background 0.2s, color 0.2s;
}

.page-home .home-anchors a:hover {
  background: var(--ph-blue);
  color: var(--ph-paper);
}

.page-home .home-directory {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
}

.page-home .home-directory__head {
  margin-bottom: 1.25rem;
}

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

.page-home .home-directory__card {
  position: relative;
  display: block;
  padding: 1.5rem 1.25rem 1.25rem;
  text-decoration: none;
  background: linear-gradient(135deg, transparent 16px, #FCFAF2 0);
  transition: transform 0.25s var(--transition), box-shadow 0.25s var(--transition);
}

.page-home .home-directory__card:hover,
.page-home .home-directory__card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.page-home .home-directory__card--red {
  background: linear-gradient(135deg, transparent 16px, var(--ph-red) 0);
  color: var(--ph-paper);
}

.page-home .home-directory__card--dark {
  background: linear-gradient(135deg, transparent 16px, var(--ph-brick) 0);
  color: var(--ph-paper);
}

.page-home .home-directory__tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0.2rem 0.45rem;
  background: var(--ph-paper);
  color: var(--ph-ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  border-radius: 3px;
  box-shadow: inset 0 0 0 2px rgba(26, 26, 26, 0.1);
  margin-bottom: 1rem;
}

.page-home .home-directory__card--red .home-directory__tile,
.page-home .home-directory__card--dark .home-directory__tile {
  background: var(--ph-gold);
  color: var(--ph-ink);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.page-home .home-directory__card h3 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.375rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.page-home .home-directory__card p {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: inherit;
  opacity: 0.88;
}

.page-home .home-directory__more {
  display: inline-block;
  vertical-align: middle;
  font-size: 0.875rem;
  font-weight: 700;
  border-bottom: 2px solid currentColor;
  line-height: 1.5;
}

.page-home .home-compat {
  display: grid;
  gap: 1.5rem;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
  scroll-margin-top: 80px;
}

.page-home .home-compat__media {
  background: var(--ph-paper-dark);
  padding: 6px;
  border: 1px solid rgba(229, 184, 11, 0.55);
}

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

.page-home .home-compat__body > p,
.page-home .home-rules__body > p,
.page-home .home-service__body > p,
.page-home .home-stamps__head > p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--ph-gray);
  max-width: 60ch;
}

.page-home .progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.page-home .progress__label {
  flex: 0 0 100%;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ph-ink);
}

.page-home .progress__track {
  flex: 1 1 160px;
  height: 10px;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.1);
  overflow: hidden;
}

.page-home .progress__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ph-red), var(--ph-gold));
  width: 94%;
  transition: width 1.2s var(--transition-slow);
}

.page-home .progress__value {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--ph-red);
}

.page-home .home-compat__actions,
.page-home .home-rules__actions,
.page-home .home-service__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.page-home .home-rules {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--ph-brick);
  color: var(--ph-paper);
  display: grid;
  gap: 2rem;
  clip-path: polygon(0 26px, 26px 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%);
  scroll-margin-top: 80px;
}

.page-home .home-rules__media {
  background: var(--ph-brick-dark);
  padding: 6px;
  border: 1px solid rgba(229, 184, 11, 0.45);
}

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

.page-home .home-rules__media figcaption {
  color: rgba(244, 241, 232, 0.6);
  padding-top: 0.4rem;
}

.page-home .home-rules__body h2 {
  color: var(--ph-gold);
}

.page-home .home-rules__body > p {
  color: rgba(244, 241, 232, 0.78);
}

.page-home .home-rules__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.5rem;
}

.page-home .home-rules__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ph-paper);
}

.page-home .home-rules__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 10px;
  height: 2px;
  background: var(--ph-gold);
  transform: skewX(-30deg);
}

.page-home .home-service {
  display: grid;
  gap: 1.5rem;
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
  scroll-margin-top: 80px;
}

.page-home .home-service__media {
  background: var(--ph-blue);
  padding: 6px;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}

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

.page-home .home-service__media figcaption {
  padding: 0.5rem 0.4rem 0.2rem;
  color: var(--ph-paper);
}

.page-home .home-service__steps {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1.5rem;
  display: grid;
  gap: 0.75rem;
  border-top: 2px solid var(--ph-red);
}

.page-home .home-service__steps li {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.75rem;
  padding: 0.6rem 0 0.75rem;
  border-bottom: 1px dashed rgba(26, 26, 26, 0.15);
}

.page-home .home-service__step-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--ph-red);
}

.page-home .home-service__steps strong {
  display: block;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.page-home .home-service__steps span.desc {
  display: block;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--ph-gray);
}

.page-home .home-service__steps a {
  color: var(--ph-neon);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-home .home-service__steps a:hover {
  color: var(--ph-red);
}

.page-home .home-stamps {
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
  padding: 1.5rem 0 2rem;
  border-top: 6px solid var(--ph-red);
  border-bottom: 1px solid rgba(26, 26, 26, 0.15);
  scroll-margin-top: 80px;
}

.page-home .home-stamps__head > p {
  margin-bottom: 0.5rem;
}

.page-home .home-stamps__grid {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.page-home .home-stamps__item {
  background: #FCFAF2;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-left: 4px solid var(--ph-red);
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.4rem;
}

.page-home .home-stamps__name {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
}

.page-home .home-stamps__time {
  font-size: 0.8125rem;
  color: var(--ph-gray);
}

.page-home .home-stamps__more {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--ph-gray);
}

.page-home .home-stamps__more a {
  color: var(--ph-neon);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 760px) {
  .page-home .home-directory__grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (min-width: 900px) {
  .page-home .home-opening {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas:
      "body aside"
      "body media";
    column-gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
  }

  .page-home .home-opening__body {
    grid-area: body;
  }

  .page-home .home-opening__aside {
    grid-area: aside;
  }

  .page-home .home-opening__media {
    grid-area: media;
  }

  .page-home .home-aside-card {
    padding: 1.5rem 1.5rem 1.25rem;
  }

  .page-home .home-compat {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas: "body media";
  }

  .page-home .home-compat__body {
    grid-area: body;
  }

  .page-home .home-compat__media {
    grid-area: media;
  }

  .page-home .home-rules {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "media body";
    align-items: center;
  }

  .page-home .home-rules__body {
    grid-area: body;
  }

  .page-home .home-rules__media {
    grid-area: media;
  }

  .page-home .home-service {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-areas: "body media";
  }

  .page-home .home-service__body {
    grid-area: body;
  }

  .page-home .home-service__media {
    grid-area: media;
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-home .home-aside-card__ticker > span {
    animation: none;
    padding-left: 0;
  }

  .page-home .progress__fill {
    transition: none;
  }

  .page-home .home-directory__card {
    transition: none;
  }
}
