.page-home {
  --home-hero-min-height: 92vh;
  --home-corner-size: 24px;
  --home-guide-gap: 0.75rem;
}

.page-home .home-site-guide {
  background: var(--color-primary-deep);
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
  font-family: var(--font-body);
}

.page-home .home-site-guide__inner {
  display: flex;
  align-items: center;
  gap: var(--home-guide-gap);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  font-size: 0.8125rem;
  color: var(--color-text-light);
  overflow-x: auto;
  white-space: nowrap;
}

.page-home .home-site-guide__label {
  color: var(--color-accent);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  flex: 0 0 auto;
}

.page-home .home-site-guide__sep {
  color: rgba(201, 162, 39, 0.5);
  flex: 0 0 auto;
}

.page-home .home-site-guide__item {
  color: var(--color-text-light);
  flex: 0 0 auto;
}

.page-home .home-hero {
  position: relative;
  min-height: var(--home-hero-min-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-primary-deep);
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.page-home .home-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(7, 26, 46, 0.94) 0%, rgba(7, 26, 46, 0.78) 40%, rgba(11, 45, 90, 0.38) 76%, rgba(58, 46, 88, 0.46) 100%),
    radial-gradient(1100px 480px at 85% 22%, rgba(201, 162, 39, 0.16) 0%, transparent 65%);
  pointer-events: none;
}

.page-home .home-hero__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.7;
  pointer-events: none;
}

.page-home .home-hero__lines path {
  transform-box: fill-box;
  animation: home-line-drift 7s ease-in-out infinite alternate;
}

.page-home .home-hero__lines path:nth-child(2) {
  animation-delay: 1.2s;
}

.page-home .home-hero__lines path:nth-child(3) {
  animation-delay: 2.1s;
}

@keyframes home-line-drift {
  from {
    transform: translateY(-6px);
  }
  to {
    transform: translateY(6px);
  }
}

.page-home .home-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 72px;
  padding-bottom: 56px;
}

.page-home .home-hero__kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  color: var(--color-accent);
  margin-bottom: 1rem;
  padding: 0.45rem 1.1rem;
  border: 1px solid rgba(201, 162, 39, 0.5);
  border-radius: var(--radius-pill);
  background: rgba(201, 162, 39, 0.08);
}

.page-home .home-hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 5.4vw, 4.2rem);
  line-height: 1.12;
  color: var(--color-text-light);
  margin: 0 0 1.1rem;
  letter-spacing: -0.01em;
}

.page-home .home-hero__lead {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: rgba(234, 230, 223, 0.88);
  max-width: 34em;
  margin: 0 0 1.75rem;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
}

.page-home .home-hero__note {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(201, 162, 39, 0.85);
  letter-spacing: 0.06em;
}

.page-home .home-hero__side-note {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: rgba(234, 230, 223, 0.55);
  font-family: var(--font-annotation);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  pointer-events: none;
  display: none;
}

.page-home .home-hero__corner {
  position: absolute;
  z-index: 2;
  width: var(--home-corner-size);
  height: var(--home-corner-size);
  border: 0 solid rgba(201, 162, 39, 0.85);
  pointer-events: none;
}

.page-home .home-hero__corner--tl {
  top: 22px;
  left: 22px;
  border-top-width: 2px;
  border-left-width: 2px;
  border-top-left-radius: 12px;
}

.page-home .home-hero__corner--tr {
  top: 22px;
  right: 22px;
  border-top-width: 2px;
  border-right-width: 2px;
  border-top-right-radius: 12px;
}

.page-home .home-hero__corner--bl {
  bottom: 22px;
  left: 22px;
  border-bottom-width: 2px;
  border-left-width: 2px;
  border-bottom-left-radius: 12px;
}

.page-home .home-hero__corner--br {
  bottom: 22px;
  right: 22px;
  border-bottom-width: 2px;
  border-right-width: 2px;
  border-bottom-right-radius: 12px;
}

.page-home .section-head {
  margin-bottom: 2.5rem;
}

.page-home .section-head--light .section-head__title,
.page-home .section-head--light .section-head__desc {
  color: var(--color-text-light);
}

.page-home .section-head--light .section-head__label {
  color: var(--color-accent);
}

.page-home .home-v4,
.page-home .home-steps,
.page-home .home-archive,
.page-home .home-about {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.page-home .home-v4__layout {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.page-home .home-v4__intro p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.78;
  color: var(--color-text-soft);
  margin-bottom: 1rem;
}

.page-home .home-v4__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: var(--color-primary-deep);
}

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

.page-home .home-v4__figure figcaption {
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text-light);
  background: var(--color-primary);
}

.page-home .home-v4__highlights {
  display: grid;
  gap: 1rem;
}

.page-home .home-v4-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-home .home-v4-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.page-home .home-v4-card__title {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary-deep);
  margin: 0.75rem 0 0.4rem;
}

.page-home .home-v4-card__desc {
  font-family: var(--font-body);
  color: var(--color-text-soft);
  font-size: 0.9375rem;
  margin: 0;
}

.page-home .home-v4-card__more {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text);
  margin: 0.7rem 0 0;
  border-left: 2px solid var(--color-accent);
  padding-left: 0.8rem;
}

@media (hover: hover) {
  .page-home .home-v4-card__more {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
  }

  .page-home .home-v4-card:hover .home-v4-card__more,
  .page-home .home-v4-card:focus-within .home-v4-card__more {
    max-height: 140px;
    opacity: 1;
  }
}

.page-home .home-steps__layout {
  display: grid;
  gap: 2rem;
}

.page-home .home-steps__visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

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

.page-home .home-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.page-home .home-step-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(230, 215, 167, 0.18);
  border-radius: var(--radius-md);
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.page-home .home-step-item:hover {
  border-color: rgba(201, 162, 39, 0.6);
  background: rgba(201, 162, 39, 0.08);
  transform: translateY(-2px);
}

.page-home .home-step-item__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-accent);
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}

.page-home .home-step-item__body h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--color-text-light);
  margin: 0 0 0.3rem;
}

.page-home .home-step-item__body p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(234, 230, 223, 0.82);
  margin: 0;
}

.page-home .home-steps__cta {
  margin-top: 2rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(201, 162, 39, 0.14), rgba(123, 45, 59, 0.18));
  border: 1px solid rgba(201, 162, 39, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
}

.page-home .home-steps__cta p {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text-light);
  font-size: 0.9375rem;
}

.page-home .home-steps__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.page-home .home-archive__layout {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.page-home .home-archive__figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.page-home .home-archive__figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 2 / 1;
}

.page-home .home-archive__figure figcaption {
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text-soft);
  background: var(--color-accent-light);
}

.page-home .home-archive__note {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  color: var(--color-wine);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  background: rgba(123, 45, 59, 0.08);
  border: 1px solid rgba(123, 45, 59, 0.25);
  margin-bottom: 1rem;
}

.page-home .home-archive__content p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.78;
  color: var(--color-text-soft);
}

.page-home .home-archive__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.page-home .home-archive__timeline {
  position: relative;
  padding-left: 1.4rem;
  margin: 2rem 0 1.5rem;
  border-left: 2px solid rgba(201, 162, 39, 0.4);
}

.page-home .home-timeline-item {
  position: relative;
  margin-bottom: 1.25rem;
}

.page-home .home-timeline-item::before {
  content: "";
  position: absolute;
  left: -1.4rem;
  top: 1.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid var(--color-accent-light);
  transform: translateX(-50%);
}

.page-home .home-timeline-item__marker {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--color-accent);
  margin-bottom: 0.4rem;
}

.page-home .home-timeline-item__plate {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-card);
}

.page-home .home-timeline-item__plate .plate__title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.2rem;
  color: var(--color-primary-deep);
}

.page-home .home-timeline-item__plate .plate__meta {
  font-size: 0.75rem;
  font-family: var(--font-head);
  letter-spacing: 0.04em;
  color: var(--color-accent);
  margin: 0 0 0.4rem;
}

.page-home .home-timeline-item__plate .plate__desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--color-text-soft);
  margin: 0;
}

.page-home .home-archive__more {
  text-align: center;
  margin-top: 1rem;
}

.page-home .home-about__inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.page-home .home-about__title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--color-text-light);
  margin: 0.8rem 0 1rem;
}

.page-home .home-about__desc {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgba(234, 230, 223, 0.78);
  margin-bottom: 1.5rem;
}

.page-home #v4-experience,
.page-home #restore-steps,
.page-home #archive {
  scroll-margin-top: 88px;
}

@media (min-width: 768px) {
  .page-home .home-site-guide__inner {
    justify-content: flex-end;
  }

  .page-home .home-hero__content {
    padding-top: 96px;
    padding-bottom: 80px;
  }

  .page-home .home-hero__side-note {
    display: block;
  }

  .page-home .home-v4__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 2.5rem;
  }

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

  .page-home .home-v4-card {
    padding: 1.75rem;
  }

  .page-home .home-steps__layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 2.5rem;
    align-items: center;
  }

  .page-home .home-steps__list {
    gap: 0.9rem;
  }

  .page-home .home-archive__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: 2.5rem;
    align-items: center;
  }

  .page-home .home-steps__cta {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero__content {
    padding-left: 2rem;
  }

  .page-home .home-hero__side-note {
    right: 32px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .page-home .home-hero__lines path {
    animation: none;
  }

  .page-home .home-v4-card__more {
    transition: none;
    max-height: none;
    opacity: 1;
  }
}
