:root {
  --home-paper: #f8f7f4;
  --home-ink: #35363a;
  --home-gold: #b69357;
}

.home-page {
  background: var(--home-paper);
}

.home-page .site-header {
  position: relative;
  z-index: 60;
  background: rgba(248, 247, 244, 0.94);
  backdrop-filter: blur(14px);
}

.home-page .landing-main {
  width: min(1360px, 96%);
}

.hero-home {
  position: relative;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  margin-top: 1.5rem;
  padding: 0;
  overflow: hidden;
  background: #f7f5f1;
  border: 1px solid rgba(196, 187, 172, 0.34);
}

.hero-code-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #f7f5f1;
}

.hero-code-slices {
  position: absolute;
  inset: 0 0 0 auto;
  width: 62.5%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-code-slices img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: fill;
}

.hero-home::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(250, 249, 247, 0.97) 0%,
    rgba(250, 249, 247, 0.91) 25%,
    rgba(250, 249, 247, 0.58) 39%,
    rgba(250, 249, 247, 0.12) 52%,
    rgba(250, 249, 247, 0) 62%
  );
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(49%, 610px);
  padding-top: clamp(7rem, 13vw, 13.5rem);
  margin-left: clamp(2.25rem, 5.2vw, 6rem);
}

.hero-copy h1 {
  margin: 0;
  color: var(--home-ink);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  font-size: clamp(3rem, 5.25vw, 5.45rem);
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: 0.035em;
}

.hero-copy h1 span {
  display: block;
  white-space: nowrap;
}

.hero-lead {
  margin: 2.4rem 0 0;
  color: #54555a;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
  font-size: clamp(1.05rem, 1.55vw, 1.38rem);
  letter-spacing: 0.055em;
}

.hero-lead::before {
  content: "";
  display: block;
  width: 58px;
  height: 1px;
  margin-bottom: 1.35rem;
  background: var(--home-gold);
}

.home-page .section-nav {
  z-index: 80;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 45px rgba(64, 58, 49, 0.09);
}

@media (max-width: 1050px) {
  .hero-copy {
    width: 53%;
    margin-left: clamp(1.5rem, 4vw, 3.5rem);
    padding-top: clamp(5rem, 12vw, 8.5rem);
  }

  .hero-copy h1 {
    font-size: clamp(2.65rem, 6.3vw, 4.5rem);
  }

  .hero-home::after {
    background: linear-gradient(
      90deg,
      rgba(250, 249, 247, 0.98) 0%,
      rgba(250, 249, 247, 0.92) 28%,
      rgba(250, 249, 247, 0.52) 44%,
      rgba(250, 249, 247, 0) 63%
    );
  }
}

@media (max-width: 760px) {
  .home-page .landing-main {
    width: min(720px, 94%);
  }

  .hero-home {
    aspect-ratio: auto;
    margin-top: 0.75rem;
    padding: 3.2rem 1.35rem 0;
    overflow: hidden;
  }

  .hero-home::after {
    display: none;
  }

  .hero-copy {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .hero-copy h1 {
    font-size: clamp(2.45rem, 11vw, 4.1rem);
    line-height: 1.3;
  }

  .hero-copy h1 span {
    white-space: normal;
  }

  .hero-lead {
    max-width: 22em;
    margin-top: 1.7rem;
    line-height: 1.85;
  }

  .hero-code-image {
    position: relative;
    inset: auto;
    width: calc(100% + 2.7rem);
    aspect-ratio: 1045 / 941;
    margin: 2.3rem -1.35rem 0;
  }

  .hero-code-slices {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .home-page .section-nav {
    background: rgba(255, 255, 255, 0.94);
  }
}
