/* PRIME JAPAN: homepage first view only. Existing site.css remains unchanged. */
body.home-hero {
  --home-header-height: 95px;
}

.home-hero .header {
  margin-bottom: calc(-1 * var(--home-header-height));
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, .2);
  transition: background-color .18s, border-color .18s;
}

.home-hero .header:not(.home-header-scrolled) {
  color: #fff;
  background: linear-gradient(180deg, rgba(9, 14, 19, .8), rgba(9, 14, 19, .12));
}

.home-hero .header.home-header-scrolled {
  background: #fff;
  border-bottom-color: #eee;
}

.home-hero .header:not(.home-header-scrolled) .brand-copy {
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}

.home-hero .brand-mark {
  border-radius: 50%;
  background: #fff;
}

.home-hero .header:not(.home-header-scrolled) .nav > a {
  color: #fff;
}

.home-hero .header:not(.home-header-scrolled) .nav > a[aria-current="page"] {
  text-decoration-color: #ee777b;
  text-decoration-thickness: 2px;
}

.home-hero .header:not(.home-header-scrolled) .menu-toggle {
  color: #fff;
  background: rgba(9, 14, 19, .3);
  border-color: rgba(255, 255, 255, .7);
}

.home-hero .hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: max(720px, 100vh);
  min-height: max(720px, 100svh);
  margin: 0;
  padding: calc(var(--home-header-height) + 52px) max(6vw, calc((100vw - 1440px) / 2)) 64px;
  background: #111b24;
  color: #fff;
}

.home-hero .hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  background: #111b24;
  z-index: -2;
}

.home-hero .hero-art picture {
  display: block;
  width: 100%;
  height: 100%;
}

.home-hero .hero-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.home-hero .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 10, 16, .13), transparent 28%, rgba(5, 10, 16, .12)),
    linear-gradient(90deg, rgba(6, 13, 20, .04) 24%, rgba(6, 13, 20, .25) 47%, rgba(6, 13, 20, .74) 67%, rgba(6, 13, 20, .82));
}

.home-hero .hero-copy {
  position: relative;
  width: min(44%, 560px);
  padding: 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .24);
}

.home-hero .hero-copy .eyebrow {
  color: #fff;
  font-size: .875rem;
  letter-spacing: .15em;
  margin-bottom: 22px;
}

.home-hero .hero-copy h1 {
  font-size: clamp(2.8rem, 3.8vw, 4.5rem);
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: .06em;
  margin-bottom: 24px;
  color: #fff;
}

.home-hero .hero-copy h1 span {
  color: inherit;
}

.home-hero .hero-rule {
  width: 52px;
  height: 2px;
  margin-bottom: 25px;
  background: #d82029;
}

.home-hero .hero-copy .intro {
  color: #fff;
  font-size: 1.125rem;
  line-height: 1.9;
  margin-bottom: 14px;
}

.home-hero .hero-copy .detail {
  max-width: 32em;
  color: #edf0f2;
  font-size: .9375rem;
  line-height: 2;
  margin-bottom: 28px;
}

.home-hero .hero .actions {
  flex-wrap: wrap;
  gap: 14px;
}

.home-hero .hero .button {
  min-height: 52px;
  padding: 13px 25px;
  font-size: .9375rem;
  flex: 0 1 auto;
  text-shadow: none;
}

.home-hero .hero .button.secondary {
  color: #fff;
  background: rgba(9, 15, 22, .3);
  border-color: rgba(255, 255, 255, .8);
}

.home-hero .hero .button.secondary:hover {
  background: #fff;
  color: #171717;
}

.home-hero .hero a:focus-visible,
.home-hero .header:not(.home-header-scrolled) a:focus-visible,
.home-hero .header:not(.home-header-scrolled) button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}

@media (min-width: 981px) and (max-width: 1200px) {
  .home-hero .hero {
    padding-inline: 5%;
  }
  .home-hero .hero-copy {
    width: 46%;
  }
  .home-hero .hero-copy h1 {
    font-size: 2.65rem;
  }
  .home-hero .hero .button {
    padding-inline: 18px;
  }
}

@media (max-width: 980px) {
  body.home-hero {
    --home-header-height: 83px;
  }
  .home-hero .header-inner {
    flex-wrap: nowrap;
  }
  .home-hero .nav {
    position: absolute;
    inset: 100% 0 auto;
    width: 100%;
    max-height: calc(100vh - var(--home-header-height));
    max-height: calc(100svh - var(--home-header-height));
    overflow-y: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4px 16px;
    padding: 14px 20px 20px;
    background: #111b24;
    border: 1px solid rgba(255, 255, 255, .2);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .22);
  }
  .home-hero .header .nav > a {
    color: #fff;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .home-hero .header .nav > a[aria-current="page"] {
    text-decoration-color: #ee777b;
  }
  .home-hero .nav a:focus-visible {
    outline-color: #fff;
  }
  .home-hero .nav .nav-contact {
    justify-content: center;
  }
  .home-hero .hero {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    min-height: max(780px, 100vh);
    min-height: max(780px, 100svh);
    padding: max(370px, 46vh) 7% 48px;
    padding-top: max(370px, 46svh);
  }
  .home-hero .hero-art img {
    object-position: center 42%;
  }
  .home-hero .hero::after {
    background: linear-gradient(180deg, rgba(5, 10, 16, .1), rgba(5, 10, 16, .02) 27%, rgba(5, 10, 16, .22) 43%, rgba(5, 10, 16, .82) 58%, rgba(5, 10, 16, .9));
  }
  .home-hero .hero-copy {
    width: min(100%, 580px);
    padding: 0;
  }
  .home-hero .hero-copy .eyebrow {
    margin-bottom: 14px;
  }
  .home-hero .hero-copy h1 {
    font-size: clamp(2.1rem, 5.6vw, 3.25rem);
    margin-bottom: 18px;
  }
  .home-hero .hero-rule {
    margin-bottom: 19px;
  }
  .home-hero .hero-copy .detail {
    max-width: none;
  }
}

@media (max-width: 700px) {
  body.home-hero {
    --home-header-height: 77px;
  }
  .home-hero .hero {
    min-height: max(760px, 100vh);
    min-height: max(760px, 100svh);
    padding: max(360px, 43vh) 7% 34px;
    padding-top: max(360px, 43svh);
  }
  .home-hero .hero-art img {
    object-position: 50% top;
  }
  .home-hero .hero-copy .eyebrow {
    font-size: .8125rem;
    margin-bottom: 12px;
    letter-spacing: .09em;
  }
  .home-hero .hero-copy h1 {
    font-size: clamp(1.85rem, 8.2vw, 2.8rem);
    line-height: 1.55;
    letter-spacing: .05em;
    margin-bottom: 17px;
  }
  .home-hero .hero-rule {
    width: 38px;
    margin-bottom: 17px;
  }
  .home-hero .hero-copy .intro {
    font-size: 1rem;
    line-height: 1.85;
    margin-bottom: 12px;
  }
  .home-hero .hero-copy .detail {
    font-size: .875rem;
    line-height: 1.95;
    margin-bottom: 22px;
  }
  .home-hero .hero .actions {
    gap: 12px;
  }
  .home-hero .hero .button {
    min-height: 50px;
    padding: 12px 8px;
    font-size: .875rem;
    flex: 1 1 130px;
  }
}

@media (max-width: 359px) {
  .home-hero .hero {
    padding-inline: 6%;
    padding-top: max(390px, 43vh);
    padding-top: max(390px, 43svh);
  }
  .home-hero .hero .actions {
    gap: 8px;
  }
  .home-hero .hero .button {
    font-size: .8125rem;
    padding-inline: 7px;
    flex-basis: 124px;
  }
}

/* Wide phones and tablets in landscape use the horizontal composition. */
@media (min-width: 701px) and (max-width: 980px) and (orientation: landscape) {
  .home-hero .hero {
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    min-height: max(650px, 100vh);
    min-height: max(650px, 100svh);
    padding: calc(var(--home-header-height) + 44px) 5% 44px;
  }
  .home-hero .hero-art img {
    object-position: center center;
  }
  .home-hero .hero::after {
    background: linear-gradient(90deg, rgba(6, 13, 20, .08) 18%, rgba(6, 13, 20, .38) 43%, rgba(6, 13, 20, .82) 60%, rgba(6, 13, 20, .88));
  }
  .home-hero .hero-copy {
    width: 47%;
  }
  .home-hero .hero-copy h1 {
    font-size: clamp(1.8rem, 4.25vw, 2.5rem);
  }
  .home-hero .hero-copy .intro {
    font-size: 1rem;
  }
  .home-hero .hero-copy .detail {
    font-size: .875rem;
  }
  .home-hero .hero .button {
    padding: 12px 13px;
    font-size: .8125rem;
  }
}

html:not(.js) .home-hero .menu-toggle {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero .header {
    transition: none;
  }
}

@media print {
  .home-hero .hero {
    display: block;
    min-height: 0;
    padding: 20px;
    background: #fff;
    color: #171717;
  }
  .home-hero .hero-art,
  .home-hero .hero::after {
    display: none;
  }
  .home-hero .hero-copy {
    width: 100%;
    text-shadow: none;
  }
  .home-hero .hero-copy h1,
  .home-hero .hero-copy p {
    color: #171717;
  }
}

/* 2026-10-02: background image framing only; all page layout stays unchanged. */
@media (max-width: 700px), (max-width: 980px) and (orientation: portrait) {
  .home-hero .hero-art img {
    height: 60%;
    bottom: auto;
    object-position: 17% top;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 76%, transparent 100%);
  }
}
