.page-home {
  --ph-radius-xl: 28px;
  --ph-radius-lg: 20px;
  --ph-radius-md: 14px;
  --ph-grid: rgba(0, 240, 255, 0.1);
  --ph-grid-strong: rgba(0, 240, 255, 0.22);
  --ph-wine-glow: rgba(107, 29, 42, 0.55);
  --ph-red-glow: rgba(255, 42, 42, 0.28);
  position: relative;
  overflow-x: hidden;
  background: var(--emc-night);
  color: var(--emc-ice);
}

.ph-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--emc-header-h) + 32px) 0 56px;
}

.ph-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.ph-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.ph-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 20, 40, 0.72) 0%, rgba(10, 20, 40, 0.88) 70%, rgba(10, 20, 40, 1) 100%),
    repeating-linear-gradient(0deg, transparent 0 48px, var(--ph-grid) 48px 49px),
    repeating-linear-gradient(90deg, transparent 0 48px, var(--ph-grid) 48px 49px);
}

.ph-hero-inner {
  position: relative;
  z-index: 1;
}

.ph-hero-inner .emc-coordinate {
  margin-bottom: 14px;
}

.ph-hero h1 {
  font-family: var(--emc-font-title);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.08;
  color: var(--emc-ice);
  margin: 0 0 16px;
  text-shadow: 0 0 24px rgba(0, 240, 255, 0.35);
}

.ph-hero-desc {
  max-width: 780px;
  font-family: var(--emc-font-body);
  font-size: 1rem;
  line-height: 1.9;
  color: rgba(224, 247, 255, 0.82);
  margin: 0 0 18px;
}

.ph-hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ph-grid);
}

.ph-hero-links a {
  font-family: var(--emc-font-num);
  font-size: 0.9rem;
  color: var(--emc-cyan);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}

.ph-hero-links a::before {
  content: "/";
  color: var(--emc-red);
  margin-right: 8px;
}

.ph-hero-links a:hover {
  color: var(--emc-ice);
}

.ph-dual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.ph-rank {
  background: rgba(10, 20, 40, 0.78);
  border: 1px solid var(--ph-grid-strong);
  border-radius: var(--ph-radius-lg);
  padding: 20px;
  backdrop-filter: blur(8px);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.35),
    inset 0 0 30px rgba(0, 240, 255, 0.04);
}

.ph-panel-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ph-grid);
}

.ph-panel-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--emc-font-num);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--emc-cyan);
  text-transform: uppercase;
}

.ph-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emc-emerald);
  box-shadow: 0 0 10px var(--emc-emerald);
}

.ph-panel-tag {
  font-size: 0.86rem;
  color: var(--emc-silver);
  letter-spacing: 0.06em;
}

.ph-rank-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ph-rank-table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-family: var(--emc-font-num);
}

.ph-rank-table th {
  font-family: var(--emc-font-body);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-align: left;
  color: var(--emc-silver);
  padding: 8px 10px;
  border-bottom: 1px solid var(--ph-grid-strong);
  white-space: nowrap;
}

.ph-rank-table td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.07);
  font-size: 0.92rem;
  color: var(--emc-ice);
  white-space: nowrap;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.ph-rank-table tbody tr {
  cursor: default;
}

.ph-rank-table tbody tr:hover {
  background: linear-gradient(90deg, rgba(0, 240, 255, 0.12), rgba(0, 240, 255, 0.02));
  box-shadow: inset 4px 0 0 var(--emc-cyan);
}

.ph-rank-table tbody tr:last-child td {
  border-bottom: none;
}

.ph-rank-table .ph-pts {
  font-weight: 700;
  color: var(--emc-cyan);
  position: relative;
}

.panel-foot-offset {
  display: none;
}

.ph-panel-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--ph-grid);
  font-size: 0.82rem;
  color: var(--emc-silver);
}

.ph-panel-foot a {
  color: var(--emc-cyan);
  text-decoration: none;
  font-family: var(--emc-font-num);
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}

.ph-panel-foot a:hover {
  color: var(--emc-ice);
}

.ph-preview {
  position: relative;
  min-height: 340px;
  border-radius: var(--ph-radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border: 1px solid rgba(255, 42, 42, 0.4);
  box-shadow:
    0 0 40px var(--ph-red-glow),
    inset 0 0 60px rgba(107, 29, 42, 0.25);
  background: linear-gradient(135deg, var(--emc-wine), rgba(10, 20, 40, 0.92));
}

.ph-preview-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}

.ph-preview::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255, 42, 42, 0.3), transparent 70%);
  pointer-events: none;
}

.ph-preview-body {
  position: relative;
  z-index: 1;
  padding: 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 20, 40, 0.9) 56%);
  width: 100%;
}

.ph-preview-body h2 {
  font-family: var(--emc-font-title);
  font-size: 1.6rem;
  font-style: italic;
  letter-spacing: 0.03em;
  line-height: 1.25;
  color: var(--emc-ice);
  margin: 12px 0 8px;
}

.ph-preview-body p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: rgba(224, 247, 255, 0.8);
  margin: 0 0 18px;
}

.ph-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--emc-font-num);
  font-size: 0.9rem;
  color: var(--emc-cyan);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: gap 0.25s ease, color 0.25s ease;
}

.ph-arrow-link:hover {
  color: var(--emc-ice);
  gap: 12px;
}

.ph-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--emc-radius-pill);
  font-family: var(--emc-font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.ph-chip--red {
  background: rgba(255, 42, 42, 0.16);
  border: 1px solid rgba(255, 42, 42, 0.5);
  color: #ff8f8f;
}

.ph-chip--cyan {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.35);
  color: var(--emc-cyan);
}

.ph-tools {
  position: relative;
  padding: 72px 0;
  background:
    radial-gradient(900px 500px at 88% 12%, rgba(75, 63, 114, 0.4), transparent 70%),
    linear-gradient(180deg, rgba(10, 20, 40, 1) 0%, rgba(18, 24, 48, 1) 100%);
  border-block: 1px solid var(--ph-grid);
}

.ph-tools::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 80px, rgba(0, 240, 255, 0.05) 80px 81px);
  pointer-events: none;
}

.ph-tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.ph-tools-art {
  position: relative;
  border-radius: var(--ph-radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.ph-tools-art img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.ph-tools-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0, 240, 255, 0.22);
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.06), transparent 40%);
  pointer-events: none;
}

.ph-tools-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ph-tools-copy .emc-coordinate {
  margin-bottom: 12px;
}

.ph-tools-copy h2 {
  font-family: var(--emc-font-title);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-style: italic;
  line-height: 1.2;
  color: var(--emc-ice);
  margin: 0 0 14px;
}

.ph-tools-copy > p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(224, 247, 255, 0.84);
  margin: 0 0 20px;
  max-width: 540px;
}

.ph-dim-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.ph-tools-link {
  text-decoration: none;
}

.ph-column {
  padding: 72px 0;
  background: var(--emc-night);
}

.ph-column-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.ph-column-head .emc-coordinate {
  margin-bottom: 10px;
}

.ph-column-head h2 {
  font-family: var(--emc-font-title);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-style: italic;
  line-height: 1.2;
  color: var(--emc-ice);
  margin: 0 0 6px;
}

.ph-column-sub {
  font-size: 0.9rem;
  color: var(--emc-silver);
  margin: 0;
}

.ph-column-head .emc-btn {
  text-decoration: none;
  flex-shrink: 0;
}

.ph-column-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.ph-article {
  position: relative;
  background: linear-gradient(160deg, rgba(75, 63, 114, 0.18), rgba(10, 20, 40, 0.9) 70%);
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: var(--ph-radius-lg);
  padding: 28px 24px 22px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.ph-article:hover {
  transform: translateY(-4px);
  border-color: var(--ph-grid-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 240, 255, 0.18);
}

.ph-article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--emc-cyan), transparent);
  opacity: 0.7;
}

.ph-article-index {
  display: inline-block;
  font-family: var(--emc-font-num);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--emc-cyan);
  margin-bottom: 14px;
}

.ph-article h3 {
  font-family: var(--emc-font-title);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.4;
  color: var(--emc-ice);
  margin: 0 0 10px;
}

.ph-article p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(224, 247, 255, 0.74);
  margin: 0 0 18px;
}

.ph-article-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 240, 255, 0.1);
}

.ph-tag {
  font-size: 0.76rem;
  color: var(--emc-amber);
  letter-spacing: 0.1em;
  background: rgba(255, 176, 32, 0.1);
  padding: 3px 10px;
  border-radius: var(--emc-radius-pill);
}

.ph-article-date {
  font-size: 0.76rem;
  color: var(--emc-silver);
}

.ph-client {
  position: relative;
  padding: 88px 0;
  text-align: center;
  overflow: hidden;
}

.ph-client-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
}

.ph-client-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 20, 40, 0.82) 0%, rgba(107, 29, 42, 0.58) 50%, rgba(10, 20, 40, 0.92) 100%),
    repeating-linear-gradient(0deg, transparent 0 40px, rgba(0, 240, 255, 0.06) 40px 41px);
}

.ph-client-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ph-client-body .emc-coordinate {
  margin-bottom: 12px;
}

.ph-client-body h2 {
  font-family: var(--emc-font-title);
  font-size: clamp(2rem, 4vw, 3rem);
  font-style: italic;
  line-height: 1.15;
  color: var(--emc-ice);
  margin: 0 0 12px;
  text-shadow: 0 0 28px rgba(255, 42, 42, 0.35);
}

.ph-client-body > p:not(.ph-client-data) {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(224, 247, 255, 0.88);
  margin: 0 0 10px;
}

.ph-client-data {
  font-family: var(--emc-font-num);
  font-size: 0.84rem;
  color: var(--emc-silver);
  letter-spacing: 0.06em;
  margin: 0 0 28px;
}

.ph-client-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.ph-client .emc-btn {
  text-decoration: none;
}

.ph-client .emc-btn-primary {
  animation: ph-pulse 2.4s infinite;
}

.ph-client .emc-btn-primary:hover {
  animation-play-state: paused;
  transform: scale(1.04);
}

.ph-client .emc-btn-ghost:hover {
  background: rgba(0, 240, 255, 0.1);
  transform: scale(1.02);
}

@keyframes ph-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 42, 42, 0.5);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(255, 42, 42, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 42, 42, 0);
  }
}

.js .page-home [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .page-home [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 720px) {
  .ph-dual {
    grid-template-columns: 1fr;
  }

  .ph-column-grid {
    grid-template-columns: 1fr;
  }

  .ph-tools-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 920px) {
  .ph-dual {
    grid-template-columns: 1.5fr 1fr;
    gap: 28px;
  }

  .ph-tools-grid {
    grid-template-columns: 1fr 1fr;
    gap: 44px;
  }

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

  .ph-rank {
    padding: 26px;
  }

  .ph-preview {
    min-height: 380px;
  }

  .ph-client {
    padding: 104px 0;
  }
}
