/* Immersive editorial navigation, shared by every page. */
body.navigation-open { overflow: hidden; }
.header .menu { border: 0; border-radius: 0; background: transparent; padding: 8px 0 8px 12px; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; }
.header .menu[aria-expanded="true"] { padding-left: 0; min-width: 58px; }
.menu[aria-expanded="true"] .menu-icon { display: none; }
.header .menu .menu-icon { position: static; flex: 0 0 auto; width: auto; height: auto; margin: 0; background: none; font-size: 22px; line-height: 1; letter-spacing: 0; }
.header .menu .menu-icon::before, .header .menu .menu-icon::after { content: none; }
.header .menu { display: grid; grid-template-columns: auto auto; column-gap: 10px; row-gap: 2px; }
.menu-japanese { grid-column: 1 / -1; justify-self: center; font-size: 13px; line-height: 1.2; letter-spacing: 1px; }
.header .menu[aria-expanded="true"] { display: flex; }
.header .nav { position: fixed; inset: 0; width: 100%; height: 100dvh; padding: clamp(110px, 18vh, 180px) max(8vw, 28px) 36px; overflow-y: auto; background: #fffaf4; isolation: isolate; }
.header .menu[aria-expanded="true"] ~ .nav { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 35px; }
.navigation-open .header { z-index: 100; }
.navigation-open .header .logo { position: fixed; z-index: 2; left: max(8vw, 28px); top: 32px; width: 180px; }
.navigation-open .header .menu { position: fixed; z-index: 2; right: max(8vw, 28px); top: 35px; }
.navigation-links { position: relative; z-index: 1; display: grid; gap: clamp(8px, 2vh, 20px); }
.header .nav .navigation-links a { position: relative; width: fit-content; padding: 3px 0 8px; min-height: 44px; border: 0; background: transparent; border-radius: 0; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(32px, 4.3vw, 66px); font-weight: 400; line-height: 1.15; letter-spacing: -1.2px; color: #482e22; }
.header .nav .navigation-links a:hover, .header .nav .navigation-links a[aria-current="page"] { color: #482e22; }
/* Pointer interaction must not inherit Safari's earlier keyboard-focus ring. */
.header .nav[data-input="pointer"] .navigation-links a:focus { outline: none; }
.header .nav[data-input="keyboard"] .navigation-links a:focus,
.header .nav[data-input="assistive"] .navigation-links a:focus { outline: 3px solid var(--red); outline-offset: 5px; }
.header .nav .navigation-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.header .nav .navigation-links a[aria-current="page"]::after { transform: scaleX(1); }
.navigation-artwork { position: absolute; z-index: -1; top: 15%; bottom: 0; right: 0; width: 63%; border-radius: 75% 0 0 0 / 45% 0 0 0; overflow: hidden; background: radial-gradient(ellipse at 90% 20%, #f7c7bc, #fbe5da 48%, #fffaf4 78%); }
.navigation-artwork::before { content: ''; position: absolute; inset: 24% 0 0; background: url('../assets/hero.jpg') 74% bottom / auto 100% no-repeat; -webkit-mask-image: linear-gradient(180deg, transparent, #000 24%); mask-image: linear-gradient(180deg, transparent, #000 24%); }
.navigation-artwork::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #fffaf4 0%, #fffaf480 18%, transparent 50%); }
.navigation-japanese { position: absolute; z-index: 1; top: 12%; right: 20%; height: 155px; writing-mode: vertical-rl; font: 17px/1.8 Georgia, serif; letter-spacing: 5px; color: #482e22; }
@media (max-width: 640px) {
  .navigation-open .header .logo { width: 145px; top: 26px; }
  .navigation-open .header .menu { top: 27px; }
  .header .nav { padding-top: 112px; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
  .header .nav .navigation-links a { font-size: clamp(27px, 7.2vw, 36px); letter-spacing: -.7px; }
  .navigation-links { gap: clamp(5px, 1.3dvh, 12px); }
  .navigation-artwork { top: 19%; width: 57%; }
  .navigation-artwork::before { top: 30%; background-position: 72% bottom; }
  .navigation-japanese { right: 22%; top: 10%; height: 130px; font-size: 14px; letter-spacing: 4px; }
}
@media (max-height: 650px) {
  .header .nav { padding-top: 90px; gap: 24px !important; }
  .navigation-links { gap: 4px; }
  .header .nav .navigation-links a { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .header .nav .navigation-links a::after { transition: none; }
}
