.day-hero,
.route-section {
  --hero-scroll-range: 100svh;
}

.day-hero {
  /* A shorter scroll-through: the three times of day pass without a long scroll trap. */
  --hero-scroll-range: 60svh;
  --hero-viewport-height: max(520px, calc(100svh - var(--header-height)));
  position: relative;
  height: calc(var(--hero-viewport-height) + var(--hero-scroll-range));
  color: var(--color-white);
  background: #6a4937;
}

.route-section {
  margin-top: 0;
}

.day-hero-viewport {
  position: sticky;
  top: var(--header-height);
  height: var(--hero-viewport-height);
  overflow: hidden;
}

.day-hero-media,
.day-hero-image,
.day-hero-shade {
  position: absolute;
  inset: 0;
}

.day-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: opacity;
}

.day-hero-image[data-time="morning"] {
  z-index: 1;
  opacity: 1;
}

.day-hero-image[data-time="noon"] {
  z-index: 2;
  opacity: 0;
}

.day-hero-image[data-time="evening"] {
  z-index: 3;
  opacity: 0;
}

.day-hero-shade {
  z-index: 4;
  background: rgba(20, 16, 13, 0.22);
  pointer-events: none;
}

.day-hero-inner {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  width: min(calc(100% - 48px), 1320px);
  height: 100%;
  margin-inline: auto;
  padding-bottom: 72px;
}

.day-hero-copy {
  max-width: 650px;
}

.day-hero-kicker {
  margin-bottom: 13px;
  font-size: 0.9375rem;
  font-weight: 800;
}

.day-hero h1 {
  margin-bottom: 18px;
  font-size: 3rem;
  text-shadow: 0 3px 22px rgba(15, 10, 8, 0.58);
}

.day-hero-copy p {
  max-width: 590px;
  margin-bottom: 0;
  font-size: 1.1875rem;
  font-weight: 700;
  text-shadow: 0 2px 16px rgba(15, 10, 8, 0.68);
}

.day-hero-times {
  position: absolute;
  right: max(24px, calc((100vw - 1320px) / 2));
  bottom: 36px;
  z-index: 6;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 16px;
  list-style: none;
}

.day-hero-times button {
  display: flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 6px;
  border: 0;
  color: inherit;
  background: transparent;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 800;
  cursor: pointer;
  opacity: 0.66;
}

.day-hero-times button::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 50%;
  content: "";
}

.day-hero-times button:hover,
.day-hero-times button:focus-visible,
.day-hero-times button.is-current {
  opacity: 1;
}

.day-hero-times button.is-current::before {
  background: currentColor;
}

.home-story {
  padding: clamp(84px, 12vw, 156px) 0;
  background: var(--color-paper-light);
}

.home-story-frame {
  display: grid;
  grid-template-columns: minmax(250px, 0.76fr) minmax(0, 1.24fr);
  align-items: start;
  gap: clamp(52px, 9vw, 142px);
}

.home-story-heading {
  position: sticky;
  top: calc(var(--header-height) + 48px);
}

.home-story-heading h2 {
  margin-bottom: 24px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(2.125rem, 3.2vw, 3rem);
  font-weight: 700;
}

.home-story-heading > p:not(.eyebrow) {
  max-width: 390px;
  margin-bottom: 26px;
  font-size: 1rem;
  line-height: 2.05;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-bottom: 1px solid currentColor;
  font-size: 0.9375rem;
  font-weight: 800;
  text-decoration: none;
  gap: 9px;
}

.home-story-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-story-piece {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(280px, 1.25fr);
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  padding: 0 0 clamp(40px, 6vw, 72px);
}

.home-story-piece + .home-story-piece {
  padding-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--color-line);
}

.home-story-piece:nth-child(even) {
  grid-template-columns: minmax(280px, 1.25fr) minmax(180px, 0.75fr);
}

.home-story-piece:nth-child(even) .home-story-copy {
  order: 2;
}

.home-story-piece figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.home-story-piece img {
  width: 100%;
  aspect-ratio: 1 / 1.04;
  object-fit: cover;
}

.home-story-time {
  margin-bottom: 12px;
  color: var(--color-action-dark);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.home-story-piece h3 {
  margin-bottom: 12px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.375rem, 2vw, 1.75rem);
}

.home-story-piece p:not(.home-story-time) {
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 2;
}

.home-intro-copy {
  max-width: 750px;
}

.home-fee-band {
  position: relative;
  overflow: hidden;
}

.home-fee-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 52px;
}

.home-fee-number {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}

.home-fee-number strong {
  font-size: 3.375rem;
  line-height: 1;
}

.recruit-band {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  min-height: 430px;
  color: var(--color-white);
  background: var(--color-navy);
}

.recruit-copy {
  align-self: center;
  padding: clamp(36px, 6vw, 82px);
}

.recruit-image {
  min-height: 430px;
  overflow: hidden;
}

.recruit-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .day-hero h1 {
    font-size: 2.75rem;
  }

  .home-fee-grid {
    grid-template-columns: 1fr;
  }

  .home-story-frame {
    gap: 58px;
  }

  .recruit-band {
    grid-template-columns: 1fr;
  }

  .recruit-image {
    min-height: 350px;
  }
}

@media (max-width: 767px) {
  .day-hero {
    --hero-viewport-height: max(560px, calc(100svh - var(--header-height)));
    height: calc(var(--hero-viewport-height) + var(--hero-scroll-range));
  }

  .day-hero-inner {
    width: calc(100% - 32px);
    padding-bottom: 76px;
  }

  .day-hero h1 {
    font-size: 2rem;
  }

  .day-hero-copy p {
    font-size: 1.0625rem;
    line-height: 1.75;
  }

  .day-hero-image {
    object-position: 32% center;
  }

  .day-hero-times {
    right: 10px;
    bottom: 14px;
    gap: 4px;
  }

  .home-story {
    padding: 72px 0;
  }

  .home-story-frame {
    display: block;
  }

  .home-story-heading {
    position: static;
    margin-bottom: 48px;
  }

  .home-story-heading h2 {
    font-size: 2.125rem;
  }

  .home-story-piece,
  .home-story-piece:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home-story-piece:nth-child(even) .home-story-copy {
    order: 0;
  }

  .home-story-piece img {
    aspect-ratio: 1.42 / 1;
  }

  .home-fee-number strong {
    font-size: 2.75rem;
  }

  .recruit-copy {
    padding: 48px 16px;
  }

  .recruit-image {
    min-height: 290px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .day-hero-image[data-time="morning"],
  .day-hero-image[data-time="noon"] {
    opacity: 0 !important;
  }

  .day-hero-image[data-time="evening"] {
    opacity: 1 !important;
  }
}
