/* v230: keep the home introduction usable in a short mobile viewport.
   Only the first home hero is sized to the viewport; the catalogue keeps scrolling. */
@media screen and (max-width: 759px) {
  .home-page .rr-hero {
    display: flex;
    align-items: flex-end;
    height: auto;
    /* Reserve the 72px header, 65px navigation and a small breathing space. */
    min-height: calc(100svh - 156px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    aspect-ratio: auto;
  }

  .home-page .rr-hero .home-story-hero__copy {
    position: relative;
    inset: auto;
    bottom: auto !important; /* Overrides the older, shared hero bottom offset. */
    display: grid;
    gap: 8px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px;
    border: 0;
    border-radius: 0;
    background: rgb(7 18 28 / 84%);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .home-page .rr-hero .eyebrow {
    margin: 0;
    color: #e9c78e;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: .02em;
  }

  .home-page .rr-hero-prompts {
    display: grid;
    gap: 2px;
    margin: 0;
  }

  .home-page .rr-hero-prompts span {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #e8ddcd;
    background: none;
    box-shadow: none;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .home-page .rr-hero h1 {
    max-width: none;
    margin: 4px 0;
    color: #fff0dc;
    font-size: clamp(28px, 7.4vw, 38px);
    line-height: 1.24;
    letter-spacing: -.045em;
  }

  .home-page .rr-hero .home-story-hero__copy > p:not(.eyebrow) {
    max-width: none;
    margin: 0;
    color: #e8ddcd;
    font-size: 16px;
    line-height: 1.55;
  }

  .home-page .rr-hero .button-primary {
    width: 100%;
    min-height: 54px;
    margin: 5px 0 0;
    padding: 12px 16px;
    border: 1px solid #e9c78e;
    border-radius: 14px;
    color: #fff9ec;
    background: rgb(14 47 44 / 90%);
    box-shadow: inset 0 1px rgb(255 247 221 / 18%), 0 8px 22px rgb(0 0 0 / 24%);
    font-size: 16px;
    line-height: 1.4;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: transform 160ms cubic-bezier(.23, 1, .32, 1), background-color 160ms ease;
  }

  .home-page .rr-hero .rr-hero-assurance {
    margin: 0;
    color: #e8ddcd;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: -.025em;
    word-break: keep-all;
    text-wrap: balance;
  }

  .home-page .rr-hero .button-primary:focus-visible {
    outline: 3px solid #fff0dc;
    outline-offset: 3px;
  }

  .home-page .rr-hero .button-primary:active {
    transform: scale(.98);
  }
}

@media screen and (max-width: 759px) and (max-height: 700px) {
  .home-page .rr-hero .home-story-hero__copy {
    padding: 16px;
  }

  /* Short screens show the first hook; the full promise remains in the body copy. */
  .home-page .rr-hero-prompts span:not(:first-child) {
    display: none;
  }
}

@media screen and (max-width: 359px) {
  .home-page .rr-hero .home-story-hero__copy {
    gap: 6px;
    padding: 14px;
  }

  .home-page .rr-hero h1 {
    font-size: 24px;
    line-height: 1.28;
  }
}

/* The entire poster remains one link. The span is its visible consultation action. */
.home-page .home-poster:has(.home-poster__consult) .home-poster__title {
  padding-bottom: 80px;
}

.home-page .home-poster__consult {
  position: absolute;
  z-index: 3;
  inset: auto 14px 14px;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid rgb(233 199 142 / 90%);
  border-radius: 13px;
  color: #fff9ec;
  background: rgb(7 25 30 / 86%);
  box-shadow: inset 0 1px rgb(255 247 221 / 18%), 0 6px 20px rgb(0 0 0 / 24%);
  font: 700 16px/1.4 "Noto Sans KR", sans-serif;
  letter-spacing: -.02em;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: transform 160ms cubic-bezier(.23, 1, .32, 1), background-color 160ms ease;
}

.home-page .home-poster:focus-visible {
  outline: 3px solid #e9c78e;
  outline-offset: 4px;
}

.home-page .home-poster:active .home-poster__consult {
  transform: scale(.98);
}

@media (hover: hover) and (pointer: fine) {
  .home-page .home-poster:hover .home-poster__consult,
  .home-page .rr-hero .button-primary:hover {
    background-color: rgb(20 62 56 / 96%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .home-poster__consult,
  .home-page .rr-hero .button-primary {
    transition: none;
  }

  .home-page .home-poster:active .home-poster__consult,
  .home-page .rr-hero .button-primary:active {
    transform: none;
  }
}
