.page-home {
  --ph-page-edge: clamp(20px, 4vw, 72px);
  --ph-section-pad: clamp(72px, 9vw, 150px);
  --ph-radius: 22px;
  --ph-max: 1440px;
  --ph-shadow: 0 20px 60px rgba(43, 33, 24, 0.12);
  display: block;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  overflow-x: clip;
}
.page-home .ph-cats,
.page-home .ph-migrate,
.page-home .ph-events,
.page-home .ph-local {
  scroll-margin-top: 30px;
}
.page-home :target {
  animation: phTargetPulse 1s ease;
}
@keyframes phTargetPulse {
  0% { box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.35); }
  100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0); }
}

.page-home .ph-hero {
  position: relative;
  min-height: min(92vh, 980px);
  display: grid;
  align-items: center;
  padding: clamp(48px, 7vw, 120px) var(--ph-page-edge) clamp(36px, 5vw, 72px);
  background:
    radial-gradient(circle at 80% 20%, rgba(201, 162, 39, 0.14), transparent 34%),
    linear-gradient(132deg, var(--stage) 0%, var(--ocean) 78%, #26466e 100%);
  color: var(--cream);
  overflow: hidden;
  border-radius: 0 0 34px 34px;
}
.page-home .ph-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--gold), var(--ember) 50%, var(--gold));
  opacity: 0.6;
}
.page-home .ph-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  z-index: 0;
}
.page-home .ph-hero__orb {
  position: absolute;
  top: -120px;
  right: -80px;
  width: clamp(240px, 34vw, 460px);
  aspect-ratio: 1;
  border: 1px dashed rgba(201, 162, 39, 0.55);
  border-radius: 50%;
  z-index: 1;
}
.page-home .ph-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--ph-max);
  margin: 0 auto;
  display: grid;
  gap: 28px;
}
.page-home .ph-meta {
  display: inline-flex;
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(244, 235, 217, 0.22);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(244, 235, 217, 0.72);
  text-transform: uppercase;
}
.page-home .ph-hero__title h1 {
  margin: 0;
  max-width: 12em;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(44px, 8vw, 104px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.page-home .ph-hero__lead {
  max-width: 38em;
  margin: 24px 0 28px;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.8;
  color: rgba(244, 235, 217, 0.86);
}
.page-home .ph-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.page-home .ph-hero__actions .btn--primary {
  background: var(--ember);
  border: 1px solid var(--ember);
  color: var(--cream);
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(228, 87, 46, 0.22);
}
.page-home .ph-hero__ghost {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(244, 235, 217, 0.5);
  color: var(--cream);
  border-radius: 999px;
  padding: 14px 22px;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 14px;
}
.page-home .ph-hero__aside {
  display: grid;
  gap: 12px;
  align-self: start;
  background: rgba(16, 42, 67, 0.55);
  border: 1px solid rgba(244, 235, 217, 0.28);
  border-radius: var(--ph-radius);
  padding: 18px;
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}
.page-home .ph-aside__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
}
.page-home .ph-legend-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(244, 235, 217, 0.22);
  font-size: 13px;
}
.page-home .ph-legend-item span {
  color: rgba(244, 235, 217, 0.66);
  font-size: 12px;
}
.page-home .ph-legend-item strong {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--cream);
}
.page-home .ph-hero__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-home .ph-hero__legend a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(244, 235, 217, 0.84);
  border: 1px solid rgba(244, 235, 217, 0.3);
  border-radius: 999px;
  padding: 8px 14px;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 13px;
  transition: border-color 0.2s, background 0.2s;
}
.page-home .ph-hero__legend a:hover {
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.12);
}

.page-home .ph-cats {
  padding: var(--ph-section-pad) var(--ph-page-edge);
}
.page-home .ph-cats__wrap {
  max-width: var(--ph-max);
  margin: 0 auto;
}
.page-home .ph-cats__head {
  display: grid;
  gap: 28px;
  align-items: end;
}
.page-home .ph-cats__intro .eyebrow,
.page-home .ph-migrate__text .eyebrow,
.page-home .ph-events__head .eyebrow,
.page-home .ph-local__intro .eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
}
.page-home .ph-migrate__text .eyebrow,
.page-home .ph-local__intro .eyebrow {
  color: var(--gold);
}
.page-home .ph-cats__intro h2 {
  margin: 10px 0 14px;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.12;
}
.page-home .ph-cats__intro .lead {
  max-width: 46em;
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
}
.page-home .ph-cats__link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--ember);
  font-family: var(--font-head);
  font-size: 14px;
  text-underline-offset: 4px;
}
.page-home .ph-cats__art {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--ph-shadow);
}
.page-home .ph-cats__note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 40px 0 16px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 14px 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.page-home .ph-cats__note-dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ember);
}
.page-home .ph-cats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-home .ph-cat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 12px 12px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.page-home .ph-cat:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: 0 12px 26px rgba(43, 33, 24, 0.08);
}
.page-home .ph-cat::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  transition: background 0.2s;
}
.page-home .ph-cat:hover::before {
  background: var(--ember);
}
.page-home .ph-cat__num {
  padding-right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ember);
}
.page-home .ph-cat__name {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.page-home .ph-cat__desc {
  font-size: 11px;
  line-height: 1.45;
  color: rgba(43, 33, 24, 0.68);
}

.page-home .ph-migrate {
  position: relative;
  background:
    radial-gradient(circle at 15% 20%, rgba(201, 162, 39, 0.12), transparent 30%),
    var(--ocean);
  color: var(--cream);
  padding: var(--ph-section-pad) var(--ph-page-edge);
  overflow: hidden;
}
.page-home .ph-migrate__wrap {
  max-width: var(--ph-max);
  margin: 0 auto;
  display: grid;
  gap: 36px;
  align-items: center;
}
.page-home .ph-migrate__figure {
  position: relative;
}
.page-home .ph-migrate__num {
  display: inline-flex;
  position: absolute;
  left: -12px;
  top: -22px;
  z-index: 2;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
}
.page-home .ph-migrate__img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(244, 235, 217, 0.22);
  box-shadow: 0 30px 66px rgba(0, 0, 0, 0.24);
}
.page-home .ph-migrate__figcap {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(244, 235, 217, 0.66);
}
.page-home .ph-migrate__text h2 {
  margin: 10px 0 16px;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.12;
  color: var(--cream);
}
.page-home .ph-migrate__text > p {
  max-width: 38em;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(244, 235, 217, 0.86);
}
.page-home .ph-steps {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: phStep;
  display: grid;
  gap: 12px;
}
.page-home .ph-steps li {
  counter-increment: phStep;
  display: flex;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(244, 235, 217, 0.22);
  font-size: 14px;
  line-height: 1.6;
}
.page-home .ph-steps li::before {
  content: counter(phStep, decimal-leading-zero);
  flex: 0 0 28px;
  font-family: var(--font-mono);
  color: var(--gold);
}
.page-home .ph-migrate__btn {
  display: inline-flex;
  margin-top: 22px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ember);
  border: 1px solid var(--ember);
  color: var(--cream);
  text-decoration: none;
  font-family: var(--font-head);
}

.page-home .ph-events {
  padding: var(--ph-section-pad) var(--ph-page-edge);
}
.page-home .ph-events__wrap {
  max-width: var(--ph-max);
  margin: 0 auto;
}
.page-home .ph-events__head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 34px;
}
.page-home .ph-events__num {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
}
.page-home .ph-events__head h2 {
  margin: 6px 0 16px;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.12;
}
.page-home .ph-events__head .lead {
  margin: 0;
  max-width: 46em;
  font-size: 16px;
  line-height: 1.75;
}
.page-home .ph-events__grid {
  display: grid;
  gap: 20px;
}
.page-home .ph-event,
.page-home .ph-download {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  padding: 0;
}
.page-home .ph-event {
  padding-bottom: 22px;
}
.page-home .ph-events__grid .ph-event--plain {
  display: flex;
  align-items: center;
}
.page-home .ph-event__img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}
.page-home .ph-event__body {
  padding: 18px 20px 4px;
}
.page-home .ph-event h3,
.page-home .ph-download h3 {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 600;
  margin: 12px 0 10px;
}
.page-home .ph-event p,
.page-home .ph-download p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(43, 33, 24, 0.76);
}
.page-home .ph-event a,
.page-home .ph-download a {
  color: var(--ember);
  font-family: var(--font-head);
  font-size: 13px;
  text-underline-offset: 4px;
}
.page-home .tag {
  display: inline-flex;
  background: rgba(201, 162, 39, 0.14);
  color: var(--ink);
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.page-home .ph-download {
  background: var(--stage);
  color: var(--cream);
  padding: 24px;
}
.page-home .ph-download h3,
.page-home .ph-download p {
  color: var(--cream);
}
.page-home .ph-download__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
}
.page-home .ph-download ul {
  list-style: none;
  margin: 16px 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.page-home .ph-download li {
  padding: 10px 12px;
  border: 1px dashed rgba(244, 235, 217, 0.25);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
}
.page-home .ph-download .tag {
  background: rgba(201, 162, 39, 0.16);
  color: var(--cream);
}

.page-home .ph-local {
  position: relative;
  background: linear-gradient(150deg, var(--stage) 0%, var(--ocean) 70%, var(--ocean) 100%);
  color: var(--cream);
  padding: var(--ph-section-pad) var(--ph-page-edge);
  overflow: hidden;
}
.page-home .ph-local::before {
  content: "HN";
  position: absolute;
  top: -40px;
  right: -20px;
  font-family: var(--font-head);
  font-size: clamp(120px, 24vw, 320px);
  line-height: 1;
  color: rgba(244, 235, 217, 0.04);
  font-weight: 700;
  z-index: 0;
}
.page-home .ph-local__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  width: 100%;
  height: auto;
  max-height: 320px;
  opacity: 0.12;
  z-index: 0;
}
.page-home .ph-local__wrap {
  position: relative;
  z-index: 1;
  max-width: var(--ph-max);
  margin: 0 auto;
}
.page-home .ph-local__intro h2 {
  margin: 10px 0 16px;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(32px, 4.5vw, 60px);
  line-height: 1.12;
}
.page-home .ph-local__intro p {
  max-width: 40em;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(244, 235, 217, 0.84);
}
.page-home .ph-local__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 34px 0;
}
.page-home .ph-stat {
  margin: 0;
  background: rgba(244, 235, 217, 0.06);
  border-left: 3px solid var(--gold);
  border-radius: 0 14px 14px 0;
  padding: 14px 16px;
}
.page-home .ph-stat dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(244, 235, 217, 0.62);
}
.page-home .ph-stat dd {
  margin: 4px 0 0;
  font-family: var(--font-head);
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 300;
  color: var(--cream);
}
.page-home .ph-local__trust {
  display: grid;
  gap: 12px;
  border: 1px dashed rgba(244, 235, 217, 0.4);
  border-radius: 20px;
  padding: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(244, 235, 217, 0.82);
}
.page-home .ph-local__meta {
  opacity: 0.7;
}
.page-home .ph-local__link {
  display: inline-flex;
  justify-self: start;
  color: var(--cream);
  background: var(--ember);
  border-radius: 999px;
  padding: 10px 18px;
  text-decoration: none;
  font-family: var(--font-head);
}

@media (min-width: 720px) {
  .page-home .ph-cats__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .page-home .ph-local__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .page-home .ph-hero__inner {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
  }
  .page-home .ph-hero__title {
    grid-column: 1 / span 7;
  }
  .page-home .ph-hero__aside {
    grid-column: 9 / span 4;
  }
  .page-home .ph-hero__legend {
    grid-column: 1 / -1;
  }
  .page-home .ph-cats__head {
    grid-template-columns: 7fr 4fr;
    align-items: end;
    gap: 48px;
  }
  .page-home .ph-migrate__wrap {
    grid-template-columns: 5fr 7fr;
    gap: 56px;
  }
  .page-home .ph-events__grid {
    grid-template-columns: 6fr 4fr 4fr;
    align-items: stretch;
  }
}
@media (min-width: 1100px) {
  .page-home .ph-cats__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
