.page-home {
  background: var(--ink-black);
  color: var(--white-warm);
}

.page-home .home-hero {
  position: relative;
  padding: 108px 0 64px;
  overflow: hidden;
  background: var(--ink-black);
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 8%;
  width: 4px;
  height: 110px;
  background: var(--red-deep);
  transform: skewX(-20deg);
  z-index: 1;
  pointer-events: none;
}

.page-home .home-hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .home-hero-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.page-home .home-hero-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 32px;
  height: 1px;
  background: var(--gold-gradient);
}

.page-home .home-hero-inner {
  position: relative;
  z-index: 2;
}

.page-home .home-hero-copy {
  max-width: 620px;
  margin-bottom: 40px;
  padding-left: 16px;
  border-left: 3px solid var(--gold-deep);
}

.page-home .home-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: var(--fs-6);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.page-home .home-eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--red-deep);
  transform: rotate(45deg);
  flex: 0 0 7px;
}

.page-home .home-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw + 0.5rem, 3.5rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
  color: var(--white-warm);
}

.page-home .home-hero-lead {
  font-size: var(--fs-5);
  line-height: 1.85;
  color: var(--gray-mist);
}

.page-home .home-entry-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-home .home-entry-item {
  min-width: 0;
}

.page-home .home-entry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 260px;
  padding: 28px;
  overflow: hidden;
  background: var(--panel-dark);
  border: 1px solid var(--brown-dim);
  clip-path: var(--cut-corner);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}

.page-home .home-entry-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid transparent;
  pointer-events: none;
  z-index: 2;
  transition: border-color var(--dur) var(--ease-out);
}

.page-home .home-entry-card:hover,
.page-home .home-entry-card:focus-visible {
  border-color: var(--gold-deep);
  transform: translateY(-4px);
}

.page-home .home-entry-card:hover::before,
.page-home .home-entry-card:focus-visible::before {
  border-color: var(--gold-deep);
}

.page-home .home-entry-bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.28;
  transition: opacity var(--dur) var(--ease-out), transform 0.5s var(--ease-out);
}

.page-home .home-entry-card:hover .home-entry-bg {
  opacity: 0.45;
  transform: scale(1.04);
}

.page-home .home-entry-index {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--font-heading);
  font-size: var(--fs-2);
  color: var(--gold-deep);
  opacity: 0.55;
  z-index: 2;
  line-height: 1;
}

.page-home .home-entry-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 6px 10px;
  font-size: var(--fs-6);
  font-weight: 700;
  line-height: 1;
  color: var(--white-warm);
  background: var(--red-deep);
  clip-path: var(--cut-corner-sm);
  z-index: 2;
}

.page-home .home-entry-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-home .home-entry-name {
  font-family: var(--font-heading);
  font-size: var(--fs-2);
  color: var(--white-warm);
  line-height: 1.3;
}

.page-home .home-entry-desc {
  font-size: var(--fs-6);
  line-height: 1.7;
  color: var(--gray-mist);
}

.page-home .home-entry-meta {
  font-size: var(--fs-6);
  color: var(--gold-bright);
  letter-spacing: 0.05em;
}

.page-home .home-rule {
  background: var(--panel-dark);
  border-top: 1px solid var(--brown-dim);
  border-bottom: 1px solid var(--brown-dim);
}

.page-home .home-rule-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

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

.page-home .home-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: var(--fs-6);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.page-home .home-section-tag::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--gold-deep);
  transform: skewX(-30deg);
  flex: 0 0 24px;
}

.page-home .home-rule-copy h2,
.page-home .home-archive-copy h2,
.page-home .home-trust-header h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-2);
  line-height: 1.4;
  margin: 0 0 16px;
}

.page-home .home-rule-copy p,
.page-home .home-archive-copy p {
  line-height: 1.85;
  color: var(--gray-mist);
}

.page-home .home-rule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-home .home-rule-figure {
  margin: 0;
  position: relative;
}

.page-home .home-rule-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--brown-dim);
}

.page-home .home-rule-figure .figure-caption {
  margin-top: 12px;
  text-align: center;
  color: var(--gray-mist);
}

.page-home .home-archive {
  background: var(--ink-black);
}

.page-home .home-archive-banner {
  margin-bottom: 40px;
  border: 1px solid var(--brown-dim);
  clip-path: var(--cut-corner);
  overflow: hidden;
}

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

.page-home .home-archive-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.page-home .home-archive-browser {
  padding: 24px;
  background: var(--panel-dark);
  border-left: 3px solid var(--gold-deep);
  clip-path: var(--cut-corner-sm);
}

.page-home .home-archive-browser-label {
  display: block;
  margin-bottom: 16px;
  font-size: var(--fs-6);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
}

.page-home .home-archive-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home .home-archive-chip {
  display: inline-block;
  padding: 10px 18px;
  font-family: var(--font-heading);
  font-size: var(--fs-5);
  color: var(--white-warm);
  background: var(--ink-black);
  border: 1px solid var(--brown-dim);
  clip-path: var(--cut-corner-sm);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}

.page-home .home-archive-chip:hover,
.page-home .home-archive-chip:focus-visible {
  border-color: var(--gold-deep);
  color: var(--gold-bright);
  background: var(--panel-dark);
}

.page-home .home-archive-hint {
  margin: 16px 0 0;
  font-size: var(--fs-6);
  line-height: 1.6;
}

.page-home .home-trust {
  background: var(--ink-black);
  border-top: 1px solid var(--brown-dim);
}

.page-home .home-trust-header {
  margin-bottom: 40px;
  max-width: 720px;
}

.page-home .home-trust-lead {
  margin: 16px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--gold-deep);
  line-height: 1.85;
  color: var(--gray-mist);
}

.page-home .home-trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-home .home-trust-panel {
  padding: 28px;
  margin: 0;
}

.page-home .home-trust-panel-title {
  font-family: var(--font-heading);
  font-size: var(--fs-3);
  line-height: 1.4;
  margin: 0 0 12px;
  position: relative;
  padding-left: 16px;
}

.page-home .home-trust-panel-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 8px;
  height: 8px;
  background: var(--red-deep);
  transform: rotate(45deg);
}

.page-home .home-trust-panel p {
  margin: 0;
  line-height: 1.85;
  color: var(--gray-mist);
  font-size: var(--fs-6);
}

.page-home .home-trust-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--gold-bright);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

.page-home .home-trust-link:hover,
.page-home .home-trust-link:focus-visible {
  border-bottom-color: var(--gold-bright);
  color: var(--gold-deep);
}

@media (min-width: 768px) {
  .page-home .home-entry-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .page-home .home-entry-item--home,
  .page-home .home-entry-item--rules {
    grid-column: span 6;
  }

  .page-home .home-entry-item--history {
    grid-column: span 5;
  }

  .page-home .home-entry-item--version {
    grid-column: span 7;
  }

  .page-home .home-entry-card {
    min-height: 320px;
  }

  .page-home .home-entry-item--home .home-entry-card,
  .page-home .home-entry-item--version .home-entry-card {
    min-height: 360px;
  }

  .page-home .home-rule-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }

  .page-home .home-archive-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
  }

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

@media (min-width: 1024px) {
  .page-home .home-hero {
    padding: 140px 0 80px;
    min-height: 660px;
  }

  .page-home .home-hero-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: center;
  }

  .page-home .home-hero-copy {
    margin-bottom: 0;
  }
}
