/* Photo geometry is owned by CSS; source pixel dimensions never set display height. */
html { scroll-padding-top: 92px; }
body { overflow-wrap: anywhere; }
figure, .concept-grid > *, .profile-grid > *, .access-grid > * { min-width: 0; }
.wrap { width: 100%; }

.profile-photo img,
.concept-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  transform: none;
}
.profile-grid { align-items: start; }
.profile-photo { align-self: center; }
.profile-photo figcaption { margin-top: 14px; }

.photo-frame {
  width: 100%;
  position: relative;
  aspect-ratio: auto;
  overflow: hidden;
  background: transparent;
}
.photo-frame > img,
.g-item .photo-frame > img,
.g-item:hover .photo-frame > img,
.style-item .photo-frame > img {
  display: block;
  position: static;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  transform: none;
}
.style-item .photo-frame { aspect-ratio: auto; background: transparent; }
.gallery-grid { align-items: stretch; }
.gallery-grid .g-item,
.style-swiper .style-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.style-swiper .swiper-wrapper { align-items: stretch; }
.style-swiper .swiper-slide { display: flex; height: auto; }
.style-swiper .style-item { flex: 1; min-width: 0; }
.gallery-grid .photo-frame,
.style-swiper .photo-frame { flex: 0 0 auto; }
.gallery-grid figcaption,
.style-swiper figcaption {
  min-height: calc(3.6em + 12px);
  line-height: 1.8;
}
.g-item { min-width: 0; overflow: visible; }
.g-item figcaption { margin-top: 12px; }

/* Keep the complete hero photograph visible, with typography below it. */
header#top {
  height: auto;
  min-height: 0;
  padding-top: 82px;
  display: flex;
  flex-direction: column;
  text-align: center;
  background: var(--ivory-deep);
}
header#top .hero-bg {
  position: relative;
  inset: auto;
  width: 100%;
  height: clamp(340px, 46vw, 660px);
  background: none !important;
  animation: none;
}
header#top .hero-bg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
header#top .hero-veil,
header#top .hero-line,
header#top .hero-scroll { display: none; }
header#top .hero-inner {
  position: relative;
  align-self: stretch;
  margin: 0;
  padding: 28px 6vw 36px;
  background: var(--ivory);
}
header#top .hero-title {
  color: var(--ink);
  font-size: clamp(48px, 7vw, 94px);
  letter-spacing: .06em;
  margin: 10px 0 14px;
}
header#top .hero-jp,
header#top .hero-inner > .eyebrow { color: var(--ink); }
.hero-jp { white-space: normal; }

.menu-item > div { min-width: 0; }
.menu-name { white-space: normal; }
.menu-price { flex-shrink: 0; }
.info-table { table-layout: fixed; }
.info-table td { overflow-wrap: anywhere; }
.reserve { background-position: center; }
nav .nav-links { gap: clamp(12px, 2vw, 24px); }

@media (max-width: 1100px) and (min-width: 821px) {
  .nav-links { gap: 12px; }
  .nav-links a { letter-spacing: .06em; font-size: 12px; }
  .nav-logo { font-size: 19px; }
}
@media (max-width: 1000px) {
  #menu-toggle { display: flex; }
  .nav-links a:not(.btn-reserve) { display: none; }
}
@media (max-width: 820px) {
  .concept-grid, .profile-grid, .access-grid { grid-template-columns: minmax(0, 1fr); }
  .concept-grid, .profile-grid { gap: 32px; }
  .profile-photo { width: 100%; }
  .gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .gallery-grid .g-item { grid-column: 1; }
  .gallery-grid .photo-frame { aspect-ratio: auto; }
  .gallery-grid .photo-frame > img { position: static; height: auto; }
  .gallery-grid { margin-top: 36px; }
  nav { gap: 12px; }
}
@media (max-width: 640px) {
  header#top { padding-top: 72px; }
  header#top .hero-bg { height: auto; }
  header#top .hero-bg img { width: 100%; height: auto; max-height: 70svh; object-fit: contain; }
  header#top .hero-inner { padding: 24px 6vw 30px; }
  header#top .hero-title { font-size: clamp(42px, 11vw, 66px); }
  header#top .hero-inner > .eyebrow { max-width: 100%; font-size: 12px; }
  .section { padding: 72px 0; }
  .profile-name-en { font-size: clamp(29px, 8vw, 45px); letter-spacing: .04em; }
  .profile-name-jp { font-size: 13px; letter-spacing: .12em; }
  .menu-cta a, .reserve a { max-width: 100%; padding: 16px 22px; }
  .menu-name { font-size: 14px; letter-spacing: .05em; }
  .profile-links { gap: 26px; flex-wrap: wrap; }
  .footer-links { gap: 16px; }
  .proposal-return { bottom: 12px; left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
