.page-home {
  --home-space: 2.5rem;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(60% 38% at 88% 4%, rgba(74, 59, 124, 0.55), transparent 72%),
    radial-gradient(44% 28% at 12% 24%, rgba(59, 42, 109, 0.42), transparent 70%),
    linear-gradient(180deg, var(--color-space) 0%, #221543 46%, var(--color-nebula) 100%);
  color: var(--color-white);
}

.page-home .container {
  max-width: var(--container);
}

.page-home .breadcrumb {
  padding: 1.15rem 0;
  font-family: var(--font-index);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--color-silver);
}

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

.page-home .breadcrumb-item.is-current {
  color: var(--color-gold);
}

.page-home .section-head {
  margin-bottom: var(--home-space);
}

.page-home .section-eyebrow {
  font-family: var(--font-index);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 0.65rem;
}

.page-home .section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  color: var(--color-white);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.35);
}

.page-home .section-copy {
  max-width: 660px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-silver);
}

.page-home .home-hero {
  padding: clamp(1.25rem, 5vw, 4rem) 0 2rem;
}

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

.page-home .hero-copy {
  max-width: 680px;
}

.page-home .hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.12;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 1rem;
  color: var(--color-paper);
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.55);
}

.page-home .hero-lead {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-silver);
  margin: 0 0 1.6rem;
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.page-home .hero-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin: 2rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-home .hero-meta li {
  font-family: var(--font-index);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--color-silver);
}

.page-home .hero-meta strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-bottom: 0.15rem;
}

.page-home .hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(212, 175, 55, 0.28);
}

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

.page-home .hero-orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-home .hero-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(27, 16, 53, 0.78);
  border: 1px solid rgba(212, 175, 55, 0.7);
  color: var(--color-paper);
  font-family: var(--font-index);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  backdrop-filter: blur(6px);
  animation: page-home-badge-glow 3.6s ease-in-out infinite;
}

.page-home .home-directory {
  padding: clamp(2rem, 6vw, 4rem) 0 1rem;
}

.page-home .directory-grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 2rem;
}

.page-home .dir-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(59, 42, 109, 0.88), rgba(27, 16, 53, 0.95));
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.page-home .dir-rules {
  transform: rotate(-1deg);
}

.page-home .dir-history {
  transform: rotate(1deg);
}

.page-home .dir-service {
  transform: rotate(1.4deg);
}

.page-home .dir-card:hover,
.page-home .dir-card:focus-within {
  transform: rotate(0deg);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold);
}

.page-home .dir-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.page-home .dir-num {
  font-family: var(--font-index);
  font-size: 1.5rem;
  letter-spacing: 0.12em;
  color: var(--color-gold);
}

.page-home .dir-icon-img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.page-home .dir-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-white);
  margin: 0 0 0.6rem;
}

.page-home .dir-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-silver);
  margin: 0 0 1.25rem;
  flex-grow: 1;
}

.page-home .btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.page-home .home-calibration {
  margin-top: clamp(2rem, 6vw, 4rem);
  padding: clamp(2rem, 6vw, 4rem) 0;
  background: linear-gradient(90deg, rgba(74, 59, 124, 0.4), rgba(27, 16, 53, 0.2));
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
}

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

.page-home .calib-copy {
  max-width: 640px;
}

.page-home .calib-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.page-home .calib-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-silver);
}

.page-home .calib-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
}

.page-home .calib-visual {
  position: relative;
}

.page-home .calib-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  opacity: 0.55;
  border: 1px solid rgba(212, 175, 55, 0.28);
}

.page-home .calib-scan {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34%;
  border-radius: var(--radius);
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.14), transparent);
  animation: page-home-scan 6s var(--ease) infinite;
  pointer-events: none;
}

.page-home .calib-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1.5rem;
}

.page-home .calib-track::before {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold) 10%, var(--color-gold) 90%, transparent);
}

.page-home .calib-point {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.page-home .calib-point::before {
  content: "";
  width: 1px;
  height: 12px;
  background: var(--color-gold);
  opacity: 0.75;
}

.page-home .calib-point em {
  margin-top: 0.45rem;
  font-style: normal;
  font-family: var(--font-index);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--color-silver);
  white-space: nowrap;
}

.page-home .home-recent {
  padding: clamp(2.5rem, 7vw, 5rem) 0;
}

.page-home .recent-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-top: 1.5rem;
}

.page-home .recent-visual {
  position: relative;
}

.page-home .recent-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: var(--shadow-card);
}

.page-home .recent-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--color-coral);
  color: var(--color-ink);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 18px rgba(255, 127, 63, 0.4);
}

.page-home .recent-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .recent-steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-home .recent-steps li:last-child {
  border-bottom: 0;
}

.page-home .step-num {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-family: var(--font-index);
  font-size: 0.95rem;
}

.page-home .recent-steps h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin: 0 0 0.25rem;
  color: var(--color-paper);
}

.page-home .recent-steps p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
  color: var(--color-silver);
}

.page-home .home-classify {
  padding-bottom: clamp(2.5rem, 7vw, 5rem);
}

.page-home .classify-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.page-home .classify-map::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 78%;
  height: 78%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(212, 175, 55, 0.24);
  border-radius: 50%;
  pointer-events: none;
}

.page-home .classify-map::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.8);
  pointer-events: none;
}

.page-home .classify-core {
  grid-column: 1 / -1;
  justify-self: center;
  width: 150px;
  height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  padding: 1rem;
  text-align: center;
  background: radial-gradient(circle at 30% 25%, var(--color-nebula), var(--color-space));
  border: 1px solid var(--color-gold);
  box-shadow: var(--shadow-gold);
  z-index: 1;
}

.page-home .classify-core-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-paper);
}

.page-home .classify-core-sub {
  font-family: var(--font-index);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--color-silver);
  margin-top: 0.35rem;
}

.page-home .classify-link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  background: linear-gradient(145deg, rgba(59, 42, 109, 0.78), rgba(27, 16, 53, 0.92));
  border: 1px solid rgba(212, 175, 55, 0.25);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  z-index: 1;
}

.page-home .classify-link:hover,
.page-home .classify-link:focus-visible {
  transform: translateY(-2px);
  border-color: var(--color-gold);
  box-shadow: var(--shadow-gold);
}

.page-home .classify-link strong {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--color-white);
}

.page-home .classify-link span {
  font-size: 0.85rem;
  color: var(--color-silver);
}

.page-home .classify-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 2rem;
}

.page-home .classify-footer p {
  max-width: 520px;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-silver);
}

.page-home .home-trust {
  padding: 0 0 clamp(2.5rem, 7vw, 5rem);
}

.page-home .trust-strip {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(59, 42, 109, 0.8), rgba(27, 16, 53, 0.95));
  border: 1px solid rgba(212, 175, 55, 0.22);
  box-shadow: var(--shadow-card);
}

.page-home .trust-strip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.page-home .trust-quote {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--color-paper);
  margin: 0 0 1.5rem;
}

.page-home .trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 0;
}

.page-home .trust-grid div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.page-home .trust-grid dt {
  font-family: var(--font-index);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-silver);
}

.page-home .trust-grid dd {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-gold);
  margin: 0;
}

.page-home .trust-honor {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-silver);
}

@keyframes page-home-scan {
  0% {
    left: -10%;
  }
  100% {
    left: 110%;
  }
}

@keyframes page-home-badge-glow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(212, 175, 55, 0);
  }
  50% {
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.55);
  }
}

@media (min-width: 768px) {
  .page-home {
    --home-space: 3rem;
  }

  .page-home .trust-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .page-home .trust-strip {
    padding: 2.5rem;
  }
}

@media (min-width: 960px) {
  .page-home .hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
  }

  .page-home .hero-copy {
    padding-right: 1.5rem;
  }

  .page-home .directory-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 1.6rem;
  }

  .page-home .dir-card {
    padding: 2rem 1.8rem;
  }

  .page-home .dir-rules {
    margin-top: 0;
  }

  .page-home .dir-history {
    margin-top: 1.5rem;
  }

  .page-home .dir-service {
    margin-top: 2.6rem;
  }

  .page-home .calib-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
  }

  .page-home .recent-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 3rem;
  }

  .page-home .classify-map {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto auto;
    align-content: center;
    gap: 1rem 2rem;
    min-height: 540px;
    margin-top: 3.5rem;
  }

  .page-home .classify-core {
    grid-column: 2;
    grid-row: 2;
    width: 170px;
    height: 170px;
  }

  .page-home .classify-link-a {
    grid-column: 1;
    grid-row: 1;
  }

  .page-home .classify-link-b {
    grid-column: 3;
    grid-row: 1;
  }

  .page-home .classify-link-c {
    grid-column: 1;
    grid-row: 3;
  }

  .page-home .classify-link-d {
    grid-column: 3;
    grid-row: 3;
  }

  .page-home .classify-link {
    padding: 1.25rem 1.5rem;
  }

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