.page-home {
  --page-home-gold-deep: #b8891d;
  --page-home-paper-deep: #e8dfcd;
  --page-home-gridline: rgba(226, 177, 60, 0.22);
  --page-home-card-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  background: var(--deep-blue);
  color: var(--text-light);
  scroll-margin-top: var(--header-h);
}

.page-home .home-directory {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(226, 177, 60, 0.12), transparent 25%),
    linear-gradient(118deg, var(--ink-black) 0%, var(--deep-blue) 56%, rgba(26, 26, 46, 0.85) 100%);
  border-block-end: 1px solid var(--border-dark);
}

.page-home .home-directory::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, rgba(226, 177, 60, 0.06) 0%, transparent 48%);
  background-size: 3px 3px;
  mask-image: linear-gradient(to bottom, transparent 8%, black 90%);
}

.page-home .home-directory-inner {
  position: relative;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding-block: clamp(72px, 10vw, 120px) clamp(48px, 8vw, 88px);
  display: grid;
  gap: 44px;
  align-items: center;
}

.page-home .home-directory-copy {
  max-width: 720px;
}

.page-home .home-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-mono);
}

.page-home .home-kicker-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(226, 177, 60, 0.14);
}

.page-home .home-directory-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 7.5vw, 5.1rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--text-light);
  max-width: 720px;
}

.page-home .home-title-gold {
  display: block;
  color: var(--gold);
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 12px;
  text-decoration-color: rgba(226, 177, 60, 0.4);
}

.page-home .home-directions-line {
  max-width: 680px;
  margin: 28px 0 0;
  font-size: clamp(1rem, 2vw, 1.17rem);
  line-height: 1.7;
  color: var(--text-light);
  opacity: 0.92;
}

.page-home .home-directory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.page-home .home-directory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.page-home .home-directory-meta .code-chip {
  background: rgba(226, 177, 60, 0.12);
}

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

.page-home .home-hero-figure {
  margin: 0;
  border: 2px solid var(--border-dark);
  border-radius: 4px 32px 4px 32px;
  overflow: hidden;
  background: var(--ink-black);
  box-shadow: var(--page-home-card-shadow);
  transform: rotate(0.6deg);
}

.page-home .home-hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.page-home .home-directory-caption {
  margin: 14px 0 0;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gold);
  letter-spacing: 0.08em;
}

.page-home .home-index {
  position: relative;
  background: var(--warm-paper);
  color: var(--ink-black);
  border-block-end: 2px solid var(--ink-black);
}

.page-home .home-index::before {
  content: "INDEX";
  position: absolute;
  top: 26px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  color: var(--page-home-paper-deep);
  font-weight: 600;
}

.page-home .home-index-inner {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding-block: clamp(48px, 7vw, 72px);
}

.page-home .home-index-grid {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .home-index-item {
  border-block-start: 2px solid var(--ink-black);
}

.home-page .home-index-item:last-child {
  border-block-end: 2px solid var(--ink-black);
}

.page-home .home-index-item:last-child {
  border-block-end: 2px solid var(--ink-black);
}

.page-home .home-index-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 10px;
  text-decoration: none;
  color: inherit;
  background: transparent;
  transition: background 0.2s ease, padding 0.2s ease;
}

.page-home .home-index-link:hover,
.page-home .home-index-link:focus-visible {
  background: var(--deep-blue);
  color: var(--text-light);
  padding-inline: 18px;
  outline: none;
}

.page-home .home-index-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.page-home .home-index-link:hover .home-index-num,
.page-home .home-index-link:focus-visible .home-index-num {
  color: var(--gold);
}

.page-home .home-index-name {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 700;
}

.page-home .home-index-arrow {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--crimson);
  opacity: 0.8;
}

.page-home .home-section {
  position: relative;
  overflow: hidden;
}

.page-home .home-section-dark {
  background:
    linear-gradient(115deg, rgba(226, 177, 60, 0.07) 0%, transparent 24%),
    var(--deep-blue);
  border-block-start: 1px solid var(--border-dark);
  border-block-end: 1px solid var(--border-dark);
}

.page-home .home-section-dark::after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -280px;
  bottom: -280px;
  border: 1px solid rgba(226, 177, 60, 0.18);
  transform: rotate(45deg);
  pointer-events: none;
}

.page-home .home-section-paper {
  background:
    linear-gradient(to bottom, transparent 0%, rgba(245, 240, 230, 1) 100%),
    var(--warm-paper);
  color: var(--ink-black);
  border-block-start: 1px solid rgba(15, 15, 26, 0.1);
}

.page-home .home-section-inner {
  position: relative;
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding-block: var(--space-section);
  display: grid;
  gap: 40px;
}

.page-home .home-section-dark .home-section-inner {
  grid-template-columns: 1fr;
}

.page-home .home-section-copy {
  min-width: 0;
}

.page-home .home-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.page-home .home-section-eyebrow::before {
  content: "";
  width: 24px;
  height: 3px;
  background: var(--gold);
}

.page-home .home-section-paper .home-section-eyebrow {
  color: var(--page-home-gold-deep);
}

.page-home .home-section-copy h2,
.page-home .home-section-inner > .section-index .section-index-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-black);
}

.page-home .home-section-dark .home-section-copy h2 {
  color: var(--text-light);
}

.page-home .home-section-lead {
  margin: 20px 0 0;
  max-width: 640px;
  font-size: 1.06rem;
  line-height: 1.72;
  color: var(--text-light);
}

.page-home .home-section-paper .home-section-lead {
  color: rgba(15, 15, 26, 0.82);
}

.page-home .home-point-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 600px;
}

.page-home .home-point-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.98rem;
  line-height: 1.55;
}

.page-home .home-point-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 4px;
  background: var(--gold);
  transform: skew(-20deg);
}

.page-home .home-section-paper .home-point-list li {
  color: rgba(15, 15, 26, 0.85);
}

.page-home .home-section-copy .btn-primary,
.page-home .home-section-copy .btn-ghost {
  margin-top: 28px;
}

.page-home .home-section-visual {
  min-width: 0;
}

.page-home .home-figure-card {
  margin: 0;
  border: 2px solid var(--border-dark);
  border-radius: 4px 24px 4px 24px;
  overflow: hidden;
  background: var(--ink-black);
  box-shadow: var(--page-home-card-shadow);
  transform: rotate(-0.8deg);
}

.page-home .home-figure-card img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.page-home .home-figure-card figcaption {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--gold);
  letter-spacing: 0.04em;
  background: var(--ink-black);
}

.page-home .home-figure-card-paper {
  border-color: rgba(15, 15, 26, 0.75);
  background: var(--ink-black);
}

.page-home .home-section-num-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 3px solid var(--gold);
  padding: 28px;
  background: linear-gradient(140deg, rgba(226, 177, 60, 0.15), transparent 65%);
  box-shadow: var(--page-home-card-shadow);
  transform: skew(-4deg) rotate(-1deg);
  min-height: 200px;
}

.page-home .home-section-num-large {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 900;
  line-height: 1;
  color: var(--gold);
  text-shadow: 4px 4px 0 rgba(226, 177, 60, 0.18);
}

.page-home .home-section-num-label {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-light);
  max-width: 200px;
}

.page-home .home-timeline {
  position: relative;
  margin-top: 40px;
  border-left: 3px solid rgba(26, 26, 46, 0.25);
  padding-left: 0;
}

.page-home .home-timeline-item {
  position: relative;
  border-block-end: 1px solid rgba(26, 26, 46, 0.14);
}

.page-home .home-timeline-item:last-child {
  border-block-end: none;
}

.page-home .home-timeline-heading {
  margin: 0;
}

.page-home .home-timeline-trigger {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  padding: 18px 8px 18px 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 700;
  color: var(--ink-black);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.page-home .home-timeline-trigger:hover,
.page-home .home-timeline-trigger:focus-visible {
  color: var(--crimson);
  padding-left: 8px;
  outline: none;
}

.page-home .home-timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--warm-paper);
  box-shadow: 0 0 0 2px var(--gold);
}

.page-home .home-timeline-time {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(15, 15, 26, 0.55);
  background: rgba(226, 177, 60, 0.18);
  padding: 5px 10px;
  border-radius: 99px;
  white-space: nowrap;
}

.page-home .home-timeline-content {
  padding: 0 8px 20px 32px;
  max-width: 640px;
  font-size: 0.97rem;
  line-height: 1.7;
  color: rgba(15, 15, 26, 0.78);
}

.page-home .home-timeline-content[hidden] {
  display: none;
}

.page-home .home-timeline-trigger[aria-expanded="true"] + .home-timeline-content {
  display: block;
}

.page-home .home-timeline-trigger[aria-expanded="true"] .home-timeline-dot {
  background: var(--crimson);
  box-shadow: 0 0 0 2px var(--crimson);
}

.page-home .home-updates-more {
  margin-top: 28px;
}

.page-home .home-updates-more a {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--crimson);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 4px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.page-home .home-updates-more a:hover,
.page-home .home-updates-more a:focus-visible {
  color: var(--page-home-gold-deep);
  opacity: 0.9;
  outline: none;
}

.page-home .home-section-enter {
  background:
    linear-gradient(to right, rgba(26, 26, 46, 0.97) 0%, rgba(26, 26, 46, 0.82) 45%, rgba(26, 26, 46, 0.55) 100%),
    var(--deep-blue);
}

.page-home .home-enter-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.page-home .home-enter-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--deep-blue) 0%, transparent 60%);
}

.page-home .home-enter-figure {
  width: 100%;
  height: 100%;
  margin: 0;
}

.page-home .home-enter-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.65) contrast(1.15);
}

.page-home .home-section-enter .home-section-inner {
  position: relative;
  z-index: 2;
  display: block;
  padding-block: clamp(64px, 10vw, 110px);
}

.page-home .home-enter-content {
  max-width: 680px;
}

.page-home .home-enter-content .home-section-eyebrow {
  color: var(--gold);
}

.page-home .home-enter-content h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-light);
}

.page-home .home-enter-content .home-section-lead {
  color: var(--text-light);
}

.page-home .home-enter-points {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.page-home .home-enter-points p {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid var(--border-dark);
  border-left: 4px solid var(--gold);
  background: rgba(15, 15, 26, 0.55);
  color: var(--text-light);
  font-size: 0.98rem;
  line-height: 1.65;
  border-radius: 0 8px 8px 0;
}

.page-home .home-enter-points strong {
  color: var(--gold);
}

.page-home .home-enter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.page-home .home-brand-note {
  background:
    linear-gradient(180deg, rgba(245, 240, 230, 1) 0%, #ece4d2 100%);
  color: var(--ink-black);
  border-block-start: 1px solid rgba(15, 15, 26, 0.2);
}

.page-home .home-brand-note-inner {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  padding-block: var(--space-section);
  text-align: center;
}

.page-home .home-brand-note-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--ink-black);
}

.page-home .home-brand-note p {
  max-width: 760px;
  margin: 20px auto 0;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(15, 15, 26, 0.78);
}

.page-home .home-brand-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 36px auto 0;
}

.page-home .home-brand-stats div {
  border: 2px solid var(--ink-black);
  background: var(--warm-paper);
  padding: 18px 10px;
  box-shadow: 6px 6px 0 var(--ink-black);
}

.page-home .home-brand-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--crimson);
  line-height: 1.1;
}

.page-home .home-brand-stats span {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(15, 15, 26, 0.7);
}

.page-home .home-brand-note .btn-ghost {
  margin-top: 34px;
  background: transparent;
  border: 2px solid var(--ink-black);
  color: var(--ink-black);
}

.page-home .home-brand-note .btn-ghost:hover,
.page-home .home-brand-note .btn-ghost:focus-visible {
  background: var(--ink-black);
  color: var(--text-light);
  outline: none;
}

.page-home .home-brand-figure {
  margin: 44px auto 0;
  max-width: 860px;
  border: 2px solid var(--ink-black);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 10px 10px 0 var(--deep-blue);
}

.page-home .home-brand-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

@media (min-width: 720px) {
  .page-home .home-directory-inner {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 56px;
  }

  .page-home .home-section-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
  }

  .page-home .home-section-num-block {
    min-height: 280px;
    margin-left: auto;
    width: min(320px, 100%);
  }

  .page-home .home-timeline {
    padding-left: 24px;
  }

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

  .page-home .home-enter-points {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .page-home .home-section-dark .home-section-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }

  .page-home .home-section-paper .home-section-inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

  .page-home .home-section-paper .home-section-copy {
    order: 2;
  }

  .page-home .home-section-paper .home-section-visual {
    order: 1;
  }
}
